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

html { 
  scroll-behavior: smooth;  
}

body {
  background: #141414;
  color: #d4d4d4;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Landing Page Styles */
.landing-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #141414;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.landing-page.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.light-mode .landing-page {
  background: #f8fafc;
}

.landing-content {
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

.landing-profile-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeInScale 0.8s ease 0.2s forwards;
}

.landing-profile-picture {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #2d2d2d;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .landing-profile-picture {
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
}

.landing-status-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2ecc40;
  border: 4px solid #141414;
  animation: pulse 2s infinite;
}

body.light-mode .landing-status-dot {
  border-color: #f8fafc;
}

.landing-security-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #322f3e;
  border-radius: 50%;
  border: 4px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

body.light-mode .landing-security-badge {
  background: #4f46e5;
  border-color: #f8fafc;
}

.landing-security-badge i {
  color: #fff;
  font-size: 14px;
}

.landing-title {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

body.light-mode .landing-title {
  color: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 18px;
  color: #999;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

body.light-mode .landing-subtitle {
  color: #64748b;
}

.landing-description {
  font-size: 15px;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

body.light-mode .landing-description {
  color: #475569;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1s forwards;
  cursor: pointer;
}

.scroll-indicator-text {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

body.light-mode .scroll-indicator-text {
  color: #94a3b8;
}

.scroll-indicator-icon {
  width: 24px;
  height: 40px;
  border: 2px solid #666;
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s ease;
}

body.light-mode .scroll-indicator-icon {
  border-color: #94a3b8;
}

.scroll-indicator:hover .scroll-indicator-icon {
  border-color: #322f3e;
}

body.light-mode .scroll-indicator:hover .scroll-indicator-icon {
  border-color: #4f46e5;
}

.scroll-indicator-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #666;
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

body.light-mode .scroll-indicator-icon::before {
  background: #94a3b8;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollDown {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.3;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 64, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(46, 204, 64, 0);
  }
}

/* Main content initially hidden */
.main-content {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.main-content.visible {
  opacity: 1;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 118px 40px 80px;
}

h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 8px;
}

h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 40px;
  font-weight: 500;
}

h3 {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 16px;
  font-weight: 500;
}

p {
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Navigation - Minimaliste */
.topnav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 32px));
  z-index: 1100;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  min-height: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: navFadeIn 0.6s ease 0.2s forwards;
  transition: all 0.3s ease;
}

.topnav.scrolled {
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  height: 100%;
}

.nav-link {
  color: #888;
  background: none;
  border: none;
  font-size: 18px;
  padding: 0 10px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  position: relative;
  outline: none;
}

.nav-link:focus {
  outline: none;
}

.nav-link::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%) scale(0.95);
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: opacity 0.2s, transform 0.2s ease;
  z-index: 10;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  transition-delay: 0.4s;
}

.nav-link i {
  font-size: 18px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active i {
  color: #fff;
}

.nav-indicator {
  display: none;
}

/* Bouton toggle mode minimaliste */
#toggle-mode {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  width: 32px;
  height: 32px;
}

#toggle-mode:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mode-icon-container {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-icon {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.2s ease;
}

.sun-icon {
  color: #fbbf24;
  font-size: 20px;
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.moon-icon {
  color: #94a3b8;
  font-size: 18px;
  transform: rotate(180deg) scale(0);
  opacity: 0;
}

body.light-mode .sun-icon {
  transform: rotate(180deg) scale(0);
  opacity: 0;
}

body.light-mode .moon-icon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

#greeting {
  margin-left: 8px;
  font-size: 11px;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.3px;
  user-select: none;
  transition: color 0.2s ease;
}

/* Mode clair minimaliste */
body.light-mode {
  background: #f8fafc;
  color: #1e293b;
}

body.light-mode .topnav {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

body.light-mode .topnav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
}

body.light-mode .nav-link {
  color: #64748b;
}

body.light-mode .nav-link:hover {
  color: #0f172a;
}

body.light-mode .nav-link.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

body.light-mode .brand {
  color: #0f172a;
}

body.light-mode .brand .dot {
  background: #4f46e5;
}

body.light-mode #toggle-mode:hover {
  background: rgba(15, 23, 42, 0.06);
}

body.light-mode #greeting {
  color: #64748b;
}

body.light-mode h1 {
  color: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode h2 {
  color: #94a3b8;
}

body.light-mode h3 {
  color: #1e293b;
}

body.light-mode p {
  color: #475569;
}

body.light-mode .subtitle {
  color: #64748b;
}

body.light-mode #fr-clock-fixed {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  color: #1e293b;
}

body.light-mode .profile-picture {
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

body.light-mode .status-dot {
  border-color: #f8fafc;
}

body.light-mode .security-badge {
  background: #4f46e5;
  border-color: #f8fafc;
}

body.light-mode .btn {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.light-mode .btn:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

body.light-mode .about-card,
body.light-mode .skills-category,
body.light-mode .cert-section,
body.light-mode .project,
body.light-mode .education-card,
body.light-mode .platform,
body.light-mode .contact-card,
body.light-mode .contact-intro {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.light-mode .about-card:hover,
body.light-mode .project:hover,
body.light-mode .contact-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

body.light-mode .about-card h3 {
  color: #4f46e5;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.light-mode .skill {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
  color: #334155;
}

body.light-mode .skill:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: #4f46e5;
}

body.light-mode .skill i {
  color: #4f46e5;
}

body.light-mode .score-item span:last-child,
body.light-mode .checkpoint i {
  color: #4f46e5;
}

body.light-mode .project-icon {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

body.light-mode .tech-tag {
  background: #4f46e5;
  color: #ffffff;
}

body.light-mode .contact-icon {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

body.light-mode .contact-label {
  color: #1e293b;
}

body.light-mode .contact-value {
  color: #64748b;
}

body.light-mode .social-link {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}

body.light-mode .social-link:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

body.light-mode .footer-text {
  color: #64748b;
}

body.light-mode #back-to-top {
  background: #4f46e5;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

body.light-mode #back-to-top:hover {
  background: #4338ca;
}

body.light-mode .info-card {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

body.light-mode .info-card h5 {
  color: #4f46e5;
}

body.light-mode .info-card li:before {
  color: #4f46e5;
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 8px;
}

.brand:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #322f3e;
  transition: transform 0.2s ease;
}

.brand:hover .dot {
  transform: scale(1.15);
}

/* Clock amélioré */
#fr-clock-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2000;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

#fr-clock-fixed .flag {
  font-size: 18px;
}

/* Header */
header {
  margin-bottom: 160px;
  text-align: center;
}

.profile-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #2d2d2d;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.status-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2ecc40;
  border: 3px solid #141414;
  animation: pulse 2s infinite;
}

.security-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: #322f3e;
  border-radius: 50%;
  border: 3px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.security-badge i {
  color: #fff;
  font-size: 13px;
}

.subtitle {
  font-size: 16px;
  color: #999;
  margin-bottom: 24px;
}

.header-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(2px);
}

/* Sections */
section {
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.about-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.about-card h3 {
  color: #322f3e;
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card p {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skills-category {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-2px);
}

.skills-category h3 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 16px;
}

.skill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  color: #ccc;
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.skill:hover {
  border-color: rgba(50, 47, 62, 0.4);
  background: rgba(50, 47, 62, 0.1);
  transform: translateX(4px);
}

.skill i {
  color: #322f3e;
  font-size: 14px;
  width: 16px;
  transition: transform 0.3s ease;
}

.skill:hover i {
  transform: scale(1.2);
}


      
/* Certifications */
.cert-section {
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.cert-section:hover {
  transform: translateY(-2px);
}

.cert-section h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #aaa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.score-item:last-child {
  border-bottom: none;
}

.score-item span:last-child {
  color: #322f3e;
  font-weight: 600;
}

.checkpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: #aaa;
}

.checkpoint i {
  color: #322f3e;
}

.cert-org {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Projects */
.project {
  position: relative;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.project:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-icon {
  width: 32px;
  height: 32px;
  background: rgba(50, 47, 62, 0.2);
  color: #322f3e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.project:hover .project-icon {
  transform: rotate(12deg) scale(1.1);
}

.project h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.project-cta {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.project:hover .project-cta {
  color: #322f3e;
  transform: translateX(4px);
}

.project p {
  margin-bottom: 16px;
  color: #aaa;
}

.project-bullets {
  margin: 16px 0;
  padding-left: 20px;
  font-size: 13px;
  color: #999;
}

.project-bullets li {
  margin-bottom: 8px;
}

.project-bullets strong {
  color: #ccc;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #322f3e;
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project:hover .tech-tag {
  transform: translateY(-2px);
}

.project-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Education Section */
#education {
  position: relative;
}

.education-timeline {
  position: relative;
  padding-left: 0;
}

.education-card {
  position: relative;
  margin-bottom: 0;
  padding: 0 0 56px 90px;
  border: none;
  background: transparent;
  transition: all 0.3s ease;
}

.education-card:last-child {
  padding-bottom: 0;
}

/* Timeline line */
.education-card::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.education-card:last-child::before {
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.06) 0%, 
    transparent 100%
  );
}

/* Timeline dot */
.education-card::after {
  content: '';
  position: absolute;
  left: 33px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #555;
  transition: all 0.15s ease;
  z-index: 2;
}

.education-card:hover::after {
  background: #999;
}

.education-card:hover::before {
  background: rgba(255, 255, 255, 0.1);
}

.education-content {
  position: relative;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-content:hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.education-header {
  padding: 0;
  cursor: pointer;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-header:hover {
  transform: translateX(4px);
}

.education-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.education-period {
  font-size: 11px;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  background: rgba(50, 47, 62, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.education-card:hover .education-period {
  background: rgba(50, 47, 62, 0.15);
  color: #9a96a8;
}

.education-separator {
  color: #444;
  font-weight: 400;
}

.education-location {
  font-size: 11px;
  color: #777;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.education-card:hover .education-location {
  color: #999;
}

.education-title {
  font-size: 21px;
  color: #fff;
  margin: 0 0 10px 0;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  transition: all 0.2s ease;
}

.education-card:hover .education-title {
  color: #e0e7ff;
  text-shadow: 0 2px 8px rgba(50, 47, 62, 0.3);
}

.toggle-icon {
  font-size: 13px;
  color: #555;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  margin-left: auto;
}

.education-header:hover .toggle-icon {
  opacity: 1;
  color: #888;
  transform: translateY(-1px);
}

.toggle-icon.rotated {
  transform: rotate(180deg);
  opacity: 1;
  color: #322f3e;
}

.education-subtitle {
  font-size: 14px;
  color: #999;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.education-card:hover .education-subtitle {
  color: #aaa;
}

.education-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.education-tag {
  font-size: 10px;
  color: #888;
  background: rgba(50, 47, 62, 0.08);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(50, 47, 62, 0.15);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: default;
}

.education-tag:hover {
  background: rgba(50, 47, 62, 0.15);
  border-color: rgba(50, 47, 62, 0.25);
  color: #9a96a8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(50, 47, 62, 0.2);
}

.education-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease;
  opacity: 0;
}

.education-description.open {
  max-height: 2000px;
  opacity: 1;
}

.description-content {
  padding: 28px 0 0;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(50, 47, 62, 0.1);
  margin-top: 20px;
}

.main-description {
  color: #aaa;
  font-size: 13.5px;
  line-height: 1.8;
  margin: 0 0 24px;
  padding: 16px;
  background: rgba(50, 47, 62, 0.03);
  border-left: 3px solid rgba(50, 47, 62, 0.4);
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}

@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
  border-color: rgba(50, 47, 62, 0.2);
  background: rgba(50, 47, 62, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.info-card h5 {
  color: #888;
  font-size: 9px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  padding: 0;
  border: none;
}

.info-card h5 i {
  display: inline-block;
  color: #322f3e;
  font-size: 11px;
}

.info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-card li {
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.info-card li:hover {
  color: #e0e7ff;
  padding-left: 20px;
}

.info-card li::before {
  content: '▸';
  display: inline-block;
  position: absolute;
  left: 0;
  color: #322f3e;
  font-size: 10px;
  transition: all 0.2s ease;
}

.info-card li:hover::before {
  color: #625d73;
  left: 4px;
}

.platforms-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid rgba(50, 47, 62, 0.1);
}

.platforms-section h3 {
  font-size: 10px;
  color: #888;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.platforms-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.platform {
  padding: 12px 16px;
  border: 1px solid rgba(50, 47, 62, 0.15);
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(50, 47, 62, 0.05) 0%, 
    rgba(50, 47, 62, 0.02) 100%
  );
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.platform:hover {
  border-color: rgba(50, 47, 62, 0.3);
  background: linear-gradient(135deg, 
    rgba(50, 47, 62, 0.12) 0%, 
    rgba(50, 47, 62, 0.06) 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(50, 47, 62, 0.2);
}

.platform-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  transition: all 0.3s ease;
}

.platform:hover .platform-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.08);
}

.platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.platform:hover .platform-icon img {
  filter: brightness(1.1);
}

.platform-name {
  font-size: 13px;
  color: #bbb;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.platform:hover .platform-name {
  color: #e0e7ff;
}

.platform-stats {
  display: none;
}

.platform-info {
  display: contents;
}

/* Mode clair pour education */
body.light-mode .education-card::before {
  background: rgba(148, 163, 184, 0.1);
}

body.light-mode .education-card:last-child::before {
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 0%, transparent 100%);
}

body.light-mode .education-card::after {
  background: #cbd5e1;
}

body.light-mode .education-card:hover::after {
  background: #64748b;
}

body.light-mode .education-card:hover::before {
  background: rgba(148, 163, 184, 0.15);
}

body.light-mode .education-period {
  color: #4f46e5;
}

body.light-mode .education-location {
  color: #64748b;
}

body.light-mode .education-separator {
  color: #cbd5e1;
}

body.light-mode .education-title {
  color: #0f172a;
}

body.light-mode .toggle-icon {
  color: #cbd5e1;
}

body.light-mode .education-header:hover .toggle-icon {
  color: #94a3b8;
}

body.light-mode .toggle-icon.rotated {
  color: #4f46e5;
}

body.light-mode .education-subtitle {
  color: #64748b;
}

body.light-mode .education-tag {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}

body.light-mode .main-description {
  color: #475569;
}

body.light-mode .info-card h5 {
  color: #94a3b8;
}

body.light-mode .info-card li {
  color: #475569;
}

body.light-mode .info-card li:hover {
  color: #0f172a;
}

body.light-mode .platforms-section {
  border-top-color: rgba(148, 163, 184, 0.2);
}

body.light-mode .platforms-section h3 {
  color: #94a3b8;
}

body.light-mode .platform {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

body.light-mode .platform:hover {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.05);
}

body.light-mode .platform-name {
  color: #475569;
}

/* Contact Section */
#contact {
  margin-bottom: 40px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-intro h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.contact-intro p {
  color: #999;
  font-size: 14px;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.contact-card:hover {
  border-color: #322f3e;
  background: rgba(50, 47, 62, 0.1);
  transform: translateX(8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(50, 47, 62, 0.2);
  color: #322f3e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 13px;
  color: #666;
}

.contact-status {
  color: #2ecc40;
  font-weight: 500;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.social-link:hover {
  background: #322f3e;
  border-color: #322f3e;
  color: #fff;
  transform: translateY(-4px) scale(1.1);
}

.footer-text {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.footer-text span {
  color: #999;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #322f3e;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

#back-to-top:hover {
  background: #9b59b6;
  transform: translateY(-4px) scale(1.1);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #322f3e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(.6,.2,.2,1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

body.light-mode .toast {
  background: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
  /* Landing Page Mobile */
  .landing-page {
    padding: 20px;
  }

  .landing-content {
    padding: 20px;
  }

  .landing-profile-wrapper {
    width: 110px;
    height: 110px;
    margin-bottom: 24px;
  }

  .landing-profile-picture {
    width: 110px;
    height: 110px;
    border-width: 4px;
  }

  .landing-status-dot {
    width: 16px;
    height: 16px;
    border-width: 3px;
    top: 8px;
    left: 8px;
  }

  .landing-security-badge {
    width: 28px;
    height: 28px;
    border-width: 3px;
    bottom: 8px;
    right: 8px;
  }

  .landing-security-badge i {
    font-size: 12px;
  }

  .landing-title {
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 10px;
  }

  .landing-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .landing-description {
    font-size: 13px;
    padding: 0 10px;
    margin-bottom: 32px;
    line-height: 1.6;
  }

  .scroll-indicator {
    bottom: 32px;
  }

  .scroll-indicator-text {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .scroll-indicator-icon {
    width: 20px;
    height: 36px;
  }

  /* Main Content Mobile */
  .container {
    padding: 90px 20px 60px;
  }

  header {
    margin-bottom: 80px;
  }

  .profile-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .profile-picture {
    width: 100px;
    height: 100px;
    border-width: 3px;
  }

  .status-dot {
    width: 16px;
    height: 16px;
    border-width: 2px;
    top: 6px;
    left: 6px;
  }

  .security-badge {
    width: 24px;
    height: 24px;
    border-width: 2px;
    bottom: 6px;
    right: 6px;
  }

  .security-badge i {
    font-size: 11px;
  }

  h1 {
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
  }

  section {
    margin-bottom: 60px;
  }

  /* Navigation Mobile */
  .topnav {
    width: calc(100% - 24px);
    padding: 6px 10px;
    top: 12px;
  }

  .brand {
    font-size: 13px;
    padding: 3px 6px;
  }

  .brand .dot {
    width: 7px;
    height: 7px;
  }

  .nav-links {
    display: none;
  }

  #greeting {
    display: none;
  }

  #toggle-mode {
    width: 30px;
    height: 30px;
    padding: 5px;
  }

  .mode-icon-container {
    width: 18px;
    height: 18px;
  }

  .sun-icon {
    font-size: 18px;
  }

  .moon-icon {
    font-size: 16px;
  }

  /* Clock Mobile */
  #fr-clock-fixed {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }

  #fr-clock-fixed .flag {
    font-size: 16px;
  }

  /* Cards Mobile */
  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card,
  .skills-category,
  .cert-section {
    padding: 20px;
  }

  .about-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .about-card p {
    font-size: 12px;
    line-height: 1.6;
  }

  .skills-category h3 {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .skill {
    padding: 9px 11px;
    margin-bottom: 6px;
    font-size: 12px;
  }

  .skill i {
    font-size: 13px;
  }

  /* Buttons Mobile */
  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    font-size: 12px;
  }

  .btn i {
    font-size: 11px;
  }

  /* Certifications Mobile */
  .cert-section h3 {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .score-item,
  .checkpoint {
    font-size: 13px;
    padding: 7px 0;
  }

  .cert-org {
    font-size: 11px;
    margin-top: 14px;
    padding-top: 14px;
  }

  /* Projects Mobile */
  .project {
    padding: 20px;
    margin-bottom: 20px;
  }

  .project-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .project-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .project h3 {
    font-size: 16px;
  }

  .project-cta {
    position: static;
    margin-top: 12px;
    font-size: 10px;
    justify-content: flex-end;
  }

  .project p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .project-bullets {
    font-size: 12px;
    margin: 14px 0;
    padding-left: 18px;
  }

  .project-bullets li {
    margin-bottom: 6px;
  }

  .tech-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  .project-meta {
    font-size: 11px;
    gap: 12px;
  }

  /* Education Mobile */
  .education-card {
    padding-left: 48px;
    padding-bottom: 32px;
  }

  .education-card::before {
    left: 19px;
  }

  .education-card::after {
    left: 16px;
    width: 6px;
    height: 6px;
    top: 3px;
  }

  .education-card:hover::after {
    width: 9px;
    height: 9px;
    left: 14px;
    top: 1px;
  }

  .education-meta {
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
  }

  .education-period,
  .education-location {
    font-size: 10px;
  }

  .education-title {
    font-size: 16px;
    gap: 6px;
  }

  .toggle-icon {
    font-size: 11px;
  }

  .education-subtitle {
    font-size: 12px;
  }

  .education-tags {
    gap: 6px;
    margin-top: 6px;
  }

  .education-tag {
    font-size: 9px;
    padding: 3px 7px;
  }

  .description-content {
    padding: 20px 0 0;
  }

  .main-description {
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-card h5 {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .info-card li {
    font-size: 11px;
    padding: 3px 0;
  }

  .platforms-section {
    margin-top: 24px;
    padding-top: 20px;
  }

  .platforms-section h3 {
    font-size: 8px;
    margin-bottom: 10px;
  }

  .platforms-grid {
    flex-direction: column;
    gap: 10px;
  }

  .platform {
    padding: 10px;
    width: 100%;
  }

  .platform-icon {
    width: 18px;
    height: 18px;
  }

  .platform-name {
    font-size: 11px;
  }

  /* Contact Mobile */
  .contact-intro {
    padding: 24px 20px;
    margin-bottom: 24px;
  }

  .contact-intro h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .contact-intro p {
    font-size: 13px;
  }

  .contact-grid {
    gap: 14px;
  }

  .contact-card {
    padding: 16px 18px;
    gap: 16px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .contact-label {
    font-size: 13px;
  }

  .contact-value {
    font-size: 12px;
  }

  /* Footer Mobile */
  footer {
    margin-top: 60px;
    padding: 32px 0 24px;
  }

  .footer-socials {
    gap: 14px;
    margin-bottom: 20px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .footer-text {
    font-size: 12px;
    line-height: 1.7;
  }

  /* Back to Top Mobile */
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* Toast Mobile */
  .toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    font-size: 12px;
    padding: 10px 16px;
  }
  
  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* Extra small devices (very small phones) */
@media (max-width: 375px) {
  .landing-title {
    font-size: 34px;
  }

  .landing-subtitle {
    font-size: 14px;
  }

  .landing-description {
    font-size: 12px;
  }

  h1 {
    font-size: 32px;
  }

  .container {
    padding: 90px 16px 50px;
  }

  .about-card,
  .skills-category,
  .cert-section,
  .project {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
