/* Variables CSS pour une cohérence moderne */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent: #64b5f6;
    --accent-hover: #42a5f5;
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* Effet de particules en arrière-plan */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  /* Header moderne avec glassmorphism */
  header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header h1 {
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
  }
  
  nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
  }
  
  nav a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
  }
  
  nav a:hover::before {
    opacity: 1;
  }
  
  /* Section hero avec animation */
  .hero {
    background: var(--gradient);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
    animation: float 20s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
  }
  
  .hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
  }
  
  .hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  
  /* Sections avec espacement moderne */
  section {
    padding: 6rem 0;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Grid moderne et responsive */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  /* Cartes avec glassmorphism et animations */
  .card {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: var(--transition);
  }
  
  .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(100, 181, 246, 0.3);
  }
  
  .card:hover::before {
    left: 100%;
  }
  
  .card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
  }
  
  .card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
  }
  
  /* Changelog moderne */
  .changelog {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }
  
  .changelog strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .changelog ul {
    list-style: none;
    padding-left: 0;
  }
  
  .changelog li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
  }
  
  .changelog li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
  }
  
  /* Boutons modernes */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  .btn.disabled {
    background: linear-gradient(135deg, #666, #444);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    opacity: 0.7;
  }
  
  .btn.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Portfolio moderne */
  .portfolio {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  }
  
  .portfolio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
  }
  
  .portfolio-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  
  /* Section Expérience */
  .experience-section {
    background: rgba(22, 33, 62, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
  }
  
  .experience-section h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .experience-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .job-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
  }
  
  .company {
    color: var(--accent);
    font-weight: 500;
  }
  
  .duration {
    background: rgba(100, 181, 246, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .job-description {
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  /* Section Projets */
  .projects-section {
    background: rgba(22, 33, 62, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
  }
  
  .projects-section h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .project-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
  }
  
  .project-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
  }
  
  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .project-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
  }
  
  .project-status {
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .status-online {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
  }
  
  .status-dev {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
  }
  
  .project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }
  
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-tag {
    background: rgba(100, 181, 246, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  /* Section Compétences */
  .skills-section {
    margin-top: 3rem;
    background: rgba(22, 33, 62, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
  }
  
  .skills-section h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .skill-category {
    text-align: center;
  }
  
  .skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
  }
  
  .skill-item {
    background: var(--gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2);
  }
  
  .skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3);
  }
  
  /* Contact CTA */
  .contact-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
  }
  
  .contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.05) 2px,
      rgba(255, 255, 255, 0.05) 4px
    );
    animation: float 15s ease-in-out infinite;
  }
  
  .contact-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
  }
  
  .contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
  }
  
  .contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
  }
  
  .contact-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }
  
  /* Responsive */
  @media (max-width: 968px) {
    .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .experience-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .contact-buttons {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 768px) {
    .skills-grid {
      grid-template-columns: 1fr;
    }
    
    .experience-section,
    .projects-section,
    .skills-section {
      padding: 1.5rem;
    }
    
    .contact-cta {
      padding: 2rem 1rem;
    }
  }
  
  /* Footer moderne */
  footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
  }
  
  footer p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
  }
  
  footer a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
  }
  
  footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .container {
      padding: 0 1rem;
    }
    
    header .container {
      flex-direction: column;
      gap: 1rem;
    }
    
    nav ul {
      gap: 1rem;
    }
    
    .hero {
      padding: 4rem 0;
    }
    
    .hero h2 {
      font-size: 2.5rem;
    }
    
    .hero p {
      font-size: 1.1rem;
    }
    
    section {
      padding: 3rem 0;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    .grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .card {
      padding: 1.5rem;
    }
  }
  
  /* Animations d'apparition */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .card {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .card:nth-child(2) { animation-delay: 0.1s; }
  .card:nth-child(3) { animation-delay: 0.2s; }
  .card:nth-child(4) { animation-delay: 0.3s; }

  /* NEW */

  .badge {
    display: inline-block;
    background-color: #444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 6px;
    vertical-align: middle;
}

.badge.green { background-color: #2ecc71; }   /* Maîtrisé / utilisé régulièrement */
.badge.yellow { background-color: #f1c40f; color: black; } /* Utilisé partiellement */
.badge.orange { background-color: #e67e22; }  /* En cours d'apprentissage */
.badge.red { background-color: #e74c3c; }      /* À apprendre ou très peu vu */
