﻿@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-dark: #0f1530;
  --bg-darker: #080a12;
  --bg-card: #0d151f;
  
  --cyan: #00d4ff;          /* accent principal */
  --cyan-muted: #0099cc;
  --violet: #a855f7;        /* accent secondaire */
  --violet-dark: #9333ea;
  
  --text: #f5f5f5;          /* texte principal plus blanc */
  --text-muted: #d1d5db;    /* texte secondaire légèrement gris */
  
  --highlight: #ff9f43;     /* nouvelle couleur accent subtile (orange doux) */
  
  --border: #1e293b;
  --border-light: #334155;

  /* Typography variables */
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.3rem;
  --font-size-h3: 1.3rem;
  --font-size-p: 1.1rem;
  --line-height-h1: 1.3;
  --line-height-h2: 1.4;
  --line-height-p: 1.7;

  /* Spacing variables */
  --card-padding: 2.5rem;
  --card-margin: 1.5rem;
  --grid-gap: 2.5rem;
  --btn-padding-y: 1rem;
  --btn-padding-x: 2.2rem;
}

* { box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  background: linear-gradient(135deg, 
    #050810 0%,
    #0a0d18 50%,
    #050810 100%
  );
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.5px;
  position: relative;
  overflow-x: hidden;
}

#matrix,
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#matrix {
  z-index: -2;
}

#particles {
  z-index: -1;
  background-color: rgba(10, 15, 31, 0.3);
  filter: blur(2px);
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* HEADER & NAVBAR - SEAMLESS */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: 1rem 0;
  margin: 0;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transition: width 0.3s ease;
}

.logo:hover {
  color: var(--cyan);
}

.logo:hover::after {
  width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-muted));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

.nav-links a:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  position: absolute;
  left: 9px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.nav-toggle .hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

.nav-toggle.open .hamburger {
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(90deg);
}

.nav-toggle.open .hamburger::after {
  top: 0;
  opacity: 0;
}

@media (max-width: 880px) {
  .navbar {
    padding: 0.7rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    background: rgba(5, 8, 20, 0.95);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.33s ease, padding 0.33s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .nav-links.open {
    max-height: 320px;
    padding: 0.75rem 1rem 1rem;
  }

  .nav-links a {
    width: 100%;
    color: var(--text);
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(0, 212, 255, 0.12);
    color: var(--cyan);
  }

  .nav-links a::before {
    display: none;
  }

  .site-header {
    padding: 0.65rem 0;
    background: rgba(5, 8, 20, 0.95);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.25);
  }
}

/* MAIN CONTENT - SEAMLESS */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6.5rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.section {
  margin-bottom: 3rem;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  animation: typewriter 2s steps(40, end) forwards;
}

@keyframes colorShift {
  0% {
    background: linear-gradient(90deg, var(--text), var(--cyan), var(--text));
    background-position: 0%;
  }
  50% {
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
    background-position: 50%;
  }
  100% {
    background: linear-gradient(90deg, var(--text), var(--cyan), var(--text));
    background-position: 100%;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUpDelay {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

/* SCROLL ANIMATION - Will be applied by JS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUpDelay 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-stagger.active > * {
  animation: fadeInUpDelay 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-stagger.active > :nth-child(1) { animation-delay: 0.1s; }
.reveal-stagger.active > :nth-child(2) { animation-delay: 0.2s; }
.reveal-stagger.active > :nth-child(3) { animation-delay: 0.3s; }
.reveal-stagger.active > :nth-child(4) { animation-delay: 0.4s; }
.reveal-stagger.active > :nth-child(5) { animation-delay: 0.5s; }
.reveal-stagger.active > :nth-child(6) { animation-delay: 0.6s; }

/* TYPEWRITER EFFECT */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

h1.typewriter {
  background: linear-gradient(90deg, var(--text) 0%, var(--cyan) 25%, var(--violet) 50%, var(--cyan) 75%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  border-right: none;
  overflow: visible;
  white-space: normal;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.typewriter.active {
  animation: typewriter 3s steps(40, end) forwards;
}

.typewriter.active::after {
  display: none;
}

/* TYPOGRAPHY */
h1.hero-name {
  font-size: 3.5rem; /* Plus gros que la taille normale */
  margin: 0 0 1rem 0;
  background: linear-gradient(90deg, var(--text) 0%, var(--cyan) 25%, var(--violet) 50%, var(--cyan) 75%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  border-right: none;
}

h2.typewriter {
  position: relative;
  border-right: none !important;
}

#dynamic-subtitle {
  position: relative;
  display: inline-block;
  min-width: 1ch;
}

#dynamic-subtitle::after {
  content: '|';
  position: absolute;
  left: 100%;
  top: 0;
  color: var(--cyan);
  animation: blink 1s steps(1) infinite;
  font-weight: bold;
  margin-left: 0.15em;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
  background-clip: text;
  animation: colorShift 8s ease infinite;
  position: relative;
  text-shadow: 0 0 2px rgba(0, 212, 255, 0.1); /* glow très discret */
}

h1 + h2 {
  color: var(--cyan);
  font-size: var(--font-size-h2);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: block;
  border-left: none;
  padding-left: 0;
}

h2 {
  font-size: var(--font-size-h2);
  margin: 2.5rem 0 1.5rem 0;
  color: var(--text);
  letter-spacing: 1px;
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  font-weight: 600;
  position: relative;
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

h3 {
  font-size: var(--font-size-h3);
  margin: 1.5rem 0 1rem 0;
  color: var(--cyan);
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: color 0.3s ease;
  text-shadow: 0 0 1px rgba(0, 212, 255, 0.05); /* très léger */
}

p, li {
  color: var(--text); /* plus blanc */
  margin-bottom: 1.5rem;
  line-height: var(--line-height-p);
  font-size: var(--font-size-p);
  text-shadow: none;  /* glow supprimé */
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--cyan-muted);
}

a:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* BUTTONS */
.btn, button, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 212, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover, button:hover, a.btn:hover {
  border-color: var(--violet);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-gradient {
  border: 1px solid var(--violet);
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: var(--text);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--violet) 100%);
  border-color: var(--violet-light);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.btn-outline:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}

.btn-highlight {
  background: var(--highlight);
  color: var(--bg-dark);
  border: 1px solid rgba(255, 159, 67, 0.6);
}

.btn-highlight:hover {
  background: #ffb966; /* un peu plus clair au hover */
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.2);
}


/* HERO SECTION */
.hero-section {
  padding: 3rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left h2 {
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 1rem 0 2rem 0;
  border: none;
  padding-left: 0;
  color: var(--text-muted);
}

.hero-left p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* CODE CONSOLE */
.code-console {
  background: linear-gradient(180deg, rgba(4, 12, 31, 0.98), rgba(7, 19, 55, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 12px;
  padding: 1.7rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #00d9ff;
  overflow: hidden;
  height: 450px;
  margin: 0;
  position: relative;
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25), inset 0 0 24px rgba(0, 212, 255, 0.08);
  transition: all 0.3s ease;
}

.code-console::before {
  content: '●  ●  ●';
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  letter-spacing: 0.28rem;
}

.code-console::after {
  content: 'IDE';
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.code-console:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.30), inset 0 0 28px rgba(0, 212, 255, 0.12);
}

.code-console code {
  color: #00d9ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-console code::selection {
  background: rgba(0, 212, 255, 0.18);
}

@media (max-width: 900px) {
  .code-console {
    height: 380px;
    padding: 1.5rem 1.2rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .code-console {
    height: 320px;
    padding: 1.3rem 1rem;
    font-size: 0.80rem;
    line-height: 1.7;
  }
  
  .code-console::before {
    font-size: 0.55rem;
    letter-spacing: 0.2rem;
    top: 0.6rem;
    left: 0.8rem;
  }
  
  .code-console::after {
    font-size: 0.65rem;
    top: 0.6rem;
    right: 0.8rem;
  }
}

@media (max-width: 480px) {
  .code-console {
    height: 280px;
    padding: 1.2rem 0.9rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }
  
  .code-console::before {
    font-size: 0.50rem;
    letter-spacing: 0.15rem;
  }
  
  .code-console::after {
    font-size: 0.60rem;
  }
}

/* CARDS */
.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  margin: 2rem 0;
}

.card, .about-card, .contact-card, .info-card, .cert-card {
  background: rgba(15, 20, 41, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 4px;
  padding: var(--card-padding);
  margin: var(--card-margin) 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before, .about-card::before, .contact-card::before, .info-card::before, .cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.card:hover::before, .about-card:hover::before, .contact-card:hover::before, .info-card:hover::before, .cert-card:hover::before {
  left: 100%;
}

.card, .about-card, .contact-card, .info-card, .cert-card {
  position: relative;
}

.card > *, .about-card > *, .contact-card > *, .info-card > *, .cert-card > * {
  position: relative;
  z-index: 1;
}

.card:hover, .about-card:hover, .contact-card:hover, .info-card:hover, .cert-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05); /* léger survol cyan */
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15), inset 0 1px 1px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.card:focus-within, .about-card:focus-within, .contact-card:focus-within, .info-card:focus-within, .cert-card:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.card h3 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: var(--cyan);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}


/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
  margin: 2rem 0;
}

.about-card {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: var(--card-padding);
}

.about-card h3 {
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.about-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.3s ease;
}

.about-card:hover h3::after {
  width: 100%;
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-card li {
  padding: 0.7rem 0;
  margin: 0;
  transition: all 0.3s ease;
}

.about-card li:hover {
  padding-left: 0.5rem;
}

.about-card li::before {
  content: '▹ ';
  color: var(--cyan);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* CAROUSEL */
.carousel-about {
  position: relative;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  flex: 1;
}

.carousel-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.carousel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 212, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.carousel-btn:hover::before {
  left: 0;
}

.carousel-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.carousel-btn:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.project-card {
  flex: 0 0 auto;
  width: 350px;
  background: linear-gradient(135deg, rgba(15, 20, 41, 0.6) 0%, rgba(10, 14, 39, 0.6) 100%);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 4px;
  padding: var(--card-padding);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 212, 255, 0.03) 100%);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.15), inset 0 1px 1px rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.3s ease;
}

.project-card:hover img {
  border-color: var(--cyan);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.project-card h3 {
  margin-top: 0;
}

.project-card p {
  font-size: 0.9rem;
}

/* PROJECTS PAGE */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--grid-gap);
  margin: 2rem 0;
}

.projects-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.projects-2x2-grid .cert-card-large {
  padding: 1.1rem;
}

/* FILTER SYSTEM */
.projects-filter,
.cert-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem 0 3rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: rgba(0, 212, 255, 0.6);
  color: var(--cyan);
}

.filter-btn.active {
  background: var(--cyan);
  color: #010304;
  border-color: var(--cyan);
  font-weight: 600;
}

/* PROJECT CARD IMPROVEMENTS */
.project-card {
  position: relative;
  transition: all 0.3s ease;
}

.project-card.hidden,
.cert-organisme.hidden {
  display: none;
}

.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: var(--violet);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.project-image {
  position: relative;
}

.project-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 212, 255, 0.18);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 5;
}

.project-badges {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.badge-type {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.project-tech {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 1200px) {
  .projects-2x2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .projects-2x2-grid {
    grid-template-columns: 1fr;
  }

  .cert-image-wrapper {
    height: 150px;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .project-gallery img {
    height: 80px;
  }

  .projects-filter {
    gap: 0.6rem;
    margin: 1.5rem 0 2.5rem 0;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .project-status {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .badge-type {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
  }

  .tech-tag {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
  }

  .cert-skills .skill-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
  }
}

@media (max-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .cert-image-wrapper {
    height: 130px;
  }

  .project-gallery img {
    height: 70px;
  }

  .projects-filter {
    gap: 0.5rem;
    margin: 1rem 0 2rem 0;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .project-status {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }

  .badge-type {
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
  }

  .tech-tag {
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
  }

  .cert-skills .skill-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

.project-details {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 4px 4px 0;
}

.project-details p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.9rem;
}

.project-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.project-details li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.project-status-detail {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--cyan);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-details strong {
  color: var(--text);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-gallery img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

/* CONTACT PAGE */
.contact-section {
  max-width: 800px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin: 2rem 0;
}

.contact-card {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.contact-card h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 0.5rem;
}

.contact-card p {
  margin-bottom: 0;
}

.contact-card a {
  word-break: break-all;
}

.contact-icon {
  max-width: 60px;
  max-height: 60px;
  margin: 0 auto 1rem;
  display: block;
  filter: brightness(0.9) contrast(1.1);
  transition: filter 0.3s ease;
}

.contact-card:hover .contact-icon {
  filter: brightness(1.2) contrast(1.2);
}

/* CERTIFICATIONS PAGE */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--grid-gap);
  margin: 2rem 0;
}

.cert-card {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: var(--card-padding);
}

.cert-card h3 {
  margin-top: 0;
  color: var(--cyan);
}

.cert-preview img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 1rem 0;
}

.cert-pdf-list {
  margin: 1.5rem 0;
}

.pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-link {
  display: block;
  padding: 0.7rem 0.5rem;
  margin-bottom: 0.5rem;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  color: var(--cyan);
  position: relative;
}

.pdf-link::after {
  content: '→';
  position: absolute;
  right: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.pdf-link:hover {
  border-left-color: var(--cyan);
  padding-left: 1.5rem;
  background: rgba(0, 212, 255, 0.05);
}

.pdf-link:hover::after {
  opacity: 1;
  right: -1rem;
}

.pdf-link:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.status-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.status-badge:hover {
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

/* VEILLE PAGE */
.info-card {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-card h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.cert-status {
  margin: 1.5rem 0;
}

/* SECTION HEADERS - CERTIFICATIONS & PROJECTS */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* STATISTICS BANNER */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  backdrop-filter: blur(5px);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

/* CATEGORY FILTERS */
.category-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.filter-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-accent) 100%);
  border-color: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* CERTIFICATION CATEGORIES */
.cert-category {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cyan);
}

.category-icon {
  font-size: 1.8rem;
}

.category-header h2 {
  margin: 0;
  font-size: 1.5rem;
  border: none;
  padding: 0;
  flex: 1;
  border-left: none;
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  white-space: nowrap;
  text-transform: lowercase;
}

/* CERTIFICATIONS ROW */
.certs-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 2rem;
}

/* LARGE CERTIFICATION CARD */
.cert-card-large {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
}

.cert-card-large:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15), inset 0 0 1px rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.cert-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cert-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cert-card-large:hover .cert-image-wrapper img {
  transform: scale(1.03);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0 0.6rem;
}

.project-gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.project-gallery img:hover {
  transform: translateY(-1px) scale(1.02);
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cert-skills .skill-tag {
  padding: 0.25rem 0.6rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.4px;
}

.cert-skills .skill-icon {
  width: 12px;
  height: 12px;
}

.cert-card-large {
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 3px 14px rgba(0, 212, 255, 0.08);
}

.cert-card-large:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.20);
  transform: translateY(-2px);
}


.cert-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-info h3 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text);
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.cert-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cert-status-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.cert-status-badge.obtenue {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cert-status-badge.encours {
  background: rgba(168, 85, 247, 0.2);
  color: var(--violet-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* SKILLS TAGS */
.cert-skills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}

.skill-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-tag:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--cyan);
}

/* LINK ARROW */
.link-arrow {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  margin-top: auto;
}

.link-arrow:hover {
  color: var(--violet-light);
  gap: 0.8rem;
}

.link-arrow::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease, transform 0.3s ease;
}

/* RGPD MODULES GRID */
.cert-rgpd-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rgpd-module {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 3px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rgpd-module:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.rgpd-module h4 {
  margin: 0 0 1rem 0;
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.rgpd-module .link-arrow {
  font-size: 0.85rem;
}

/* NOUVEAUX STYLES POUR LES ORGANISMES DE CERTIFICATION */
.cert-organisme {
  margin-bottom: 4rem;
}

.organisme-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cyan);
}

.organisme-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0.8);
}

.organisme-header h2 {
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
}

.organisme-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.organisme-link:hover {
  color: var(--cyan);
}

.organisme-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15), inset 0 0 1px rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.cert-card-large {
  grid-column: 1 / -1;
  max-width: 100%;
}

.cert-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.cert-carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.cert-card:hover .cert-carousel-controls {
  opacity: 1;
  pointer-events: all;
}

.carousel-arrow {
  background: rgba(0, 212, 255, 0.8);
  border: none;
  color: var(--bg-dark);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.carousel-arrow:hover {
  background: var(--cyan);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.cert-image-wrapper {
  position: relative;
}

.cert-image-wrapper img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.cert-image-wrapper img:hover {
  transform: scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox img,
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  transform: scale(0.8);
  animation: zoomIn 0.3s ease forwards;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev,
.lightbox-next {
  display: none;
}

.lightbox-close {
  top: 20px;
  right: 40px;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* TOOL CARDS GLOW EFFECT */
.tool-card:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3), inset 0 1px 1px rgba(0, 212, 255, 0.2);
}

@keyframes zoomIn {
  to { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cert-download {
  font-size: 0.9rem;
  font-weight: 600;
}

/* TABLEAU DE DONNÉES */
.tableau-container {
  background: rgba(15, 20, 41, 0.6);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  overflow-x: auto;
  max-width: 100%;
  margin: 0 auto;
  width: 100%; /* Utiliser toute la largeur disponible */
}

.tableau-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--cyan);
}

.tableau-header h2 {
  margin: 0;
  font-size: 1.3rem;
  border: none;
  padding: 0;
  border-left: none;
  flex: 1;
}

.tableau-header .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.tableau-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch; /* Pour iOS */
}

/* TABLE STYLES */
.data-table {
  width: 100%;
  min-width: 1600px; /* Augmenter la largeur minimale pour accommoder les en-têtes avec retours à la ligne */
  border-collapse: collapse;
  font-size: 0.8rem; /* Réduire légèrement la taille du texte */
  font-family: 'JetBrains Mono', monospace;
  table-layout: fixed; /* Pour une meilleure répartition des colonnes */
}

.data-table thead {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-bottom: 2px solid var(--cyan);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th {
  padding: 1.2rem 0.4rem; /* Augmenter le padding vertical pour les en-têtes multilignes */
  text-align: left;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.7rem; /* Réduire la taille des titres */
  white-space: nowrap;
  width: auto; /* Largeur automatique pour les colonnes */
}

.data-table th:nth-child(1) { width: 25%; } /* Réalisations */
.data-table th:nth-child(2) { width: 12%; } /* Période */
.data-table th:nth-child(3), 
.data-table th:nth-child(4), 
.data-table th:nth-child(5), 
.data-table th:nth-child(6), 
.data-table th:nth-child(7), 
.data-table th:nth-child(8) { width: 8.5%; } /* Compétences - légèrement plus large pour les en-têtes multilignes */

.data-table td {
  padding: 0.8rem 0.4rem; /* Augmenter légèrement le padding vertical pour les dates multilignes */
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.3s ease;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4; /* Améliorer l'espacement des lignes */
}

.data-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.data-table tbody tr:hover td {
  color: var(--text);
  border-bottom-color: var(--cyan);
}

/* STYLES POUR LES SECTIONS IMPORTANTES */
.data-table tbody tr.section-header {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-top: 2px solid var(--cyan);
  border-bottom: 2px solid var(--violet);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.data-table tbody tr.section-header td {
  padding: 1rem 0.4rem; /* Ajuster le padding pour cohérence */
  color: var(--cyan);
  font-weight: 700;
  text-align: center;
  background: transparent;
}

.data-table tbody tr.section-header:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.data-table tbody tr.section-header:hover td {
  color: var(--cyan);
}

.tableau-info {
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 3px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.tableau-info p {
  margin: 0;
}

/* SECTION DIVIDERS */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* FOOTER - SEAMLESS */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* PROJECT DETAIL PAGES */
.project-hero {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.project-hero img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-hero:hover img {
  transform: scale(1.02);
}

.project-description {
  background: rgba(15, 20, 41, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
  line-height: 1.7;
}

.project-description h2 {
  color: var(--cyan);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-gallery-full {
  margin: 3rem 0;
}

.project-gallery-full h2 {
  color: var(--cyan);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.project-technologies {
  background: rgba(15, 20, 41, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
}

.project-technologies h2 {
  color: var(--cyan);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.project-competences {
  background: rgba(15, 20, 41, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
}

.project-competences h2 {
  color: var(--cyan);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.competences-list {
  display: grid;
  gap: 1rem;
}

.competence-item {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.competence-item:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-1px);
}

.competence-item h3 {
  color: var(--cyan);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.competence-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-links {
  text-align: center;
  margin: 3rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* TAG QUALITY CLASS */
.skill-tag.tag-quality {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.skill-tag.tag-quality:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.skill-tag.tag-quality .skill-icon {
  width: 14px;
  height: 14px;
  margin-right: 0.3rem;
  filter: brightness(1.2);
}

/* RESPONSIVE PROJECT PAGES */
@media (max-width: 768px) {
  .project-hero {
    margin: 1rem auto;
    max-width: 100%;
  }

  .project-description,
  .project-technologies,
  .project-competences {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
  }

  .gallery-grid img {
    height: 150px;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .project-links .btn {
    width: 100%;
    max-width: 300px;
  }
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.site-footer:hover p {
  color: var(--cyan);
}

/* ========================================
   ABOUT PAGE - NEW SECTIONS STYLING
   ======================================== */

/* ABOUT SECTION HEADER */
.about-section {
  position: relative;
  padding-top: 2rem;
}

.about-content {
  margin-bottom: 3rem;
}

.about-text {
  max-width: 900px;
  margin: 1.5rem 0;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-text strong {
  color: var(--cyan);
  font-weight: 600;
}

/* QUALITIES & INTERESTS - TAG STYLE */
.qualities-section {
  margin-bottom: 3.5rem;
}

.qualities-section h2 {
  margin-bottom: 2rem;
}

.qualities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 212, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 3px;
}

.quality-tag, .interest-tag {
  padding: 0.7rem 1.3rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid;
}

.quality-tag {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.quality-tag:hover {
  background: var(--cyan);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.interest-tag {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--violet);
  color: var(--violet);
}

.interest-tag:hover {
  background: var(--violet);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

/* PARCOURS ANIM\u00c9 */
.parcours-section {
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
}

.parcours-section h2 {
  margin-bottom: 2rem;
}

.animated-timeline {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.2));
}

@keyframes drawPath {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.animated-timeline .timeline-path {
  stroke-dasharray: 1000;
  animation: drawPath 2s ease-out forwards;
}

@keyframes pulse {
  0%, 100% { r: 12; filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
  50% { r: 16; filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.animated-timeline .timeline-point {
  fill: var(--bg-darker);
  stroke: var(--cyan);
  stroke-width: 2;
  animation: pulse 2s ease-in-out infinite;
}

.animated-timeline .point-active {
  fill: var(--cyan);
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

.animated-timeline .timeline-label text {
  fill: var(--text);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.animated-timeline .timeline-label .year {
  fill: var(--cyan);
  font-weight: 600;
  font-size: 13px;
}

.animated-timeline .timeline-label .label {
  fill: var(--text-muted);
  font-size: 12px;
}

/* EXPERIENCE CARDS */
.experience-section {
  margin-bottom: 3.5rem;
}

.experience-section h2 {
  margin-bottom: 2.5rem;
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.exp-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--violet);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.exp-card:hover {
  border-left-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.exp-header h3 {
  font-size: 1.15rem;
  color: var(--cyan);
  margin: 0;
}

.exp-company {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.exp-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-exp {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-exp:hover {
  background: var(--cyan);
  color: var(--bg-darker);
}

/* SKILLS SECTION - LOGO GRID */
.skills-section {
  margin-bottom: 3.5rem;
}

.skills-section h2 {
  margin-bottom: 2.5rem;
}

.skills-category-title {
  font-size: 1.05rem;
  color: var(--violet);
  margin-top: 2.5rem;
  margin-bottom: 1.8rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(0, 212, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 3px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 100px;
}

.logo-item:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.logo-item img {
  max-width: 80%;
  max-height: 80px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.logo-item:hover img {
  filter: brightness(1.2);
}

/* LANGUAGES SECTION */
.languages-section {
  margin-bottom: 3.5rem;
}

.languages-section h2 {
  margin-bottom: 2.5rem;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.language-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.language-card:hover {
  border-color: var(--violet);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
  transform: translateY(-3px);
}

.lang-flag {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.2));
}

.language-card h3 {
  font-size: 1.1rem;
  color: var(--cyan);
  margin: 0.5rem 0;
}

.lang-level {
  color: var(--violet);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.lang-bar {
  height: 6px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-card:hover .lang-bar {
  background: rgba(0, 212, 255, 0.25);
}

/* CTA SECTION */
.about-cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-cta .btn {
  min-width: 200px;
  padding: 1rem 2rem;
}

/* RESPONSIVE ABOUT PAGE */
@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-left, .about-right {
    text-align: center;
  }

  .about-right {
    margin-left: 0;
  }

  .parcours-section {
    padding: 1.5rem;
  }

  .animated-timeline {
    max-width: 100%;
  }

  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.2rem;
  }

  .experience-cards {
    grid-template-columns: 1fr;
  }
}

/* NEW ABOUT PAGE COMPLETE REDESIGN */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.about-right {
  margin-left: 2rem;
}

.about-left h1 {
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}

.about-intro > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-intro strong {
  color: var(--cyan);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  flex: 1;
  min-width: 80px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

.cv-card {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cv-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
  transform: translateY(-3px);
}

.cv-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 1rem;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.btn-download {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg-darker);
  border: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.btn-download:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* TIMELINE ANIMATIONS */
.timeline-container {
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan), var(--violet), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline-item-1 {
  padding-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-item-2 {
  margin-left: calc(50% + 2rem);
  padding-left: 0;
  text-align: left;
}

.timeline-item-3 {
  padding-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 3rem;
  background: var(--bg-darker);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  animation: pulse-marker 2s ease-in-out infinite;
}

.timeline-item-1 .timeline-marker,
.timeline-item-3 .timeline-marker {
  right: calc(50% - 1.5rem);
  left: auto;
}

.timeline-item-2 .timeline-marker {
  left:calc(-5% - 1.5rem);
  right: auto;
  border-color: var(--violet);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  animation: pulse-marker-violet 2s ease-in-out infinite;
}

.marker-icon {
  font-size: 1.5rem;
}

.timeline-content {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
  transform: translateY(-3px);
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--cyan);
  margin: 0 0 0.5rem 0;
}

.timeline-item-2 .timeline-content h3 {
  color: var(--violet);
}

.timeline-date {
  color: var(--highlight);
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.timeline-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

@keyframes pulse-marker {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.7); }
}

.timeline-item.active {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.timeline-item-2.active {
  animation: slideInFromRight 0.8s ease-out forwards;
}

/* QUALITIES BOX */
.qualities-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  backdrop-filter: blur(5px);
}

.qualities-col {
  display: flex;
  flex-direction: column;
}

.box-title {
  font-size: 1.2rem;
  color: var(--cyan);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qualities-col:nth-child(2) .box-title {
  color: var(--violet);
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-quality,
.tag-interest {
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: default;
}

.tag-quality {
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.tag-quality:hover {
  background: var(--cyan);
  color: var(--bg-darker);
  transform: scale(1.05);
}

.tag-interest {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--violet);
  color: var(--violet);
}

.tag-interest:hover {
  background: var(--violet);
  color: var(--bg-darker);
  transform: scale(1.05);
}

/* EXPERIENCE CARDS - UPDATED */
.exp-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(0, 212, 255, 0.08) 100%);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--violet);
  border-radius: 3px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.exp-card:hover {
  border-left-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(0, 212, 255, 0.12) 100%);
}

.exp-header h3 {
  font-size: 1.2rem;
  color: var(--cyan);
  margin: 0 0 0.3rem 0;
}

.exp-company {
  color: var(--highlight);
  font-weight: 600;
  font-size: 0.95rem;
}

.exp-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.exp-tasks {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.exp-tasks li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.exp-tasks li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.tag-exp {
  padding: 0.4rem 0.8rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.tag-exp:hover {
  background: var(--cyan);
  color: var(--bg-darker);
}

/* SKILLS BOXES */
.skills-box {
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.skills-box:hover {
  border-color: var(--cyan);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 3px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

/* PROJETS: étiquettes plus petites + adaptation style à propos */
.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cert-skills .skill-tag {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 2px;
  border-width: 1px;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cert-skills .skill-icon {
  width: 14px;
  height: 14px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0 0.6rem;
}

.project-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.skill-tag:hover {
  background: var(--cyan);
  color: var(--bg-darker);
  transform: scale(1.03);
}

/* LANGUAGES - UPDATED */
.lang-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  text-align: center;
  transition: all 0.3s ease;
}

.lang-card:hover {
  border-color: var(--violet);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.15);
  transform: translateY(-3px);
}

.lang-card h3 {
  font-size: 1.1rem;
  color: var(--cyan);
  margin: 0 0 0.5rem 0;
}

.lang-level {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.8rem 0;
}

.lang-bar {
  height: 6px;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fillBar {
  from { width: 0%; }
}

/* CTA Updated */
.about-cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-left h1 {
    font-size: 2rem;
  }

  .timeline-container::before {
    left: 1.5rem;
  }

  .timeline-item-1,
  .timeline-item-3 {
    padding-right: 0;
    padding-left: 4rem;
    text-align: left;
  }

  .timeline-item-2 {
    margin-left: 0;
    padding-left: 4rem;
  }

  .timeline-marker {
    left: 0;
    transform: translateX(-60%);
  }

  .qualities-box {
    grid-template-columns: 1fr;
  }

  .experience-cards {
    grid-template-columns: 1fr;
  }

  .cv-card {
    max-width: 100%;
  }

  .qualities-tags {
    gap: 0.7rem;
    padding: 1rem;
  }

  .quality-tag, .interest-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .parcours-section {
    padding: 1.5rem 0.5rem;
    margin-bottom: 2.5rem;
  }

  .animated-timeline {
    max-height: 400px;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .logo-item {
    padding: 0.8rem;
    min-height: 80px;
  }

  .experience-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-company {
    align-self: flex-start;
  }

  .languages-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.2rem;
  }

  .language-card {
    padding: 1.2rem;
  }

  .lang-flag {
    width: 35px;
    height: 35px;
  }

  .language-card h3 {
    font-size: 0.95rem;
    margin: 0.3rem 0;
  }

  .lang-level {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .qualities-tags {
    gap: 0.5rem;
    padding: 0.8rem;
  }

  .quality-tag, .interest-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .parcours-section {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .animated-timeline {
    max-height: 300px;
  }

  .animated-timeline .timeline-label text {
    font-size: 11px;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .logo-item {
    padding: 0.6rem;
    min-height: 70px;
  }

  .logo-item img {
    max-height: 60px;
  }

  .skills-category-title {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .exp-card {
    padding: 1.2rem;
  }

  .exp-header h3 {
    font-size: 1rem;
  }

  .exp-company {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .exp-period {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .tag-exp {
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
  }

  .languages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .language-card {
    padding: 1rem;
  }

  .lang-flag {
    width: 30px;
    height: 30px;
  }

  .language-card h3 {
    font-size: 0.9rem;
    margin: 0.25rem 0;
  }

  .lang-level {
    font-size: 0.7rem;
  }

  .about-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .about-cta .btn {
    width: 100%;
    min-width: auto;
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-banner {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .category-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .certs-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .category-icon {
    font-size: 1.5rem;
  }

  .cert-rgpd-modules {
    grid-template-columns: 1fr;
  }

  .rgpd-module {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .projects-grid,
  .certifications-grid,
  .about-grid,
  .contact-grid,
  .cards-section {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    gap: 1rem;
  }

  .project-card {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .site-header {
    padding: 1rem 0;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .category-filters {
    flex-direction: column;
    margin-bottom: 1.5rem;
  }

  .filter-btn {
    width: 100%;
  }

  .cert-category {
    margin-bottom: 2.5rem;
  }

  .category-header {
    margin-bottom: 1.5rem;
  }

  .category-header h2 {
    font-size: 1.2rem;
  }

  .certs-row {
    gap: 1rem;
  }

  .cert-image-wrapper {
    height: 150px;
  }

  .cert-info {
    padding: 1rem;
  }

  .cert-skills {
    gap: 0.3rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .cert-rgpd-modules {
    gap: 1rem;
  }

  .rgpd-module {
    padding: 0.8rem;
  }

  .rgpd-module h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .cert-organisme {
    margin-bottom: 3rem;
  }

  .organisme-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .organisme-logo {
    width: 50px;
    height: 50px;
  }

  .organisme-header h2 {
    font-size: 1.3rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cert-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-outline {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .tableau-container {
    padding: 1.5rem;
  }

  .tableau-header {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .tableau-header .btn {
    width: 100%;
  }

  .data-table {
    font-size: 0.75rem; /* Réduire encore plus sur mobile */
    min-width: 1400px; /* Augmenter pour mobile aussi */
  }

  .data-table th,
  .data-table td {
    padding: 0.6rem 0.3rem; /* Padding encore plus réduit sur mobile */
    line-height: 1.3; /* Espacement optimisé pour mobile */
  }

  .data-table th:nth-child(1) { width: 28%; } /* Réalisations plus large sur mobile */
  .data-table th:nth-child(2) { width: 15%; } /* Période */
  .data-table th:nth-child(3), 
  .data-table th:nth-child(4), 
  .data-table th:nth-child(5), 
  .data-table th:nth-child(6), 
  .data-table th:nth-child(7), 
  .data-table th:nth-child(8) { width: 7.5%; } /* Compétences plus petites */

  .tableau-info {
    font-size: 0.85rem;
  }
  .navbar {
    gap: 1rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.65rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
    padding-left: 0.5rem;
  }

  h3 {
    font-size: 1rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .card, .about-card, .contact-card, .info-card, .cert-card {
    padding: 1.5rem;
  }

  .code-console {
    padding: 1rem;
    font-size: 0.75rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
  }
}

/* UTILITY CLASSES */
.neon-title {
  color: var(--cyan);
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
}

/* PROJECT CAPTURES AND RESOURCES */
.project-captures, .project-resources {
  margin-top: 2rem;
}

.project-captures h3, .project-resources h3 {
  color: var(--cyan);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.project-captures .gallery-grid {
  margin-bottom: 1.5rem;
}

.show-more-btn {
  margin: 1rem auto;
  display: block;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.hidden-captures {
  margin-top: 1rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.resource-links .btn {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
