/* ==========================================================================
   SOWSALIM — PORTFOLIO ULTRA-PREMIUM (DATA SCIENCE • AI • GEOAI • WEBGIS)
   Direction Artistique: Dark Tech Futuriste, Glassmorphism, Halos Néon & Gradients
   Auteur: Mamadou SOW
   ========================================================================== */

/* ===== 1. DESIGN TOKENS & THÈMES ===== */
:root {
  /* Dark Theme (Thème Principal / Par Défaut) */
  --bg-primary: #07090e;
  --bg-secondary: #0c111d;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --bg-glass: rgba(12, 17, 29, 0.65);
  --bg-glass-card: rgba(255, 255, 255, 0.03);

  /* Couleurs d'accentuation Cyber & Geo */
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-electric: #4facfe;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typographie & Couleurs de Texte */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #07090e;

  /* Bordures & Halos */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 242, 254, 0.28);
  --border-glow-purple: rgba(139, 92, 246, 0.35);

  /* Gradients */
  --gradient-cyber: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
  --gradient-geo: linear-gradient(135deg, #10b981 0%, #00f2fe 50%, #3b82f6 100%);
  --gradient-ai: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-dark-radial: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12) 0%, transparent 65%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 35px rgba(0, 242, 254, 0.25);
  --shadow-glow-blue: 0 0 35px rgba(59, 130, 246, 0.25);
  --shadow-glow-purple: 0 0 35px rgba(139, 92, 246, 0.25);

  /* Fontes */
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Dimensions & Rayons */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --header-height: 80px;

  /* Animations & Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Thème Clair (Light Mode) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(248, 250, 252, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.65);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.15);
  --border-glow: rgba(0, 180, 216, 0.35);

  --gradient-dark-radial: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow-cyan: 0 0 30px rgba(0, 180, 216, 0.18);
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Barre de progression du scroll */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--gradient-cyber);
  z-index: 10000;
  transition: width 0.08s ease;
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Toile Canvas d'arrière-plan interactif */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Grille holographique en overlay subtil */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
}

/* Halos lumineux d'ambiance */
.ambient-glow-1, .ambient-glow-2, .ambient-glow-3 {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}
.ambient-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  top: -150px;
  right: -100px;
}
.ambient-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: 15%;
  left: -120px;
}
.ambient-glow-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-emerald);
  top: 45%;
  right: 5%;
}

/* Conteneur principal */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-geo {
  background: var(--gradient-geo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-tag i {
  font-size: 0.85rem;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 3. BOUTONS & BADGES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #07090e;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
  color: #000;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges technologiques */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tech-pill:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* ===== 4. NAVIGATION NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}

.nav-logo-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07090e;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  overflow: hidden;
}
.nav-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand-text {
  letter-spacing: -0.02em;
}
.nav-brand-text span {
  color: var(--accent-cyan);
}

/* Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cyber);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Action buttons in nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}
.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(15deg);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.6);
  z-index: 1050;
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
}
.mobile-drawer.active {
  right: 0;
}
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-fast);
}
.mobile-nav-link i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  width: 24px;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent-cyan);
  transform: translateX(6px);
}

/* ===== 5. HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseBeacon 2s infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.hero-typewriter-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.4rem;
  font-family: var(--font-heading);
}
.typewriter-text {
  color: var(--accent-cyan);
  font-weight: 700;
  border-bottom: 2px solid rgba(0, 242, 254, 0.4);
}
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.4em;
  background: var(--accent-cyan);
  animation: blinkCursor 0.8s infinite;
  vertical-align: middle;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

/* Convergence Matrix Pill (DATA + AI + GIS + WEB) */
.convergence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow-cyan);
}
.convergence-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.convergence-item.data { color: var(--accent-cyan); }
.convergence-item.ai { color: var(--accent-purple); }
.convergence-item.gis { color: var(--accent-emerald); }
.convergence-item.web { color: var(--accent-electric); }
.convergence-plus {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}
.social-icon-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Hero Visual / Avatar Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame-outer {
  position: relative;
  width: 380px;
  height: 440px;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.4) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(16, 185, 129, 0.4) 100%);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
  animation: floatAvatar 6s ease-in-out infinite;
}

.avatar-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.avatar-frame-outer:hover .avatar-img {
  transform: scale(1.04);
}

/* Floating HUD cards on hero */
.floating-hud {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatHud 5s ease-in-out infinite alternate;
}
.floating-hud.hud-top {
  top: 25px;
  left: -35px;
  border-left: 3px solid var(--accent-cyan);
}
.floating-hud.hud-bottom {
  bottom: 25px;
  right: -35px;
  border-left: 3px solid var(--accent-emerald);
  animation-delay: -2.5s;
}
.hud-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.hud-icon.cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
}
.hud-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}
.hud-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hud-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* Satellite / Radar Orbit ring */
.orbit-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px dashed rgba(0, 242, 254, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: spinSlow 30s linear infinite;
}

/* Quick Stats Bar in Hero */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.stat-box {
  display: flex;
  flex-direction: column;
  position: relative;
}
.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}
.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ===== 6. SECTION À PROPOS ===== */
.section-padding {
  padding: 7rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.about-card-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-card-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cyber);
}

.about-bio-p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}
.identity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.identity-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.identity-info h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.identity-info p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Dual Pillar Cards (Geo + Data Science) */
.pillars-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan);
}
.pillar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.pillar-icon.data {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
}
.pillar-icon.geo {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}
.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
}
.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ===== 7. SECTION COMPÉTENCES (CARDS INTERACTIVES & 3D GLOW) ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}
.skill-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cyber);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.skill-category-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}
.skill-category-card:hover::before {
  opacity: 1;
}

.skill-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.skill-cat-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.skill-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  transition: all var(--transition-normal);
}
.skill-category-card:hover .skill-cat-icon {
  background: var(--gradient-cyber);
  color: #07090e;
  border-color: transparent;
  transform: scale(1.05);
}
.skill-cat-title {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}
.skill-cat-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.skill-row-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}
.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-level-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--gradient-cyber);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.skill-bar-fill.geo {
  background: var(--gradient-geo);
}

.skill-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===== 8. SECTION SPÉCIALE GEOAI PIPELINE ===== */
.geoai-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.pipeline-diagram {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  gap: 1.2rem;
  margin-top: 3.5rem;
}
.pipeline-connector-line {
  position: absolute;
  top: 48px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 35%, var(--accent-purple) 70%, var(--accent-blue) 100%);
  z-index: 0;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.pipeline-step {
  flex: 1;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pipeline-step:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}
.step-number-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}
.pipeline-step:nth-child(2) .step-number-bubble { border-color: var(--accent-emerald); color: var(--accent-emerald); }
.pipeline-step:nth-child(3) .step-number-bubble { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.pipeline-step:nth-child(4) .step-number-bubble { border-color: var(--accent-purple); color: var(--accent-purple); }
.pipeline-step:nth-child(5) .step-number-bubble { border-color: var(--accent-electric); color: var(--accent-electric); }
.pipeline-step:nth-child(6) .step-number-bubble { border-color: var(--accent-amber); color: var(--accent-amber); }

.step-icon-wrap {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.step-tools {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  margin-top: auto;
}

/* Geo Coordinates HUD strip */
.geo-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 1rem;
}
.geo-hud-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.geo-hud-item i {
  color: var(--accent-emerald);
}
.geo-hud-val {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ===== 9. SECTION PROJETS & PROJETS PHARES ===== */
.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--gradient-cyber);
  border-color: transparent;
  color: #07090e;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

/* Projets Phares (Featured Projects Layout) */
.featured-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  margin-bottom: 1.75rem;
}
.featured-section-title i {
  color: var(--accent-amber);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.featured-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.featured-project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

.project-visual-header {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-visual-gradient {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: transform var(--transition-slow);
}
.featured-project-card:hover .project-visual-gradient {
  transform: scale(1.08);
}
.project-card-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--accent-cyan);
  z-index: 2;
}
.project-year-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  z-index: 2;
}

.project-big-icon {
  font-size: 3.5rem;
  color: var(--accent-cyan);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.5));
}

.project-card-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.p-stat-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.p-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  margin-top: auto;
}

.project-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Grille des Projets Généraux */
.projects-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}
.project-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}
.project-item-card.hidden {
  display: none !important;
}

/* ===== 10. TIMELINE EXPÉRIENCES ===== */
.timeline-modern {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline-modern::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 40%, var(--accent-purple) 80%, transparent 100%);
}

.timeline-entry {
  position: relative;
  padding-left: 75px;
  margin-bottom: 3.5rem;
}
.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry-node {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.timeline-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}
.timeline-entry-card:hover {
  border-color: var(--border-glow);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.entry-date-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.entry-role {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.entry-org {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.entry-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}
.entry-points li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* ===== 11. FORMATION & CERTIFICATIONS ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.education-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}
.edu-degree {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.edu-univ {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.edu-period {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.edu-details {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Grille de Certifications */
.certifications-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.cert-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 24px -6px rgba(0, 242, 254, 0.15);
}
.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.cert-item:hover .cert-icon {
  background: rgba(0, 242, 254, 0.18);
  transform: scale(1.05);
}
.cert-info {
  flex: 1;
  min-width: 0;
}
.cert-info h4 {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cert-badge-type {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cert-badge-type.pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.cert-badge-type.img {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.cert-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.cert-item:hover .cert-view-btn {
  background: var(--accent-cyan);
  color: #07090e;
  border-color: var(--accent-cyan);
  transform: scale(1.08);
}

/* Modale Certificat */
.cert-modal-media {
  width: 100%;
  min-height: 280px;
  max-height: 68vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(4, 7, 13, 0.85);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.cert-modal-media img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cert-modal-media iframe {
  width: 100%;
  height: 65vh;
  border: none;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

/* ===== 12. SECTION RECHERCHE, PACKAGES & OPEN SOURCE ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.research-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan);
}
.research-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.badge-category {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-category.r-pkg {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-electric);
  border-color: rgba(59, 130, 246, 0.3);
}
.badge-category.geoai {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.research-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.research-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Mémoire Showcase Special Box */
.thesis-showcase-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(19, 27, 46, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.thesis-showcase-box::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.thesis-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}
.thesis-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.thesis-heading {
  font-size: 1.85rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}
.thesis-abstract-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* ===== 13. SECTION SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}
.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}
.service-card:hover .service-icon-box {
  background: var(--gradient-cyber);
  color: #07090e;
  transform: scale(1.08);
}
.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}
.service-deliverables li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-deliverables li i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

/* ===== 14. SECTION CONTACT & RÉFÉRENCES ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-card-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: var(--shadow-lg);
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.contact-link-item:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}
.contact-icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.contact-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Academic References */
.references-wrapper {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.references-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.reference-card-compact {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.ref-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ref-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.ref-phone {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-alert-msg {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}
.form-alert-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
  display: block;
}

/* ===== 15. MODALE DE PROJET (RICH-VIEWER) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  transform: translateY(30px) scale(0.96);
  transition: all var(--transition-normal);
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header-hero {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(14, 21, 37, 0.95) 0%, rgba(19, 27, 46, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--accent-rose);
  color: white;
  transform: rotate(90deg);
}

.modal-body-content {
  padding: 2.5rem;
}
.modal-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--accent-cyan);
}
.modal-section-title:first-child {
  margin-top: 0;
}
.modal-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.modal-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.modal-bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.modal-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}
.modal-footer {
  padding: 1.5rem 2.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ===== 16. FOOTER ===== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
}
.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Bouton Retour en Haut */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: #07090e;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

/* ===== 17. ANIMATIONS KEYFRAMES ===== */
@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

@keyframes floatAvatar {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes floatHud {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animations d'entrée au scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 18. RESPONSIVE BREAKPOINTS ===== */

/* --- 1100px : Tablettes large & desktop compact --- */
@media (max-width: 1100px) {
  :root {
    --header-height: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-badge-container,
  .hero-buttons,
  .hero-socials,
  .hero-typewriter-wrapper {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    order: -1;
  }
  .avatar-frame-outer {
    width: 320px;
    height: 380px;
  }
  .floating-hud.hud-top {
    left: -15px;
  }
  .floating-hud.hud-bottom {
    right: -15px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .thesis-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

/* --- 900px : Tablettes standard --- */
@media (max-width: 900px) {
  /* Navigation */
  .nav-links {
    display: none;
  }
  .nav-actions .btn:not(.btn-sm) {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .pipeline-diagram {
    flex-direction: column;
    gap: 2rem;
  }
  .pipeline-connector-line {
    display: none;
  }
  .pipeline-step {
    padding: 1.5rem 1.2rem;
  }

  /* Grilles */
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Stats bar */
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
  }
  .stat-box:nth-child(2)::after {
    display: none;
  }
  .stat-box:nth-child(4)::after {
    display: none;
  }

  /* Research / Services */
  .research-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section-padding {
    padding: 5rem 0;
  }

  /* Thesis box */
  .thesis-showcase-box {
    padding: 2rem;
  }
  .thesis-heading {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section title */
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }
}

/* --- 768px : Tablettes portrait & grands smartphones --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Container padding */
  .container {
    padding: 0 1rem;
  }

  /* Section */
  .section-padding {
    padding: 4rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }

  /* Hero */
  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 3rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .hero-typewriter-wrapper {
    font-size: clamp(1rem, 4vw, 1.4rem);
    flex-wrap: wrap;
  }
  .hero-description {
    font-size: 1rem;
  }
  .convergence-pill {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 1rem;
  }
  .stat-num {
    font-size: 1.8rem;
  }

  /* Avatar */
  .avatar-frame-outer {
    width: 260px;
    height: 310px;
  }
  .floating-hud {
    display: none; /* trop étroit sur mobile */
  }
  .orbit-ring {
    width: 300px;
    height: 300px;
  }

  /* About */
  .about-card-display {
    padding: 1.75rem;
  }
  .about-identity-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .skill-category-card {
    padding: 1.75rem;
  }
  .skill-cat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Pipeline */
  .pipeline-diagram {
    gap: 1.25rem;
  }
  .pipeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .step-number-bubble {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }
  .step-icon-wrap {
    font-size: 1.4rem;
    margin-bottom: 0;
  }
  .geo-hud-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  /* Projects */
  .filter-tabs-wrapper {
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
  .projects-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-card-body {
    padding: 1.5rem;
  }
  .project-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.65rem;
  }
  .project-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .project-actions-row .btn {
    justify-content: center;
    width: 100%;
  }
  .project-visual-header {
    height: 160px;
  }

  /* Timeline */
  .timeline-modern::before {
    left: 20px;
  }
  .timeline-entry {
    padding-left: 58px;
  }
  .timeline-entry-node {
    left: 4px;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .timeline-entry-card {
    padding: 1.5rem;
  }
  .entry-role {
    font-size: 1.15rem;
  }

  /* Education */
  .education-card {
    padding: 1.75rem;
  }
  .edu-degree {
    font-size: 1.15rem;
  }
  .certifications-strip {
    grid-template-columns: 1fr;
  }

  /* Research */
  .research-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .research-card {
    padding: 1.75rem;
  }
  .thesis-showcase-box {
    padding: 1.75rem;
  }
  .thesis-heading {
    font-size: 1.35rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card {
    padding: 2rem 1.5rem;
  }

  /* Contact */
  .contact-card-info,
  .contact-form-card {
    padding: 2rem;
  }
  .contact-icon-bubble {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* Modal */
  .modal-overlay {
    padding: 1rem;
    align-items: flex-end;
  }
  .modal-container {
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-header-hero {
    padding: 1.75rem;
  }
  .modal-body-content {
    padding: 1.75rem;
  }
  .modal-footer {
    padding: 1.25rem 1.75rem;
    flex-direction: column;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-desc {
    max-width: 100%;
  }
  .site-footer {
    padding: 3.5rem 0 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Back-to-top */
  .back-to-top-btn {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  /* Buttons global */
  .btn {
    padding: 0.8rem 1.35rem;
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* --- 600px : Smartphones courants --- */
@media (max-width: 600px) {
  /* Stats bar */
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }
  .stat-box::after {
    display: none !important;
  }
  .stat-num {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }

  /* Avatar */
  .avatar-frame-outer {
    width: 230px;
    height: 275px;
    border-radius: var(--radius-lg);
  }

  /* Footer two-column */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* About */
  .about-identity-grid {
    grid-template-columns: 1fr;
  }

  /* Section title */
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  /* Timeline — even narrower */
  .timeline-modern::before {
    display: none;
  }
  .timeline-entry {
    padding-left: 0;
    margin-bottom: 2rem;
  }
  .timeline-entry-node {
    display: none;
  }
  .timeline-entry-card {
    border-top: 3px solid var(--accent-cyan);
  }

  /* Mobile drawer full-width */
  .mobile-drawer {
    width: 90%;
    max-width: 340px;
  }

  /* Hero buttons stacked */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    max-width: 100%;
  }

  /* Pipeline steps compact */
  .pipeline-step {
    padding: 1rem;
  }
  .step-title {
    font-size: 0.95rem;
  }
  .step-desc {
    font-size: 0.78rem;
  }

  /* Certifications */
  .certifications-strip {
    grid-template-columns: 1fr;
  }
  .cert-item {
    padding: 1rem;
  }

  /* Pill tags wrap */
  .tech-pill,
  .filter-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }

  /* Contact page form */
  .contact-card-info,
  .contact-form-card {
    padding: 1.5rem;
  }
  .contact-link-item {
    gap: 0.85rem;
  }
  .contact-val {
    font-size: 0.9rem;
    word-break: break-all;
  }
  .references-title {
    font-size: 1rem;
  }
  .reference-card-compact {
    padding: 0.85rem 1rem;
  }

  /* Modal on small screens */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-container {
    max-height: 96vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-header-hero {
    padding: 1.25rem;
  }
  .modal-body-content {
    padding: 1.25rem;
  }
  .modal-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
  }

  /* Convergence pill compact */
  .convergence-pill {
    padding: 0.6rem 0.85rem;
    gap: 0.4rem;
  }
  .convergence-item {
    font-size: 0.75rem;
  }
}

/* --- 480px : Petits smartphones --- */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 0.85rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    letter-spacing: -0.02em;
  }
  .hero-typewriter-wrapper {
    font-size: clamp(0.95rem, 4.5vw, 1.2rem);
  }
  .hero-description {
    font-size: 0.95rem;
  }

  /* Stats: single column on tiny screens */
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.75rem;
  }

  /* Section title */
  .section-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .section-subtitle {
    font-size: 0.92rem;
  }

  /* Avatar */
  .avatar-frame-outer {
    width: 200px;
    height: 240px;
  }

  /* Skill cards */
  .skill-category-card {
    padding: 1.35rem;
  }
  .skill-cat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
  .skill-cat-title {
    font-size: 1rem;
  }

  /* Education cards */
  .education-card {
    padding: 1.35rem;
  }

  /* Contact cards */
  .contact-card-info,
  .contact-form-card {
    padding: 1.25rem;
  }
  .form-control {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }

  /* Research */
  .research-card {
    padding: 1.35rem;
  }

  /* Service */
  .service-card {
    padding: 1.5rem 1.25rem;
  }

  /* Thesis */
  .thesis-showcase-box {
    padding: 1.35rem;
  }

  /* Nav hamburger always visible */
  .nav-hamburger {
    display: flex !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-actions .btn {
    display: none !important;
  }

  /* Footer */
  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }
  .footer-brand h3 {
    font-size: 1.3rem;
  }

  /* Modal */
  .modal-close-btn {
    top: 0.85rem;
    right: 0.85rem;
  }

  /* Reduce glow blurs on mobile for performance */
  .ambient-glow-1,
  .ambient-glow-2,
  .ambient-glow-3 {
    filter: blur(80px);
    opacity: 0.10;
  }
  #particle-canvas {
    opacity: 0.4;
  }
  .bg-grid-overlay {
    display: none;
  }
}

/* --- 360px : Très petits appareils --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .stat-num {
    font-size: 1.45rem;
  }
  .avatar-frame-outer {
    width: 180px;
    height: 215px;
  }
  .convergence-pill {
    display: none; /* Supprimer la pill sur très petit écran */
  }
  .mobile-drawer {
    width: 100%;
    max-width: 100%;
  }
}