/* ==========================================================================
   PORTFOLIO PROFESSIONNEL — MOUHAMADOU LAMINE DIENG
   Design System : Cyber & Tech Hybride (Inspiré de Diery Dia & Fallou Ndiaye)
   ========================================================================== */

/* ===== RESET & BOX MODEL ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette de Base */
  --bg:             #070913;
  --bg2:            #0c1024;
  --bg-card:        #0e142c;
  --bg-card-hover:  #131c3c;
  --surface:        rgba(255, 255, 255, 0.04);
  --surface-hover:  rgba(255, 255, 255, 0.07);
  --surface-active: rgba(139, 92, 246, 0.12);
  --border:         rgba(255, 255, 255, 0.08);
  --border-light:   rgba(255, 255, 255, 0.14);
  --border-glow:    rgba(139, 92, 246, 0.4);

  /* Couleurs d'Accent (Inspiration Diery Dia & Fallou Ndiaye) */
  --primary:        #8b5cf6;
  --primary-light:  #a78bfa;
  --primary-dark:   #6d28d9;
  --cyan:           #06b6d4;
  --cyan-light:     #38bdf8;
  --blue:           #3b82f6;
  --blue-light:     #60a5fa;
  --green:          #10b981;
  --gold:           #fbbf24;
  --pink:           #f43f5e;

  /* Typographie & Contraste */
  --text:           #f8fafc;
  --text-muted:     #94a3b8;
  --text-dim:       #64748b;
  --font-sans:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head:      'Plus Jakarta Sans', 'Bebas Neue', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Dégradés Signature */
  --grad-primary:   linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-primary-hover: linear-gradient(135deg, #9333ea 0%, #2563eb 50%, #0891b2 100%);
  --grad-text:      linear-gradient(135deg, #ffffff 25%, #c4b5fd 70%, #38bdf8 100%);
  --grad-accent:    linear-gradient(90deg, #8b5cf6, #06b6d4);
  --grad-glow:      radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);

  /* Animations & Ombres */
  --ease:           cubic-bezier(.16, 1, .3, 1);
  --card-shadow:    0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --glow-shadow:    0 20px 45px -15px rgba(139, 92, 246, 0.4);
  --glow-cyan:      0 20px 45px -15px rgba(6, 182, 212, 0.4);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* Scrollbar Moderne */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--cyan));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ===== AMBIENT ORBS & BACKGROUND GRID ===== */
/* Grille Cyber Subtile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Orbes lumineux en mesh gradient flottant (Inspiration Diery Dia & Fallou Ndiaye) */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(130px);
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
  will-change: transform;
}

.orb-1 {
  width: 520px;
  height: 520px;
  right: -80px;
  top: -40px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, rgba(59, 130, 246, 0.18) 55%, transparent 75%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  left: -120px;
  top: 40%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(139, 92, 246, 0.14) 55%, transparent 75%);
  animation-delay: -8s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  right: 10%;
  bottom: -60px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 55%, transparent 75%);
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 45px, 0) scale(0.95); }
}

/* ===== CURSOR GLOW ===== */
#cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  z-index: 1;
  transition: opacity 0.3s;
}

body.custom-cursor-enabled,
body.custom-cursor-enabled * {
  cursor: url("image/Mickey Mouse Hand F-You--cursor--SweezyCursors.cur"), auto !important;
}

body.custom-cursor-enabled :is(input, textarea, [contenteditable="true"]) {
  cursor: text !important;
}

/* ===== LIEN D'ÉVITEMENT (ACCESSIBILITÉ) ===== */
.skip-link {
  position: fixed;
  left: -9999px;
  top: 14px;
  z-index: 4000;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
  transition: transform .2s ease;
}
.skip-link:focus {
  left: 16px;
  transform: none;
}

/* ===== SPOTLIGHT DES CARTES ===== */
.project-card,
.skill-card,
.about-card,
.timeline-card,
.cert-card {
  position: relative;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
}

.project-card::after,
.skill-card::after,
.about-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(139, 92, 246, 0.18),
    rgba(6, 182, 212, 0.05) 45%,
    transparent 65%
  );
  border-radius: inherit;
}
.project-card:hover::after,
.skill-card:hover::after,
.about-card:hover::after {
  opacity: 1;
}

/* ===== BARRE DE PROGRESSION DU DÉFILEMENT (Fallou Ndiaye & Diery Dia style) ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1001;
  background: linear-gradient(90deg, var(--cyan), var(--primary), #ec4899);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
  transition: width .08s linear;
  pointer-events: none;
}

/* ===== HEADER / NAVIGATION (GLASSMORPHISM) ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(7, 9, 19, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s var(--ease), background .3s;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--cyan-light);
}

.logo-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Statut Disponible dans le Header */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: .02em;
}

.status-txt {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(6, 182, 212, 0.2));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.4);
}

header nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

header nav a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: 99px;
  transition: color .2s, background .2s, transform .2s;
  letter-spacing: .01em;
}

header nav a:hover,
header nav a.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.14);
}

.nav-cta {
  background: var(--grad-primary) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 4px 15px -3px rgba(139, 92, 246, 0.5) !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease) !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.65) !important;
}

/* Bouton Bascule Thème Sombre / Clair */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.4);
}
.theme-toggle-track {
  position: relative;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.theme-icon--moon,
.theme-icon--sun {
  position: absolute;
  font-size: 15px;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}

/* Thème sombre (défaut) */
[data-theme="dark"] .theme-icon--moon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
  color: #38bdf8;
}
[data-theme="dark"] .theme-icon--sun {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

/* Thème clair */
[data-theme="light"] .theme-icon--moon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}
[data-theme="light"] .theme-icon--sun {
  transform: rotate(0deg) scale(1);
  opacity: 1;
  color: #f59e0b;
}

/* Menu Hamburger Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: 0;
  color: inherit;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SECTIONS GÉNÉRALES ===== */
section {
  position: relative;
  z-index: 2;
  padding: 58px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 28px;
}
.section-title span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head > :first-child { flex: 1 1 auto; }
.section-head .section-title { margin-bottom: 0; }
.section-visual { flex-shrink: 0; line-height: 0; }
.server-stack { width: 170px; height: auto; overflow: visible; }

/* Révélation au Scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ===== HERO SECTION ===== */
#home {
  min-height: 88vh;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 48px 45px;
}

.hero-content {
  flex: 1.15;
  min-width: 0;
}

/* Badge Statut en Direct (Ping Radar) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
  border-radius: 99px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 26px;
  letter-spacing: .02em;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.live-ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0.8;
  animation: pingRadar 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRadar {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-name .decrypt {
  display: inline-block;
  white-space: nowrap;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 22px;
  min-height: 32px;
  letter-spacing: -0.01em;
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 530px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 38px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(139, 92, 246, 0.75);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.08);
  transition: all .25s var(--ease);
}
.btn-cv:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 10px 25px -8px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 17px;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
}
.social-link:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 8px 20px -5px rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}

/* ===== HERO VISUAL & FLOATING CARDS (FALLOU & DIERY DIA) ===== */
.hero-visual {
  flex: 0.95;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-visual-card {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-avatar-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(6, 182, 212, 0.8), rgba(59, 130, 246, 0.6));
  box-shadow: 0 24px 60px -15px rgba(139, 92, 246, 0.35);
  animation: glowPulse 5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 24px 60px -15px rgba(139, 92, 246, 0.3); }
  100% { box-shadow: 0 30px 70px -10px rgba(6, 182, 212, 0.4); }
}

.hero-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  display: block;
  background: var(--bg2);
}

/* Cartes Flottantes Autour du Portrait */
.hero-float-card {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(14, 20, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
}

.hero-float-card .fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}

.hero-float-card .fc-text {
  display: flex;
  flex-direction: column;
}

.hero-float-card .fc-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.hero-float-card .fc-text small {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Positions et animations indépendantes */
.float-card-1 {
  top: -15px;
  right: -35px;
  animation: floatCard1 6s ease-in-out infinite;
}
.float-card-1 .fc-icon {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.float-card-2 {
  bottom: 30px;
  left: -50px;
  animation: floatCard2 7s ease-in-out infinite;
  animation-delay: -2s;
}
.float-card-2 .fc-icon {
  background: linear-gradient(135deg, #06b6d4, #10b981);
}

.float-card-3 {
  bottom: -25px;
  right: 15px;
  animation: floatCard1 6.5s ease-in-out infinite;
  animation-delay: -4s;
}
.float-card-3 .fc-icon {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

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

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

/* Statistiques du Hero */
.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  width: 100%;
  max-width: 360px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  text-align: center;
  flex: 1;
  backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 24px -10px rgba(139, 92, 246, 0.3);
}

.stat-card .num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
}

.stat-card .lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: .02em;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ===== SECTION À PROPOS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-media-card {
  position: relative;
  border-radius: 26px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(6, 182, 212, 0.4));
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.about-video {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: 75% center;
  border-radius: 23px;
  display: block;
  background: var(--bg2);
}

.about-tag {
  position: absolute;
  bottom: -18px;
  right: -14px;
  background: var(--grad-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.about-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(6px);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.25);
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform .3s, background .3s;
}
.about-card:hover .about-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--primary);
  color: #fff;
}

.about-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.about-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ===== SECTION COMPÉTENCES ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.skill-card {
  --skill-accent: var(--primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-accent);
  transition: width .5s var(--ease);
}
.skill-card:hover::before {
  width: 100%;
}
.skill-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-6px);
  box-shadow: var(--glow-shadow);
}

.skill-icon {
  font-size: 34px;
  color: var(--cyan);
  margin-bottom: 18px;
  display: block;
}

.skill-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.skill-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.skill-tag,
.stack-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: all .2s;
}
.skill-tag:hover,
.stack-tag:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.skill-tag i, .skill-tag img,
.stack-tag i, .stack-tag img {
  width: 14px;
  height: 14px;
  font-size: 14px;
  object-fit: contain;
}

/* Couleurs des Marques Devicons */
.brand-html { color: #f97316; }
.brand-css { color: #38bdf8; }
.brand-javascript { color: #facc15; }
.brand-php { color: #a5b4fc; }
.brand-react { color: #67e8f9; }
.brand-node { color: #4ade80; }
.brand-express { color: #e2e8f0; }
.brand-laravel { color: #f87171; }
.brand-tailwind { color: #22d3ee; }
.brand-bootstrap { color: #c084fc; }
.brand-socket { color: #cbd5e1; }
.brand-mysql { color: #60a5fa; }
.brand-postgresql { color: #93c5fd; }
.brand-kali { color: #38bdf8; }
.brand-metasploit { color: #38bdf8; }
.brand-nmap { color: #67e8f9; }
.brand-ubuntu { color: #fb923c; }
.brand-windows { color: #60a5fa; }
.brand-vmware { color: #cbd5e1; }
.brand-hyperv { color: #60a5fa; }
.brand-docker { color: #38bdf8; }
.brand-terraform { color: #c084fc; }
.brand-ansible { color: #f87171; }
.brand-proxmox { color: #fb923c; }
.brand-virtualbox { color: #60a5fa; }

/* ===== SECTION FORMATION (TIMELINE MODERNE) ===== */
.timeline {
  position: relative;
  max-width: 960px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--cyan), rgba(139, 92, 246, 0.1));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 36px;
  margin-bottom: 24px;
  padding-left: 56px;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
  z-index: 2;
}
.timeline-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 26px;
  flex: 1;
  box-shadow: var(--card-shadow);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.timeline-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(6px);
  box-shadow: var(--glow-shadow);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.timeline-org {
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 4px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.timeline-actions {
  margin-top: 14px;
}

/* ===== SECTION EXPÉRIENCE (CLONE DESIGN DIERY DIA) ===== */
.diery-timeline {
  position: relative;
  max-width: 1120px;
  margin: 36px auto 10px;
  padding: 20px 0;
}

.diery-timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 1;
}

.diery-item {
  position: relative;
  margin-bottom: 64px;
  display: flex;
  align-items: flex-start;
  min-height: 120px;
}
.diery-item:last-child {
  margin-bottom: 20px;
}

.diery-node {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 5;
}
.diery-node-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #ffffff, 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform .3s var(--ease);
}
.diery-node-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.diery-node-logo--rtn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}
.diery-node-logo--macob {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.diery-node-logo--yum {
  background: linear-gradient(135deg, #f97316, #c2410c);
}
.diery-item:hover .diery-node-circle {
  transform: scale(1.1);
}

.diery-date {
  position: absolute;
  top: 32px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.diery-item--left .diery-date {
  left: calc(50% + 48px);
}
.diery-item--right .diery-date {
  right: calc(50% + 48px);
  text-align: right;
}

.diery-card {
  position: relative;
  background: #141226;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 34px 32px 30px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  z-index: 2;
}
.diery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 25px 60px -15px rgba(139, 92, 246, 0.25);
}

.diery-item--left .diery-card {
  width: calc(50% - 54px);
  margin-right: auto;
}
.diery-item--right .diery-card {
  width: calc(50% - 54px);
  margin-left: auto;
}

/* Flèche pointant vers la ligne centrale */
.diery-item--left .diery-card::after {
  content: '';
  position: absolute;
  top: 34px;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 12px solid #141226;
}
.diery-item--right .diery-card::after {
  content: '';
  position: absolute;
  top: 34px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid #141226;
}

.diery-role {
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.diery-company {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 18px;
}
.diery-company i {
  color: var(--cyan);
  font-size: 13px;
}

.diery-lead {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.diery-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.diery-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}
.diery-bullets li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: -1px;
  color: #94a3b8;
  font-size: 18px;
}

/* Mot-clé surligné en badge violet/lilas (Style Signature Diery Dia) */
.kw-pill {
  display: inline;
  background: rgba(139, 92, 246, 0.28);
  color: #d8b4fe;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.diery-card-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.diery-card-footer--dual {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.diery-attestation-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.diery-attestation-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.diery-attestation-btn--memoire {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.4);
  color: #7dd3fc;
}
.diery-attestation-btn--memoire:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}

@media (max-width: 890px) {
  .diery-timeline-spine {
    left: 28px;
  }
  .diery-node {
    left: 28px;
    top: 14px;
  }
  .diery-node-circle {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 3px #ffffff, 0 6px 18px rgba(0, 0, 0, 0.5);
  }
  .diery-node-logo {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }
  .diery-item {
    flex-direction: column;
    margin-bottom: 50px;
  }
  .diery-item--left .diery-card,
  .diery-item--right .diery-card {
    width: calc(100% - 66px);
    margin-left: 66px;
    margin-right: 0;
    padding: 24px 20px 22px;
  }
  .diery-item--left .diery-card::after,
  .diery-item--right .diery-card::after {
    top: 24px;
    left: -10px;
    right: auto;
    border-right: 10px solid #141226;
    border-left: none;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
  .diery-item--left .diery-date,
  .diery-item--right .diery-date {
    position: static;
    margin-left: 66px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 13.5px;
    color: var(--cyan);
  }
  .diery-role {
    font-size: 19px;
  }
}

/* ===== SECTION PROJETS (FILTRE + CARTES INTERACTIVES) ===== */
/* Barre de Filtres de Projets (Inspiration Fallou Ndiaye) */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  background: rgba(14, 20, 44, 0.6);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  width: fit-content;
  backdrop-filter: blur(12px);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.filter-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(139, 92, 246, 0.6);
}

.filter-count {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 800;
}

.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 0;
}

.projects-pagination[hidden] {
  display: none !important;
}

.projects-page-btn {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: 700 14px var(--font-sans);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.projects-page-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  color: var(--text);
}

.projects-page-btn[aria-current="page"] {
  border-color: transparent;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(139, 92, 246, .55);
}

.projects-page-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}

/* Grille des Projets */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, opacity .35s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  position: relative;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 24px 50px -15px rgba(139, 92, 246, 0.4);
}

/* Cadre d'aperçu Visuel (Style Diery Dia & Fallou Ndiaye) */
.project-preview {
  position: relative;
  margin: 12px 12px 0 12px;
  border-radius: 18px;
  overflow: hidden;
  height: 205px;
  background: #090d1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(34, 211, 238, .16), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96));
  color: #e2e8f0;
  text-align: center;
}

.report-preview-placeholder::before,
.report-preview-placeholder::after {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(34, 211, 238, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.report-preview-placeholder::after {
  width: 240px;
  height: 240px;
  border-color: rgba(139, 92, 246, .12);
}

.report-preview-placeholder > i,
.report-preview-placeholder > span,
.report-preview-placeholder > small {
  position: relative;
  z-index: 1;
}

.report-preview-placeholder > i {
  color: var(--cyan);
  font-size: 34px;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, .35));
}

.report-preview-placeholder > span {
  max-width: 360px;
  font-size: 15px;
  font-weight: 800;
}

.report-preview-placeholder > small {
  color: #94a3b8;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.project-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity .4s ease, transform .45s var(--ease), filter .45s;
  pointer-events: none;
}
.preview-img.is-active {
  opacity: 1;
  pointer-events: auto;
}
.project-card:hover .preview-img.is-active {
  transform: scale(1.05);
}

/* Boutons de défilement des images du projet (Style carrousel interactif) */
.project-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(7, 9, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.project-card:hover .project-slide-nav,
.project-preview:hover .project-slide-nav {
  opacity: 1;
}
.project-slide-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.6);
}
.slide-prev {
  left: 8px;
}
.slide-next {
  right: 8px;
}

/* Points de pagination (dots) */
.project-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 7;
  pointer-events: auto;
  background: rgba(7, 9, 22, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all .25s ease;
}
.slide-dot:hover {
  background: #fff;
}
.slide-dot.is-active {
  width: 16px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Indicateur compteur (1/3) */
.slide-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(7, 9, 22, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 7;
  pointer-events: none;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 19, 0.05) 0%, rgba(7, 9, 19, 0.25) 50%, rgba(7, 9, 19, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  pointer-events: none;
}
.project-card:hover .preview-overlay {
  background: linear-gradient(180deg, rgba(7, 9, 19, 0.2) 0%, rgba(13, 17, 33, 0.6) 100%);
}

.preview-open-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(13, 17, 33, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.9);
  transition: all .25s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.project-card:hover .preview-open-badge {
  opacity: 1;
  transform: scale(1);
}

.preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #f2f2f2;
  background: #262626;
  border: 1px solid #404040;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.preview-actions-group {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 8;
}
.preview-actions-group .preview-action-btn {
  position: static;
}

.project-confidential-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 0;
  background: rgba(7, 9, 19, 0.85);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 8;
}

.project-confidential-badge > i {
  font-size: inherit;
}

.preview-actions-group .project-confidential-badge {
  position: static;
}

.preview-action-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 4;
}
.preview-action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(6deg);
}

.project-body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-header-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.project-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  transition: color .25s;
}
.project-card:hover .project-name {
  color: var(--cyan);
}

.project-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.project-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Filtrage d'affichage en JS */
.project-card.is-hidden {
  display: none !important;
}

/* ===== SECTION CERTIFICATIONS & DOCUMENTS ===== */
.documents-intro {
  max-width: 640px;
  margin: -30px 0 32px;
  color: var(--text-muted);
  font-size: 15px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.document-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(150px, .78fr) minmax(0, 1fr);
  min-height: 250px;
  box-shadow: var(--card-shadow);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.document-card:hover {
  border-color: var(--cover-accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

.document-card--academic { --cover-accent: #fbbf24; }
.document-card--experience { --cover-accent: #06b6d4; }
.document-card--certification { --cover-accent: #a78bfa; }
.document-card--diploma { --cover-accent: #34d399; }

.document-cover {
  position: relative;
  min-height: 250px;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--cover-accent) 22%, transparent), transparent 68%), var(--bg2);
  border-bottom: 1px solid var(--border);
  perspective: 1000px;
}

.book-preview {
  position: relative;
  width: min(100%, 230px);
  height: 205px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
}
.book-preview:focus-visible {
  outline: 2px solid var(--cover-accent);
  outline-offset: 5px;
}

.book-pages,
.book-cover {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.book-pages {
  z-index: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: #f7f4ec;
  box-shadow: 5px 5px 0 rgba(255, 255, 255, .13), 10px 10px 0 rgba(255, 255, 255, .06);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .12s ease, transform .24s var(--ease);
}

.preview-doc-header,
.preview-doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cover-accent);
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.preview-doc-header i { font-size: 16px; }
.preview-doc-title {
  color: #1e293b;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}
.preview-doc-subtitle { color: #64748b; font-size: 10px; text-align: center; }
.preview-doc-lines { display: grid; gap: 5px; }
.preview-doc-lines i { display: block; width: 100%; height: 3px; background: rgba(40, 42, 53, .16); }
.preview-doc-lines i:nth-child(2) { width: 82%; }
.preview-doc-lines i:nth-child(3) { width: 58%; }
.preview-doc-seal {
  align-self: center;
  padding: 3px 9px;
  border: 1px solid var(--cover-accent);
  border-radius: 50%;
  color: #64656b;
  font-family: var(--font-mono);
  font-size: 7px;
}

.book-cover {
  z-index: 1;
  transform-origin: left center;
  backface-visibility: hidden;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 50%, transparent);
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .015));
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .035), 15px 15px 0 rgba(255, 255, 255, .02), inset 5px 0 0 rgba(0, 0, 0, .16);
  transform: rotate(-3deg);
  transition: transform .45s cubic-bezier(.2, .75, .25, 1), opacity .12s ease, box-shadow .45s var(--ease);
}

.document-card.is-open .book-pages,
.document-card.is-auto-open .book-pages,
.document-card.is-hover-open .book-pages {
  opacity: 1;
  transform: scale(1);
  transition: opacity .16s .24s ease, transform .24s .12s var(--ease);
}
.document-card.is-open .book-cover,
.document-card.is-auto-open .book-cover,
.document-card.is-hover-open .book-cover {
  transform: rotateY(-165deg) rotate(-3deg);
  opacity: 0;
  box-shadow: none;
}
.document-card.is-open .book-cover,
.document-card.is-auto-open .book-cover {
  transition: transform .45s cubic-bezier(.2, .75, .25, 1), opacity .12s .3s ease, box-shadow .45s var(--ease);
}

.cover-topline,
.cover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cover-accent);
  font-family: var(--font-mono);
  font-size: 9px;
}
.cover-topline i { font-size: 11px; }
.cover-symbol { color: var(--cover-accent); font-size: 34px; margin: 10px 0 4px; }
.cover-kicker { color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; }
.cover-title { color: var(--text); font-family: var(--font-head); font-size: 26px; font-weight: 800; line-height: 1; }

.document-info { padding: 24px; align-self: center; }
.document-type { color: var(--cover-accent); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: .06em; }
.document-info h4 { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: #fff; }
.document-info p { color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }

/* ===== SECTION CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}
.contact-info p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 30px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.contact-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 16px;
  transition: all .25s var(--ease);
}
.contact-item:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
  transform: translateX(4px);
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.4);
}

.contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contact-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.contact-item:hover .contact-val {
  color: #fff;
}

.quick-copy-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}
.quick-copy-btn:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.copy-badge {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #10b981;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all .2s var(--ease);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.copy-badge::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #10b981;
}
.copy-badge.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform .25s, background .25s;
}
.contact-item:hover .contact-item-icon {
  transform: scale(1.08);
  background: var(--primary);
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--card-shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

input, textarea {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(139, 92, 246, 0.75);
}

.btn-submit.is-success { background: #10b981; }
.btn-submit.is-error   { background: #ef4444; }
.btn-submit:disabled   { opacity: .75; cursor: not-allowed; transform: none; }

.form-status {
  margin-top: 10px;
  font-size: 13.5px;
  min-height: 1.4em;
  font-family: var(--font-mono);
}
.form-status.success { color: #34d399; }
.form-status.error   { color: #f87171; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(7, 9, 19, 0.85);
}

footer p {
  color: var(--text-muted);
  font-size: 14px;
}
footer .foot-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

/* ===== MODAL DÉTAILS PROJET (Inspiré de Fallou Ndiaye & Diery Dia) ===== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.project-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.project-modal-dialog {
  position: relative;
  z-index: 2;
  background: rgba(13, 17, 33, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 26px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(139, 92, 246, 0.25);
  transform: translateY(24px) scale(0.96);
  transition: transform .35s var(--ease);
}
.project-modal.is-active .project-modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-content {
  overflow-y: auto;
  max-height: 90vh;
  padding: 26px 32px 34px;
  -webkit-overflow-scrolling: touch;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 17, 33, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all .25s var(--ease);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}
.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6);
}

/* Aperçu Visuel dans la Modale avec Carrousel */
.modal-preview-wrapper {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070914;
}

.modal-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-report-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(34, 211, 238, .14), transparent 58%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  text-align: center;
}

.modal-report-placeholder > i {
  color: var(--cyan);
  font-size: 42px;
}

.modal-report-placeholder > span {
  max-width: 80%;
  font-size: 18px;
  font-weight: 800;
}

.modal-report-placeholder > small {
  color: #94a3b8;
}

.modal-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080c1b;
  display: block;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.modal-preview-img.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Boutons de navigation du carrousel dans la modale */
.modal-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 17, 33, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 8;
  transition: all .25s var(--ease);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.modal-slide-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.6);
}
.modal-slide-prev { left: 14px; }
.modal-slide-next { right: 14px; }

/* Puces de pagination dans la modale */
.modal-slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 8;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(7, 9, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.modal-slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.modal-slide-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.modal-slide-dot.is-active {
  width: 22px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Badge compteur dans la modale */
.modal-slide-count-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(7, 9, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 11px;
  border-radius: 8px;
  z-index: 8;
  pointer-events: none;
}

.modal-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(13, 17, 33, 0.7) 100%);
  pointer-events: none;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #262626;
  border: 1px solid #404040;
  color: #f2f2f2;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.modal-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.modal-section-title {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.modal-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.modal-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: bold;
  font-size: 14px;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-confidential-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-code-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--grad-primary);
  color: #fff;
  text-decoration: none;
  transition: all .25s var(--ease);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.5);
}
.modal-code-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -5px rgba(139, 92, 246, 0.7);
}

/* ===== BOUTON RETOUR EN HAUT (Back-to-Top) ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(13, 17, 33, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -5px rgba(139, 92, 246, 0.65);
}

/* ===== FOCUS VISIBLE (ACCESSIBILITÉ) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1050px) {
  header {
    padding-left: 24px;
    padding-right: 24px;
  }
  .header-status { display: none; }
  .hamburger { display: flex; }
  header nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
  }
  header nav.open { display: flex; }
  header nav a {
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
  }
  #home {
    gap: 40px;
  }
  .hero-float-card.float-card-1 { right: -10px; }
  .hero-float-card.float-card-2 { left: -20px; }
}

@media (max-width: 900px) {
  section, header {
    padding-left: 24px;
    padding-right: 24px;
  }
  header {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .header-status {
    display: none;
  }

  #home {
    flex-direction: column;
    gap: 50px;
    padding-top: 120px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-visual-card { margin: 0 auto; }
  .hero-stats { margin-left: auto; margin-right: auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-tag { right: 10px; bottom: -14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { justify-content: center; text-align: center; }
  .server-stack { width: 150px; }

  .hamburger { display: flex; }
  header nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
  }
  header nav.open { display: flex; }
  header nav a {
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  section, header {
    padding-left: 18px;
    padding-right: 18px;
  }
  header {
    gap: 8px;
  }
  .header-actions {
    gap: 6px;
  }
  .lang-switch {
    gap: 2px;
    padding: 4px;
  }
  .lang-btn {
    padding: 5px 7px;
  }
  .theme-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
  .hamburger {
    flex: 0 0 36px;
    width: 36px;
    padding: 6px;
  }
  .hero-name {
    font-size: clamp(38px, 12vw, 56px);
  }

  .section-title {
    font-size: clamp(32px, 10vw, 48px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions > a {
    justify-content: center;
    width: 100%;
  }
  .hero-visual-card {
    width: 290px;
    height: 290px;
  }
  .hero-float-card {
    padding: 7px 12px;
    border-radius: 14px;
    font-size: 12px;
  }
  .hero-float-card .fc-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }
  .hero-float-card .fc-text strong {
    font-size: 11.5px;
  }
  .hero-float-card .fc-text small {
    font-size: 10px;
  }
  .float-card-1 { right: -5px; top: -10px; }
  .float-card-2 { left: -10px; bottom: 20px; }
  .float-card-3 {
    display: flex;
    right: 4px;
    bottom: -16px;
  }

  .skills-grid,
  .projects-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }
  .document-card {
    grid-template-columns: 1fr;
  }
  .about-video {
    height: 320px;
  }
  .project-preview {
    height: 180px;
    margin: 10px 10px 0 10px;
  }
  .diery-timeline-spine {
    left: 20px;
  }
  .diery-node {
    left: 20px;
    top: 12px;
  }
  .diery-node-circle {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .diery-item--left .diery-card,
  .diery-item--right .diery-card {
    width: calc(100% - 52px);
    margin-left: 52px;
    padding: 22px 18px 20px;
  }
  .diery-item--left .diery-date,
  .diery-item--right .diery-date {
    margin-left: 52px;
    font-size: 13px;
  }
  .timeline-item {
    padding-left: 42px;
    gap: 16px;
  }
  .modal-content {
    padding: 20px 18px 24px;
  }
  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .modal-preview-wrapper {
    height: 180px;
  }
}

@media (max-width: 420px) {
  section, header {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-actions {
    gap: 4px;
  }
  .logo {
    gap: 5px;
    font-size: 18px;
  }
  .logo-mark {
    padding: 4px 7px;
  }
  .kw-pill {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ===== TRANSITIONS DE THÈME FLUIDES ===== */
body, header, nav, .project-card, .skill-card, .diery-card, .timeline-card, .document-card, .contact-form, .about-mini-stat, .stat-card, input, textarea {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

/* ===== THÈME CLAIR (VIBRANT TECH & HAUTE VISIBILITÉ) ===== */
html[data-theme="light"] {
  color-scheme: light;

  /* Palette de Base */
  --bg:             #f5f7fc;
  --bg2:            #eef2f9;
  --bg-card:        #ffffff;
  --bg-card-hover:  #ffffff;
  --surface:        rgba(255, 255, 255, 0.9);
  --surface-hover:  #ffffff;
  --surface-active: rgba(99, 102, 241, 0.12);
  --border:         rgba(203, 213, 225, 0.85);
  --border-light:   rgba(226, 232, 240, 0.95);
  --border-glow:    rgba(99, 102, 241, 0.45);

  /* Couleurs d'Accent vives et contrastées */
  --primary:        #4f46e5;
  --primary-light:  #6366f1;
  --primary-dark:   #3730a3;
  --cyan:           #0284c7;
  --cyan-light:     #0369a1;
  --blue:           #2563eb;
  --blue-light:     #1d4ed8;
  --green:          #059669;
  --gold:           #d97706;
  --pink:           #e11d48;

  /* Typographie & Contraste Élevé */
  --text:           #090d16;
  --text-muted:     #334155;
  --text-dim:       #64748b;

  /* Dégradés Signature Vifs */
  --grad-primary:   linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #0284c7 100%);
  --grad-primary-hover: linear-gradient(135deg, #4338ca 0%, #1d4ed8 50%, #0369a1 100%);
  --grad-text:      linear-gradient(135deg, #090d16 20%, #4338ca 65%, #0284c7 100%);
  --grad-accent:    linear-gradient(90deg, #4f46e5, #0284c7);
  --grad-glow:      radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 70%);

  /* Ombres Portées de Haute Précision */
  --card-shadow:    0 12px 30px -6px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(99, 102, 241, 0.04), inset 0 1px 0 #ffffff;
  --glow-shadow:    0 22px 50px -12px rgba(99, 102, 241, 0.28);
  --glow-cyan:      0 22px 50px -12px rgba(2, 132, 199, 0.28);
}

/* Arrière-plan dynamique et vivant en mode clair */
html[data-theme="light"] body {
  background-color: #f5f7fc;
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.1) 0px, transparent 55%),
    radial-gradient(at 85% 20%, rgba(6, 182, 212, 0.1) 0px, transparent 55%),
    radial-gradient(at 50% 85%, rgba(139, 92, 246, 0.08) 0px, transparent 60%);
  color: #090d16;
}

html[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(99, 102, 241, 0.14) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, transparent 85%);
  opacity: 0.55;
}

html[data-theme="light"] .ambient-orb {
  opacity: 0.5;
  filter: blur(80px);
}
html[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.12) 50%, transparent 70%);
}
html[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
}
html[data-theme="light"] .orb-3 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
}

html[data-theme="light"] #cursor-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(2, 132, 199, 0.04) 40%, transparent 70%);
}

html[data-theme="light"] .project-card::after,
html[data-theme="light"] .skill-card::after,
html[data-theme="light"] .about-card::after {
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(99, 102, 241, 0.12),
    rgba(6, 182, 212, 0.05) 45%,
    transparent 65%
  );
}

/* Header & Nav en mode clair */
html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] header nav a {
  color: #334155;
  font-weight: 600;
}
html[data-theme="light"] header nav a:hover,
html[data-theme="light"] header nav a.active {
  color: #4f46e5;
  background: #ede9fe;
}
html[data-theme="light"] .logo-mark {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
  font-weight: 800;
}
html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .theme-toggle:hover {
  background: #ede9fe;
  border-color: #6366f1;
  color: #4f46e5;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  html[data-theme="light"] header nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  }
}

/* Titres de Sections et Badges */
html[data-theme="light"] .section-label {
  color: #4f46e5;
  font-weight: 800;
}
html[data-theme="light"] .section-title {
  color: #090d16;
  font-weight: 800;
  letter-spacing: -0.025em;
}
html[data-theme="light"] .section-title span {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
html[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #090d16 25%, #4338ca 70%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .hero-role {
  color: #0284c7;
  font-weight: 700;
}
html[data-theme="light"] .hero-desc {
  color: #334155;
  font-size: 17.5px;
}
html[data-theme="light"] .hero-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-weight: 700;
}
html[data-theme="light"] .hero-float-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .hero-float-card .fc-text strong {
  color: #090d16;
  font-weight: 700;
}
html[data-theme="light"] .hero-float-card .fc-text small {
  color: #475569;
  font-weight: 600;
}
html[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .stat-card .num {
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .stat-card .lbl {
  color: #475569;
  font-weight: 600;
}
html[data-theme="light"] .social-link {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .social-link:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
}
html[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #090d16;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .btn-secondary:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #4f46e5;
}

/* ===== SECTION À PROPOS EN MODE CLAIR ===== */
html[data-theme="light"] .about-media-card {
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}
html[data-theme="light"] .about-tag {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}
html[data-theme="light"] .about-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
  border-radius: 18px;
}
html[data-theme="light"] .about-card:hover {
  transform: translateX(6px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 18px 40px -10px rgba(99, 102, 241, 0.22);
}
html[data-theme="light"] .about-icon {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  color: #4f46e5;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.18);
}
html[data-theme="light"] .about-card:hover .about-icon {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.45);
}
html[data-theme="light"] .about-card h4 {
  color: #090d16;
  font-weight: 800;
  font-size: 17px;
}
html[data-theme="light"] .about-card p {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

/* ===== SECTION COMPÉTENCES EN MODE CLAIR (VIBRANT & ULTRA-ATTRACTIF) ===== */
html[data-theme="light"] .skill-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(99, 102, 241, 0.04), inset 0 1px 0 #ffffff;
  border-radius: 24px;
}
html[data-theme="light"] .skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 24px 50px -12px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.2);
}
html[data-theme="light"] .skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  color: #4f46e5;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.2);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
html[data-theme="light"] .skill-card:hover .skill-icon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.45);
}
html[data-theme="light"] .skill-card h3 {
  color: #090d16;
  font-size: 19px;
  font-weight: 800;
}
html[data-theme="light"] .skill-card p {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}
html[data-theme="light"] .skill-tag {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #090d16;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .skill-tag:hover {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.25);
}

/* ===== SECTION EXPÉRIENCE EN MODE CLAIR (Style Diery Dia avec Relief Pur) ===== */
html[data-theme="light"] .diery-timeline-spine {
  background: linear-gradient(180deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}
html[data-theme="light"] .diery-date {
  color: #090d16;
  font-weight: 800;
  text-shadow: 0 1px 0 #ffffff;
}
html[data-theme="light"] .diery-node-circle {
  background: #ffffff;
  border: 2.5px solid #c7d2fe;
  box-shadow: 0 0 0 4px #eef2ff, 0 8px 24px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .diery-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .diery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 24px 50px -12px rgba(99, 102, 241, 0.22);
}
html[data-theme="light"] .diery-item--left .diery-card::after {
  border-left-color: #ffffff;
}
html[data-theme="light"] .diery-item--right .diery-card::after {
  border-right-color: #ffffff;
}
html[data-theme="light"] .diery-role {
  color: #090d16;
  font-weight: 800;
  font-size: 23px;
}
html[data-theme="light"] .diery-company {
  color: #4f46e5;
  font-weight: 700;
}
html[data-theme="light"] .diery-lead {
  color: #334155;
  font-size: 14.5px;
}
html[data-theme="light"] .diery-bullets li {
  color: #475569;
}
html[data-theme="light"] .diery-bullets li::before {
  color: #6366f1;
}
html[data-theme="light"] .kw-pill {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  font-weight: 700;
}
html[data-theme="light"] .diery-card-footer {
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}
html[data-theme="light"] .diery-attestation-btn {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}
html[data-theme="light"] .diery-attestation-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
}
html[data-theme="light"] .diery-attestation-btn--memoire {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
  color: #0369a1;
}
html[data-theme="light"] .diery-attestation-btn--memoire:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.4);
}

/* ===== FORMATION TIMELINE EN MODE CLAIR ===== */
html[data-theme="light"] .timeline-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .timeline-title {
  color: #090d16;
  font-weight: 800;
}
html[data-theme="light"] .timeline-org {
  color: #0284c7;
  font-weight: 700;
}
html[data-theme="light"] .timeline-date {
  background: #ede9fe;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
  font-weight: 700;
}
html[data-theme="light"] .timeline-desc {
  color: #334155;
}
html[data-theme="light"] .btn-timeline-doc {
  background: #ede9fe;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-weight: 700;
}
html[data-theme="light"] .btn-timeline-doc:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* ===== SECTION PROJETS / RÉALISATIONS EN MODE CLAIR ===== */
html[data-theme="light"] .filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .filter-btn:hover,
html[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.35);
}
html[data-theme="light"] .projects-page-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
html[data-theme="light"] .projects-page-btn:hover:not(:disabled) {
  border-color: #6366f1;
  color: #4f46e5;
}
html[data-theme="light"] .projects-page-btn[aria-current="page"] {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
}
html[data-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 24px 55px -12px rgba(99, 102, 241, 0.24);
}
html[data-theme="light"] .project-preview {
  background: #090d16;
  border: 1px solid rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .report-preview-placeholder {
  background:
    radial-gradient(ellipse at 50% 15%, rgba(79, 70, 229, .12), transparent 55%),
    linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0f172a;
}
html[data-theme="light"] .report-preview-placeholder > i {
  color: #4f46e5;
  filter: drop-shadow(0 0 14px rgba(79, 70, 229, .25));
}
html[data-theme="light"] .report-preview-placeholder > small {
  color: #475569;
}
html[data-theme="light"] .project-name {
  color: #090d16;
  font-weight: 800;
}
html[data-theme="light"] .project-card:hover .project-name {
  color: #4f46e5;
}
html[data-theme="light"] .project-kicker {
  color: #64748b;
  font-weight: 700;
}
html[data-theme="light"] .project-desc {
  color: #334155;
}
html[data-theme="light"] .stack-tag {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #090d16;
  font-weight: 600;
}
html[data-theme="light"] .stack-tag:hover {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #5b21b6;
}
html[data-theme="light"] .preview-open-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #090d16;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  font-weight: 800;
}
html[data-theme="light"] .preview-badge {
  background: #eeeeee;
  border: 1px solid #d4d4d4;
  color: #333333;
  font-weight: 700;
}
html[data-theme="light"] .preview-action-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  color: #090d16;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .preview-action-btn:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
html[data-theme="light"] .project-confidential-badge {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  color: #090d16;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .project-slide-nav {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  color: #090d16;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .project-slide-nav:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
html[data-theme="light"] .slide-count-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ===== SECTION CERTIFICATIONS EN MODE CLAIR (Livres 3D) ===== */
html[data-theme="light"] .document-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .document-info h4 {
  color: #090d16;
  font-weight: 800;
}
html[data-theme="light"] .document-info p {
  color: #334155;
}
html[data-theme="light"] .document-type {
  color: #4f46e5;
  font-weight: 800;
}
html[data-theme="light"] .btn-doc-view {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-weight: 700;
}
html[data-theme="light"] .btn-doc-view:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
}
html[data-theme="light"] .book-cover {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.02));
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.05), 15px 15px 0 rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .book-pages {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .preview-doc-title {
  color: #090d16;
}
html[data-theme="light"] .cover-title {
  color: #090d16;
}

/* ===== SECTION CONTACT & FORMULAIRE EN MODE CLAIR ===== */
html[data-theme="light"] .contact-info h3 {
  color: #090d16;
  font-weight: 800;
}
html[data-theme="light"] .contact-info p {
  color: #334155;
}
html[data-theme="light"] .contact-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .contact-item:hover {
  background: #ede9fe;
  border-color: #6366f1;
  color: #4f46e5;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.18);
}
html[data-theme="light"] .contact-val {
  color: #090d16;
  font-weight: 700;
}
html[data-theme="light"] .contact-item:hover .contact-val {
  color: #4f46e5;
}
html[data-theme="light"] .contact-label {
  color: #64748b;
  font-weight: 600;
}
html[data-theme="light"] .contact-item-icon {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
}
html[data-theme="light"] .contact-item:hover .contact-item-icon {
  background: #4f46e5;
  color: #ffffff;
}
html[data-theme="light"] .quick-copy-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
}
html[data-theme="light"] .quick-copy-btn:hover {
  background: #ede9fe;
  border-color: #4f46e5;
  color: #4f46e5;
}
html[data-theme="light"] .contact-form {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 14px 35px -8px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] label {
  color: #1e293b;
  font-weight: 700;
}
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #090d16;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #94a3b8;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ===== MODALE PROJET & CARROUSEL INTERNE EN MODE CLAIR ===== */
html[data-theme="light"] .project-modal-backdrop {
  background: rgba(15, 23, 42, 0.65);
}
html[data-theme="light"] .project-modal-dialog {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.35);
}
html[data-theme="light"] .modal-title {
  color: #090d16;
  font-weight: 800;
}
html[data-theme="light"] .modal-badge {
  background: #eeeeee;
  border-color: #d4d4d4;
  color: #333333;
  font-weight: 700;
}
html[data-theme="light"] .modal-desc {
  color: #334155;
}
html[data-theme="light"] .modal-preview-wrapper {
  background: #090d16;
  border: 1px solid rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .modal-preview-img {
  background: #090d16;
}
html[data-theme="light"] .modal-slide-nav {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  color: #090d16;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
html[data-theme="light"] .modal-slide-nav:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
html[data-theme="light"] .modal-slide-dots {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
html[data-theme="light"] .modal-slide-dot {
  background: rgba(255, 255, 255, 0.4);
}
html[data-theme="light"] .modal-slide-dot.is-active {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}
html[data-theme="light"] .modal-slide-count-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
html[data-theme="light"] .modal-meta-grid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
html[data-theme="light"] .meta-label {
  color: #64748b;
  font-weight: 600;
}
html[data-theme="light"] .meta-val {
  color: #090d16;
  font-weight: 700;
}
html[data-theme="light"] .modal-section-title {
  color: #4f46e5;
  font-weight: 800;
}
html[data-theme="light"] .modal-highlights li {
  color: #334155;
}
html[data-theme="light"] .modal-highlights li::before {
  color: #4f46e5;
}
html[data-theme="light"] .modal-tech-stack .stack-tag {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #090d16;
  font-weight: 600;
}
html[data-theme="light"] .modal-tech-stack .stack-tag:hover {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #5b21b6;
}
html[data-theme="light"] .modal-close-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #090d16;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
html[data-theme="light"] .back-to-top {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #090d16;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .back-to-top:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
html[data-theme="light"] footer {
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.6);
}

/* ===== ANIMATIONS RÉDUITES (ACCESSIBILITÉ) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #cursor-glow, .ambient-orb { display: none; }
  .hero-float-card { animation: none; }
}


/* =============================================================
   TIDIANE — additional component classes (semantic overrides)
   These supplement the original design tokens for the custom
   sections I authored in index.html.
   ============================================================= */

.container {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Logo */
.logo {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  gap: 2px;
  letter-spacing: -.02em;
}
.logo-bracket { color: var(--primary); }
.logo-name    { color: var(--text); }

/* Nav links */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    z-index: 1000;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.5rem; }
}

/* Hero avatar glow */
.hero-avatar-glow {
  position: absolute;
  inset: -20px;
  background: var(--grad-glow);
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

/* Float card label/value */
.fc-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
}
.fc-value {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  font-family: var(--font-mono);
}

/* Sections */
.section { padding: 100px 0; position: relative; }
.section .container { position: relative; z-index: 1; }
@media (max-width: 768px) { .section { padding: 60px 0; } }

/* Section head */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--primary);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-shadow);
}
.about-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--surface-active);
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.about-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.skill-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface-active);
  color: var(--cyan);
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.skill-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 30px;
}
.timeline-item--left  { left: 0; text-align: right; }
.timeline-item--right { left: 50%; text-align: left; }
.timeline-node {
  position: absolute;
  top: 30px;
  width: 40px; height: 40px;
}
.timeline-item--left  .timeline-node { right: -20px; }
.timeline-item--right .timeline-node { left:  -20px; }
.timeline-node-circle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--border-glow);
  z-index: 2;
  position: relative;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color .3s var(--ease);
}
.timeline-card:hover { border-color: var(--border-glow); }
.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cyan);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.timeline-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.timeline-org { font-size: .85rem; color: var(--primary); margin: 0 0 12px; }
.timeline-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 12px; }
.timeline-bullets { list-style: none; padding: 0; margin: 0; }
.timeline-bullets li {
  font-size: .85rem;
  color: var(--text-muted);
  padding: 3px 0 3px 18px;
  position: relative;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding: 20px 0 20px 50px; text-align: left; left: 0 !important; }
  .timeline-item--left, .timeline-item--right { left: 0; }
  .timeline-node { left: 0 !important; right: auto !important; }
}

/* Projects */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-light); }
.filter-btn.is-active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-glow); }
.project-cover {
  height: 160px;
  background: var(--grad-primary);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.project-cover-glow {
  position: absolute; inset: 0;
  background: var(--grad-glow);
  opacity: .6;
}
.project-cover-icon {
  font-size: 3rem;
  color: rgba(255,255,255,.95);
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.project-body { padding: 22px; }
.project-body .stack-tag { margin-right: 4px; }
.project-body h3 { font-size: 1.1rem; font-weight: 700; margin: 12px 0 8px; color: var(--text); }
.project-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 16px; }
.project-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.project-year { font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim); }
.project-link {
  font-size: .85rem; font-weight: 600; color: var(--primary-light);
  text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
}
.project-link:hover { color: var(--cyan); }
.stack-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 3px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 5px;
  margin: 0 4px 4px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.contact-info > p { color: var(--text-muted); line-height: 1.6; margin: 0 0 24px; }
.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-item:hover { border-color: var(--border-glow); transform: translateX(4px); }
.ci-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface-active);
  color: var(--primary);
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ci-label { display: block; font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.ci-value { display: block; font-size: .95rem; color: var(--text); font-weight: 600; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: border-color .2s;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.btn-submit {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--glow-shadow); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-status { font-size: .85rem; margin: 0; min-height: 1.2em; }
.form-status.is-error   { color: var(--pink); }
.form-status.is-success { color: var(--green); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-link { color: var(--primary-light); text-decoration: none; }
.footer-link:hover { color: var(--cyan); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 100;
  box-shadow: var(--glow-shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Header styling */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 19, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
#header.is-scrolled {
  padding: 10px 32px;
  border-bottom-color: var(--border);
  background: rgba(7, 9, 19, .9);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.social-link:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .2s;
}
.theme-toggle:hover { color: var(--primary); }
.hamburger {
  display: none;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }
@media (max-width: 900px) {
  .hamburger { display: flex; }
}
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 200;
}
.skip-link:focus { top: 0; }

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 120px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 100px 24px 40px; }
}
.hero-content { display: flex; flex-direction: column; gap: 18px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  width: fit-content;
  position: relative;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}
.live-ping {
  position: absolute;
  left: 0; top: 0;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pingRadar 2s cubic-bezier(0,0,.2,1) infinite;
}
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  margin: 0;
  min-height: 1.5em;
}
.cursor-blink {
  color: var(--primary);
  animation: blink 1s steps(1) infinite;
  margin-right: 4px;
}
.hero-desc {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
  font-size: 1.02rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-primary, .btn-secondary, .btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-shadow); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-cv {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-cv:hover { background: var(--cyan); color: #fff; }
.hero-socials { display: flex; gap: 10px; margin-top: 8px; }

.hero-visual { position: relative; min-height: 480px; }
.hero-visual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-avatar-wrap { position: relative; }
.hero-avatar {
  width: 180px; height: 180px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 5rem;
  position: relative;
  z-index: 1;
}
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 2;
}
.float-card-1 { top: 20%; left:  -10%; animation: floatCard1 6s ease-in-out infinite; }
.float-card-2 { top: 55%; right: -5%;  animation: floatCard2 7s ease-in-out infinite; }
.float-card-3 { bottom: 8%; left: 5%; animation: floatCard1 8s ease-in-out infinite reverse; }
@media (max-width: 900px) {
  .float-card-1 { left: 0; } .float-card-2 { right: 0; }
}
.fc-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--surface-active);
  color: var(--primary);
  border-radius: 8px;
  font-size: .95rem;
  flex-shrink: 0;
}

.hero-stats {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: var(--card-shadow);
  width: max-content;
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-card { text-align: center; }
.stat-card .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-mono);
}
.stat-card .lbl {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .hero-stats { position: static; transform: none; flex-wrap: wrap; margin-top: 24px; }
  .hero-visual { min-height: 380px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.reveal-active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
