/* Variables globales - Couleurs sobres style Apple */
:root {
  --color-bg: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-accent-light: #e8f4fd;
  --color-card: #ffffff;
  --color-border: #d2d2d7;
  --color-success: #30d158;
  --color-info: #0071e3;
  --color-security: #ff453a;
  --color-data: #bf5af2;
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 6rem;
  --spacing-xl: 8rem;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --milestone-color: var(--color-accent); /* #0071e3 */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Sections */
section {
  padding: var(--spacing-lg) 0;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  background: var(--color-bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  /*gap: 0.5rem;*/
  padding: 0.5rem 1.25rem;
  background: var(--color-card);
  color: var(--color-text);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: slideDown 0.8s var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}

.hero-badge i {
  font-size: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--spacing-xs);
  line-height: 1.05;
  color: var(--color-text);
}

.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-top: var(--spacing-sm);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 500;
}

.scroll-indicator:hover {
  color: var(--color-accent);
}

.scroll-indicator i {
  font-size: 1.2rem;
}

/* Typography */
h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--color-text);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h4 i {
  color: var(--color-accent);
}

p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  font-weight: 400;
}

/* About Section */
.about {
  background-color: var(--color-card);
  border-radius: 18px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.content-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* Skills Section */
.skills {
  padding: var(--spacing-xl) 0;
}

.technical-skills {
  background: var(--color-bg);
}

.soft-skills {
  background: var(--color-card);
  border-radius: 18px;
  margin: var(--spacing-lg) 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: var(--spacing-md);
}

.soft-skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-card {
  background: var(--color-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--transition-smooth);
  text-align: center;
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.skill-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.skill-card:hover .icon {
  color: var(--color-accent);
  transform: scale(1.05);
}

.skill-card h3 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.skill-card p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.skill-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

.soft-skill-card {
  background: var(--color-card);
  border-color: var(--color-border);
}

.learning-tag {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.learning-progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.learning-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--color-bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.learning-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 10px;
  transition: width 0.6s var(--transition-smooth);
  position: relative;
}

.learning-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

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

.learning-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  min-width: 35px;
  text-align: right;
}

.learning-legend {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: left;
}

/* Projects Section */
.projects {
  background: var(--color-bg);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.project-card {
  background: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

.project-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-icon-placeholder {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-card) 100%);
}

.project-icon-placeholder i {
  font-size: 6rem;
  color: var(--color-text-secondary);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon-placeholder i {
  opacity: 0.5;
  transform: scale(1.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--transition-smooth);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-more {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  border-radius: 50px;
  transform: translateY(10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  /* Taille fixe pour uniformiser */
  min-width: 160px;
  justify-content: center;
}

.project-card:hover .view-more {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.2);
}

.view-more i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.project-card:hover .view-more i {
  transform: translateX(3px);
}

.project-info {
  padding: 1.75rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-badge {
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-badge.academic-project {
  background-color: #e8f4fd;
  color: #0071e3;
}

.project-badge.personal-project {
  background-color: #fff3e0;
  color: #c66900;
}

.project-info h3 {
  color: var(--color-text);
  margin-bottom: 0;
  font-size: 1.3rem;
}

.project-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

/* Contact Section */
.contact {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--color-card);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s var(--transition-smooth);
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s var(--transition-smooth);
  z-index: 0;
}

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

.social-link > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.social-link:hover i,
.social-link:hover span,
.social-link:hover .link-arrow {
  color: white;
}

.social-link i {
  font-size: 1.5rem;
  color: var(--color-text);
}

.social-link span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.link-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: white;
  font-size: 1rem;
}

.social-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--color-card);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s var(--transition-smooth);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 400;
}

.modal-close:hover {
  background: var(--color-text);
  color: var(--color-card);
  border-color: var(--color-text);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.modal-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--color-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 2rem;
}

.modal-info {
  padding: 0 2.5rem 2.5rem;
}

.modal-info h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.modal-info > p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-item {
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.detail-item h4 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.detail-item p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.tech-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-details ul {
  list-style: none;
  padding: 0;
}

.modal-details ul li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.modal-details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-modal:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

/* Footer */
footer {
  padding: var(--spacing-md) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-lg);
  background: var(--color-card);
}

footer p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-delay {
  animation: fadeIn 1.2s ease 0.4s backwards;
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

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

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --spacing-xl: 5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    min-height: 75vh;
    padding: 5rem 0;
  }

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

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }

  .social-link {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  section {
    padding: 4rem 0;
  }

  .about,
  .soft-skills {
    border-radius: 12px;
    margin: 2rem 0;
  }

  .modal-content {
    margin: 1rem;
    max-height: 95vh;
  }

  .modal-info {
    padding: 0 1.5rem 1.5rem;
  }

  .modal-links {
    flex-direction: column;
  }

  .modal-image,
  .project-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .skill-card,
  .project-card,
  .social-link {
    padding: 1.5rem;
  }

  .project-image {
/* Learning Modal Styles */
.learning-modal-content {
  max-width: 800px;
}

.learning-modal-body {
  padding: 2.5rem;
}

.learning-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}

.learning-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}

.learning-modal-subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.learning-modal-journey {
  margin-top: 2rem;
}

.learning-modal-journey h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.learning-modal-journey h3 i {
  color: var(--color-accent);
}

.journey-intro {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.journey-intro span {
  font-weight: 600;
  color: var(--color-accent);
}

/* Journey Path - Vertical Layout */
.journey-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
}

.journey-milestone {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: 12px;
  border: 2px solid var(--color-border);
  position: relative;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInMilestone 0.5s ease forwards;
}

@keyframes slideInMilestone {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.journey-milestone:nth-child(1) { animation-delay: 0.1s; }
.journey-milestone:nth-child(2) { animation-delay: 0.2s; }
.journey-milestone:nth-child(3) { animation-delay: 0.3s; }
.journey-milestone:nth-child(4) { animation-delay: 0.4s; }
.journey-milestone:nth-child(5) { animation-delay: 0.5s; }

.journey-milestone + .journey-milestone {
  margin-top: 1rem;
}

.journey-milestone.completed {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, var(--color-bg) 100%);
  border-color: var(--color-accent);
}

.journey-milestone.current {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, var(--color-bg) 100%);
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15);
}

.journey-milestone.upcoming {
  opacity: 0.6;
}

.journey-milestone-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.journey-milestone.completed .journey-milestone-icon {
  background: var(--milestone-color, var(--color-accent));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.journey-milestone.current .journey-milestone-icon {
  background: var(--milestone-color, var(--color-accent));
  color: white;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
  animation: pulseCurrentMilestone 2s ease-in-out infinite;
}

@keyframes pulseCurrentMilestone {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.6);
  }
}

.journey-milestone.upcoming .journey-milestone-icon {
  background: var(--color-card);
  border: 2px solid var(--color-border);
  color: var(--color-text-secondary);
}

.journey-milestone-content {
  flex: 1;
}

.journey-milestone-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journey-milestone-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.journey-milestone.completed .journey-milestone-status {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent);
}

.journey-milestone.current .journey-milestone-status {
  background: var(--color-accent);
  color: white;
}

.journey-milestone.upcoming .journey-milestone-status {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.journey-milestone-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Legend */
.journey-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.legend-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.legend-icon.completed {
  background: var(--color-accent);
  color: white;
}

.legend-icon.current {
  background: var(--color-accent);
  color: white;
  animation: pulseLegend 2s ease-in-out infinite;
}

@keyframes pulseLegend {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.legend-icon.upcoming {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* Responsive pour la modale learning */
@media (max-width: 768px) {
  .learning-modal-body {
    padding: 1.5rem;
  }

  .learning-modal-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .learning-modal-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .journey-milestone {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .journey-milestone-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .journey-legend {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

    height: 200px;
  }

  .modal-image {
    height: 220px;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .scroll-indicator {
    margin-top: 3rem;
  }
}
