:root {
  --bg: #0a0c14;
  --panel: #12151f;
  --panel-hover: #1a1e2e;
  --muted: #7a8299;
  --text: #f0f2f8;
  --brand: #00d4ff;
  --brand-glow: rgba(0, 212, 255, 0.4);
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --success: #10b981;
  --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background */
.bg-gradient {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
}
.bg-gradient::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}
@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -2%); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 90%); margin-inline: auto; max-width: 1400px; }
.gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.25rem;
}
.brand-logo-img {
  width: 42px;
  height: 42px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 4px 20px rgba(0, 212, 255, 0.3));
}
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: #000;
  box-shadow: 0 4px 20px var(--brand-glow);
}
.nav-links {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.03);
  padding: 6px; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}
.nav-links a {
  padding: 10px 16px; border-radius: var(--radius-md);
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active {
  color: var(--bg); background: var(--brand);
  box-shadow: 0 2px 12px var(--brand-glow);
}
.nav-socials { display: flex; gap: 8px; }
.nav-socials a {
  width: 40px; 
  height: 40px;
  max-width: 44px;
  max-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
}
.nav-socials a img {
  width: 24px; 
  height: 24px;
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}
.nav-socials a:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: none;
  background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--brand);
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.hero-stats {
  display: flex; gap: 32px; margin-bottom: 36px; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { 
  position: relative; 
  width: 100%;
  max-width: 450px; 
  margin: 0 auto;
}
.hero-image-placeholder {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.2rem;
  overflow: hidden;
}
.hero-image-placeholder img, .hero-visual > img {
  width: 100%; height: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-floating-card {
  position: absolute; 
  bottom: clamp(-10px, -2vw, -20px); 
  left: clamp(-10px, -2vw, -20px); 
  right: clamp(10px, 2vw, 20px);
  background: rgba(18, 21, 31, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); 
  padding: clamp(12px, 2vw, 20px);
}
.hero-floating-card h4 { font-size: clamp(0.75rem, 1.5vw, 0.85rem); color: var(--brand); margin-bottom: 8px; }
.hero-floating-card p { font-size: clamp(0.95rem, 2vw, 1.1rem); font-weight: 600; margin-bottom: 4px; }
.hero-floating-card span { font-size: clamp(0.75rem, 1.5vw, 0.85rem); color: var(--muted); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(10px, 2vw, 14px) clamp(18px, 3vw, 28px); 
  border-radius: var(--radius-md);
  font-weight: 600; 
  font-size: clamp(0.85rem, 1.5vw, 0.95rem); 
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1); color: #000;
  box-shadow: 0 4px 20px var(--brand-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--brand-glow); }
.btn-secondary {
  background: rgba(255,255,255,0.05); color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* === SECTIONS === */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-badge {
  display: inline-flex; padding: 6px 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 16px; }
.section-header p { color: var(--muted); font-size: 1.1rem; }

/* === CARDS === */
.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); 
  padding: clamp(16px, 3vw, 28px);
  transition: all 0.3s ease;
}
.card:hover { background: var(--panel-hover); transform: translateY(-4px); }

/* === TIMELINE === */
.timeline { position: relative; padding-left: clamp(30px, 5vw, 40px); }
.timeline::before {
  content: ''; position: absolute; left: clamp(6px, 1vw, 8px); top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--accent), transparent);
}
.timeline-item { position: relative; padding-bottom: clamp(24px, 4vw, 40px); cursor: pointer; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: clamp(-26px, -4vw, -34px); top: 4px; 
  width: clamp(14px, 2vw, 18px); height: clamp(14px, 2vw, 18px);
  border-radius: 50%; background: var(--bg); border: 3px solid var(--brand);
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot { background: var(--brand); box-shadow: 0 0 20px var(--brand-glow); }
.timeline-item.future .timeline-dot { border-color: var(--accent); border-style: dashed; }
.timeline-date { font-size: 0.85rem; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.timeline-item.future .timeline-date { color: var(--accent); }
.timeline-content {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md); 
  padding: clamp(14px, 2.5vw, 20px); 
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-content { background: var(--panel-hover); border-color: rgba(0, 212, 255, 0.2); }
.timeline-title { 
  font-size: clamp(1rem, 2vw, 1.15rem); 
  font-weight: 600; margin-bottom: 6px; 
  display: flex; align-items: center; gap: clamp(6px, 1.5vw, 10px); flex-wrap: wrap; 
}
.timeline-badge {
  padding: 4px 10px; background: rgba(16, 185, 129, 0.15); color: var(--success);
  border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.timeline-badge.upcoming { background: rgba(124, 58, 237, 0.15); color: var(--accent); }
.timeline-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.timeline-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.timeline-stat {
  padding: 8px 14px; background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm); font-size: 0.85rem;
}
.timeline-stat strong { color: var(--brand); }
.timeline-expand { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--brand); font-size: 0.85rem; font-weight: 500; }

/* === PROJECTS === */
.projects-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); 
  gap: clamp(16px, 3vw, 24px); 
}
.project-card {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease;
  max-width: 600px;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.2); }
.project-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  overflow: hidden;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-content { padding: clamp(16px, 3vw, 24px); }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.project-tag {
  padding: 4px 10px; background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--brand);
}
.project-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.project-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 0.9rem; }

/* === COLLAB === */
.collab-grid { 
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: clamp(24px, 4vw, 40px); 
  align-items: start; 
}
.collab-reasons { display: grid; gap: clamp(12px, 2vw, 16px); }
.collab-reason {
  display: flex; gap: clamp(12px, 2vw, 16px); 
  padding: clamp(14px, 2.5vw, 20px);
  background: var(--panel); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md); transition: all 0.3s ease;
}
.collab-reason:hover { background: var(--panel-hover); border-color: rgba(0, 212, 255, 0.2); }
.collab-icon {
  width: clamp(40px, 5vw, 48px); 
  height: clamp(40px, 5vw, 48px); 
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; 
  font-size: clamp(1.1rem, 2vw, 1.3rem); 
  flex-shrink: 0;
}
.collab-reason h4 { font-size: 1rem; margin-bottom: 4px; }
.collab-reason p { color: var(--muted); font-size: 0.9rem; }
.collab-cta-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg); 
  padding: clamp(20px, 4vw, 32px); 
  text-align: center;
}
.collab-cta-card h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
.collab-cta-card p { color: var(--muted); margin-bottom: clamp(16px, 3vw, 24px); font-size: clamp(0.9rem, 1.5vw, 1rem); }
.collab-types { display: flex; flex-wrap: wrap; gap: clamp(6px, 1vw, 8px); justify-content: center; margin-bottom: clamp(16px, 3vw, 24px); }
.collab-type { padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px); background: rgba(255,255,255,0.05); border-radius: 999px; font-size: clamp(0.75rem, 1.3vw, 0.85rem); font-weight: 500; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px); }
.contact-form { display: flex; flex-direction: column; gap: clamp(14px, 2.5vw, 20px); }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: clamp(0.85rem, 1.5vw, 0.9rem); }
.form-group input, .form-group textarea {
  width: 100%; 
  padding: clamp(10px, 2vw, 14px) clamp(14px, 2vw, 18px);
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); color: var(--text);
  font-family: inherit; font-size: clamp(0.9rem, 1.5vw, 1rem); transition: all 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: clamp(12px, 2.5vw, 20px); }
.contact-card {
  display: flex; gap: clamp(12px, 2vw, 16px); 
  padding: clamp(14px, 2.5vw, 20px);
  background: var(--panel); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md); transition: all 0.3s ease;
}
.contact-card:hover { background: var(--panel-hover); }
.contact-icon {
  width: clamp(40px, 5vw, 48px); 
  height: clamp(40px, 5vw, 48px);
  background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; 
  font-size: clamp(1rem, 1.8vw, 1.2rem); 
  flex-shrink: 0;
}
.contact-card h4 { font-size: clamp(0.85rem, 1.5vw, 0.95rem); margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: clamp(0.8rem, 1.4vw, 0.9rem); }
.contact-card a { color: var(--brand); }

/* === FOOTER === */
footer {
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; color: var(--muted); font-size: 0.9rem;
}
.footer-socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.footer-socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); transition: all 0.2s ease; font-size: 1.1rem;
}
.footer-socials a:hover { background: var(--brand); color: #000; }

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */

/* Très grands écrans (1440px+) */
@media (min-width: 1440px) {
  .container { width: min(1400px, 85%); }
  .hero-grid { gap: 80px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); max-width: 1200px; margin: 0 auto; }
  .project-card { max-width: 100%; }
}

/* Ultra larges (1920px+) */
@media (min-width: 1920px) {
  .container { width: min(1600px, 80%); }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 100px; }
  .hero-visual { max-width: 550px; }
}

/* Tablettes et petits laptops */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 400px; margin: 0 auto; }
  .hero-content { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .collab-grid, .contact-grid { grid-template-columns: 1fr; }
  .collab-cta-card { order: -1; }
}

/* Tablettes portrait */
@media (max-width: 900px) {
  .nav-links { 
    gap: 2px;
    padding: 4px;
  }
  .nav-links a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container { width: 92%; }
  
  .nav-links, .nav-socials { 
    display: none;
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 20px;
    gap: 12px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.mobile-open, .nav-socials.mobile-open { 
    display: flex; 
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    text-align: center;
  }
  .nav-socials {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-socials a {
    width: 44px;
    height: 44px;
  }
  .nav-socials a img {
    width: 24px;
    height: 24px;
  }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  .menu-toggle span { transition: all 0.3s ease; }
  
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-visual { max-width: 320px; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-stat { text-align: center; }
  .hero-floating-card {
    position: relative;
    bottom: auto; left: auto; right: auto;
    margin-top: 16px;
  }
  
  .timeline { padding-left: 28px; }
  .timeline::before { left: 5px; }
  .timeline-dot { left: -24px; width: 12px; height: 12px; border-width: 2px; }
  .timeline-stats { gap: 8px; }
  .timeline-stat { padding: 6px 10px; font-size: 0.8rem; }
  
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { max-width: 100%; }
  
  .collab-reason { flex-direction: column; text-align: center; }
  .collab-icon { margin: 0 auto; }
  
  section { padding: 60px 0; }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .container { width: 94%; }
  
  .brand span { font-size: 1.1rem; }
  .brand-logo-img { width: 36px; }
  
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-lead { font-size: 1rem; }
  .hero-stat-value { font-size: 1.5rem; }
  
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; width: 100%; }
  
  .section-header h2 { font-size: 1.5rem; }
  .section-badge { font-size: 0.7rem; }
  
  .project-title { font-size: 1.1rem; }
  .project-desc { font-size: 0.85rem; }
  
  .contact-card { flex-direction: column; text-align: center; }
  .contact-icon { margin: 0 auto; }
}
