/* ============================================
   DESIGN SYSTEM — Variables & Base
   ============================================ */
:root {
  /* Palette */
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;
  --accent: #7C3AED;
  --accent-light: #8B5CF6;
  --accent-dark: #6D28D9;
  --neon-green: #10B981;

  /* Backgrounds */
  --bg-body: #0B1120;
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #273548;
  --bg-surface: #162032;

  /* Text */
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Borders */
  --border: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.15);

  /* Gradients */
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
  --gradient-border: linear-gradient(135deg, var(--primary), var(--accent));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fs-base: clamp(0.95rem, 0.875rem + 0.35vw, 1.05rem);
  --fs-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --fs-xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-2xl: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  --fs-3xl: clamp(2.2rem, 1.6rem + 2.5vw, 3.2rem);
  --fs-4xl: clamp(2.8rem, 1.8rem + 3.5vw, 4rem);

  /* Spacing */
  --section-padding: clamp(4rem, 3rem + 4vw, 7rem);
  --container-max: 1200px;
  --nav-height: 70px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 0.5rem + 2vw, 2rem);
}

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-dark);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-size: var(--fs-base);
  font-weight: 600;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(11, 17, 32, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 0.5rem + 2vw, 2rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.logo-accent {
  color: var(--primary-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-link {
  background: var(--gradient) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-cta-link:hover {
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-overlay.active {
  opacity: 1;
}

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

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -15%;
  right: -10%;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -10%;
  left: -10%;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--neon-green);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.08;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--neon-green);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
}

.hero-title-highlight {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--fs-2xl);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: var(--fs-xl);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-weight: 500;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9/19.5;
  background: #1a1a2e;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    var(--shadow-lg),
    0 0 60px rgba(37, 99, 235, 0.15);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #2d3748;
  border-radius: 50%;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  padding-top: 2rem;
}

.phone-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
}

.screen-time {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text);
}

.screen-icons {
  display: flex;
  gap: 0.3rem;
  font-size: 0.4rem;
  color: var(--text);
}

.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.8rem;
}

.app-bar-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.app-bar-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}

.phone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phone-card {
  position: relative;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
}

.phone-card-gradient {
  width: 100%;
  height: 100%;
  background: var(--gradient);
}

.phone-card-text {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
}

.phone-card-label {
  font-size: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phone-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.list-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.list-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.line-long {
  width: 100px;
}

.line-short {
  width: 60px;
}

.phone-nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-nav-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.phone-nav-item.active {
  background: var(--gradient);
}

.phone-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 40px;
  background: rgba(37, 99, 235, 0.2);
  filter: blur(25px);
  border-radius: 50%;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.badge-kotlin {
  top: 15%;
  right: -5%;
}

.badge-firebase {
  bottom: 30%;
  left: -10%;
}

.badge-compose {
  top: 60%;
  right: -15%;
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 4s ease-in-out 1s infinite;
}

.animate-float-delay-2 {
  animation: float 4s ease-in-out 2s infinite;
}

/* ============================================
   À PROPOS
   ============================================ */
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.apropos-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.apropos-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.highlight-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.highlight-item span {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.skills-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s var(--ease);
}

.skill-tag:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

.service-icon i {
  font-size: 1.6rem;
  color: var(--primary-light);
}

.service-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.service-description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tags span {
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-weight: 500;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-thumbnail {
  position: relative;
  height: 220px;
  background: var(--card-gradient, var(--gradient));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: var(--bg-dark);
  font-size: 1.3rem;
  transform: scale(0.8);
  transition: transform 0.3s var(--ease-spring);
}

.portfolio-card:hover .portfolio-link {
  transform: scale(1);
}

/* Mini phone in portfolio */
.portfolio-phone-mini {
  width: 90px;
  height: 160px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mini-screen {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mini-header {
  height: 6px;
  width: 60%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex: 1;
}

.mini-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 0.3rem 0;
}

.mini-bubble {
  height: 8px;
  border-radius: 4px;
}

.bubble-left {
  width: 60%;
  background: rgba(37, 99, 235, 0.4);
  margin-right: auto;
}

.bubble-right {
  width: 50%;
  background: rgba(124, 58, 237, 0.4);
  margin-left: auto;
}

.mini-chart {
  flex: 1;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-radius: 4px;
  margin-top: auto;
  min-height: 40px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mini-check {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 3px;
  margin-left: 0.3rem;
}

.mini-circle {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(250, 112, 154, 0.5);
  border-radius: 50%;
  margin: auto;
  border-top-color: rgba(254, 225, 64, 0.5);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.portfolio-tags span {
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.portfolio-category {
  font-size: var(--fs-xs);
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   PROCESSUS — Timeline
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 16px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-marker span {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: white;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
}

.timeline-content:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(4px);
}

.timeline-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.timeline-icon i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.timeline-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.temoignage-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
}

.temoignage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.temoignage-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: #FBBF24;
  font-size: 1rem;
}

.temoignage-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.temoignage-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--avatar-gradient, var(--gradient));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.author-info span {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-info-icon i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.contact-info-item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.contact-info-item a,
.contact-info-item span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.contact-info-item a:hover {
  color: var(--primary-light);
}

.contact-social {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.social-link:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-size: var(--fs-base);
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: none;
  font-size: var(--fs-xs);
  color: #EF4444;
  margin-top: 0.3rem;
}

.form-error.visible {
  display: block;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: var(--fs-base);
}

.btn-submit .btn-icon {
  transition: transform 0.3s var(--ease);
}

.btn-submit:hover .btn-icon {
  transform: translateX(4px) translateY(-4px);
}

.btn-submit .btn-loading {
  display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline-flex;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.visible {
  display: block;
}

.form-success i {
  font-size: 3rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
}

.form-success p {
  font-size: var(--fs-base);
  color: var(--text-muted);
}

/* Honeypot — anti-spam, caché visuellement */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 0 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  padding: 0.3rem 0;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 1rem;
  transition: all 0.3s var(--ease);
}

.footer-socials a:hover {
  background: var(--gradient);
  color: white;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

/* ============================================
   ANIMATIONS — Scroll Reveal
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="6"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="7"] { transition-delay: 0.7s; }
.animate-on-scroll[data-delay="8"] { transition-delay: 0.8s; }
