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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --text: #f0f0f0;
  --text-muted: #555;
  --accent: #00ff87;
  --accent-dark: #00cc6a;
  --border: #1f1f1f;
  --font: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  cursor: none;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== CURSOR ===== */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0.5;
}
.cursor-dot.hovered { width: 12px; height: 12px; }
.cursor-ring.hovered {
  width: 56px;
  height: 56px;
  opacity: 0.12;
  background: var(--accent);
  border-color: transparent;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.navbar-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.logo-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.navbar-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.navbar-link svg { width: 13px; height: 13px; }
.navbar-link:hover,
.navbar-link.active { color: var(--accent); }

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== LAYOUT ===== */
.main-content { padding-top: 80px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1;
}
.section-title svg {
  color: var(--accent);
  width: 2rem;
  height: 2rem;
}

/* ===== HERO ===== */
.hero-section { min-height: 100vh; display: flex; align-items: center; }
.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-title .highlight {
  color: var(--accent);
  display: block;
}
.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: none;
  border: none;
  font-family: var(--font);
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--accent);
  color: #000;
  border: 1.5px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-full { width: 100%; justify-content: center; }
.hero-social { display: flex; gap: 1rem; }
.social-link {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }
.social-link svg { width: 16px; height: 16px; }

/* Hero Image */
.hero-image { display: flex; justify-content: flex-end; }
.image-wrapper { position: relative; width: 340px; height: 340px; }
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  filter: grayscale(20%);
  border: 1px solid var(--border);
}
.image-decoration {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 2rem;
  opacity: 0.3;
  pointer-events: none;
}

/* ===== STATS ===== */
.stats-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-2); }
.stat-icon { margin-bottom: 0.8rem; }
.stat-icon svg { width: 20px; height: 20px; color: var(--accent); }
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== À PROPOS ===== */
.about-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 5rem;
  align-items: start;
}
.about-text h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.9;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 2rem 0;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}
.highlight-item::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.about-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-2);
  position: sticky;
  top: 100px;
}
.about-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  transition: background 0.2s;
}
.about-card-item:last-child { border-bottom: none; }
.about-card-item:hover { background: rgba(0,255,135,0.04); }
.about-card-item span:first-child { color: var(--text-muted); }
.about-card-item span:last-child { color: var(--accent); font-weight: 600; }

/* ===== PARCOURS ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1px 1fr;
  gap: 0 3rem;
  position: relative;
  padding-bottom: 4rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-left {
  text-align: right;
  padding-top: 0.2rem;
}
.timeline-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.4;
}

.timeline-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-line::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 1px;
  height: 100%;
  background: var(--border);
}
.timeline-item:last-child .timeline-line::after { display: none; }
.timeline-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 3px;
}

.timeline-right { padding-top: 0; }
.timeline-right h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.timeline-right > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.timeline-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(0,255,135,0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.timeline-right ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-right ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}
.timeline-right ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== COMPÉTENCES ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-category {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--bg-2);
  transition: border-color 0.2s;
}
.skill-category:hover { border-color: rgba(0,255,135,0.3); }
.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.skill-category-header svg { width: 18px; height: 18px; color: var(--accent); }
.skill-category-header h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}
.skill-items { display: flex; flex-direction: column; gap: 1.3rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}
.skill-info span:first-child { color: var(--text); }
.skill-info span:last-child { color: var(--accent); font-weight: 600; }
.skill-bar {
  height: 2px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s ease;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  cursor: none;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.service-card:hover { background: var(--bg-2); }
.service-card:hover::after { width: 100%; }
.service-icon { margin-bottom: 1.5rem; }
.service-icon svg { width: 22px; height: 22px; color: var(--accent); }
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.service-features { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.service-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-click-hint {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-click-hint svg { width: 12px; height: 12px; }
.service-card:hover .service-click-hint { opacity: 1; }

/* ===== TECH MODAL ===== */
.tech-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.tech-modal.active { display: flex; }
.tech-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}
.tech-modal-content {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  z-index: 1;
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.tech-modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: none;
  transition: all 0.2s;
}
.tech-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.tech-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  padding-right: 2.5rem;
}
.tech-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.8rem;
}
.tech-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
  animation: fadeUp 0.4s ease both;
}
.tech-modal-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.tech-modal-item i { font-size: 2rem; }
.tech-modal-item span { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* ===== PROJETS ===== */
.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card-modern {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.3s, transform 0.3s;
  cursor: none;
}
.project-card-modern:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.project-image-modern {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}
.project-image-modern img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(20%);
}
.project-card-modern:hover .project-image-modern img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.project-soon {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-muted);
}
.project-soon svg { width: 28px; height: 28px; }
.project-soon span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.project-content-modern {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-content-modern h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-arrow {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.project-card-modern:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== PROJECT MODAL ===== */
/* ===== MODAL PROJET ===== */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.project-modal.active { display: flex; }

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}

.project-modal-content {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.project-modal-content::-webkit-scrollbar { width: 3px; }
.project-modal-content::-webkit-scrollbar-thumb { background: var(--border); }

.project-modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: none;
  transition: all 0.2s;
  z-index: 10;
  flex-shrink: 0;
}
.project-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.project-modal-close svg { width: 14px; height: 14px; }

/* Image hero */
.modal-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 1.1rem 1.1rem 0 0;
  border-bottom: 1px solid var(--border);
}

/* Body intérieur */
.modal-body-inner {
  padding: 2rem 2.5rem 2.5rem;
}

/* Header */
.modal-header { margin-bottom: 2rem; }

.modal-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid;
  margin-bottom: 0.8rem;
}

.modal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.modal-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 580px;
}

/* Séparateur entre sections */
.modal-section {
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  margin-top: 1.8rem;
}
.modal-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.modal-section h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* Missions */
.modal-missions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.modal-missions li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.modal-missions li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
  font-size: 0.85rem;
}

/* Technos */
.modal-techs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.modal-tech-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.modal-tech-item:hover { border-color: var(--accent); color: var(--text); }
.modal-tech-item i { font-size: 1.3rem; }

/* Liens */
.modal-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: all 0.2s;
  cursor: none;
  font-family: var(--font);
}
.modal-link svg { width: 14px; height: 14px; }

.modal-link-live {
  background: var(--accent);
  color: #000;
  border: 1.5px solid var(--accent);
}
.modal-link-live:hover {
  background: transparent;
  color: var(--accent);
}
.modal-link-github {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.modal-link-github:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 600px) {
  .modal-body-inner { padding: 1.5rem; }
  .modal-hero-img { height: 200px; }
  .modal-header h2 { font-size: 1.5rem; }
}

/* ===== COMPÉTENCES ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}
.contact-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.contact-item h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.contact-item a,
.contact-item p { font-size: 0.95rem; color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }
.contact-social { display: flex; gap: 0.8rem; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.social-btn svg { width: 16px; height: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { border-color: var(--accent); color: var(--accent); }
.scroll-top-btn svg { width: 16px; height: 16px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  background: var(--bg);
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-brand h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
}
.footer-social-link:hover { border-color: var(--accent); color: var(--accent); }
.footer-social-link svg { width: 14px; height: 14px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-column h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.6rem; }
.footer-column ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-column ul li a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-status { display: flex; align-items: center; gap: 0.5rem; }
.status-indicator {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 120px 1px 1fr; gap: 0 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .hero-section .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid-modern { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 3rem; }
  .about-card { position: static; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .navbar-menu { 
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu li { width: 100%; }
  .navbar-link {
    padding: 1rem 2rem;
    width: 100%;
    font-size: 0.85rem;
  }
  .mobile-menu-toggle { display: flex; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.8rem; }
  .timeline-left { text-align: left; display: flex; align-items: center; gap: 1rem; }
  .timeline-line { display: none; }
  .timeline-item { padding-bottom: 3rem; padding-left: 1.5rem; border-left: 1px solid var(--border); }
  .timeline-item:last-child { border-left-color: transparent; }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  cursor: none;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.2s;
  color: var(--text-muted);
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-separator { color: var(--border); }
.lang-fr, .lang-en { transition: color 0.2s; }
[data-lang="fr"] .lang-fr { color: var(--accent); }
[data-lang="fr"] .lang-en { color: var(--text-muted); }
[data-lang="en"] .lang-en { color: var(--accent); }
[data-lang="en"] .lang-fr { color: var(--text-muted); }

.form-success {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  background: rgba(0, 255, 135, 0.05);
}
.form-success.visible { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }


/* ===== PROJETS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-featured {
  grid-column: span 2;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.3s, transform 0.3s;
  cursor: none;
}
.project-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg);
}
.project-featured .project-image { height: 300px; }

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(20%) brightness(0.85);
}
.project-card:hover .project-image img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-overlay-content { width: 100%; }

.project-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tag-color, var(--accent));
  border: 1px solid var(--tag-color, var(--accent));
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.project-overlay-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-featured .project-overlay-content h3 { font-size: 1.8rem; }

.project-overlay-content p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-overlay-links {
  display: flex;
  gap: 0.6rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  cursor: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.5);
  color: var(--text);
  font-family: var(--font);
  white-space: nowrap;
}
.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.project-link svg { width: 12px; height: 12px; }

/* Footer */
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--border);
  gap: 0.8rem;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.project-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.project-status-live .project-status-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.project-status-live { color: var(--accent); }
.project-status-wip .project-status-dot { background: #f59e0b; }
.project-status-wip { color: #f59e0b; }
.project-status-pro .project-status-dot { background: #00b4ff; }
.project-status-pro { color: #00b4ff; }

.project-techs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow: hidden;
}
.project-techs span {
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Soon */
.project-soon-card { cursor: default; }
.project-soon-card:hover { transform: none; border-color: var(--border); }
.project-image-soon {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-muted);
}
.project-image-soon svg { width: 32px; height: 32px; }
.project-image-soon span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* GitHub card */
.project-github-card {
  cursor: none;
  display: flex;
  align-items: stretch;
}
.project-github-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-github-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  width: 100%;
  cursor: none;
}
.project-github-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.project-github-icon svg { width: 24px; height: 24px; color: var(--text-muted); transition: color 0.2s; }
.project-github-card:hover .project-github-icon { border-color: var(--accent); background: rgba(0,255,135,0.06); }
.project-github-card:hover .project-github-icon svg { color: var(--accent); }
.project-github-text { flex: 1; }
.project-github-text h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.project-github-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-github-arrow {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.project-github-card:hover .project-github-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .project-featured .project-image { height: 220px; }
}