/* ============================================================
   CL8RK Digital — Master Stylesheet
   ============================================================ */

/* ── 1. Custom Properties ─────────────────────────────────── */
:root {
  --bg:          #0a0a0f;
  --surface:     #12121a;
  --surface-2:   #1a1a26;
  --border:      #1e1e2e;
  --neon-blue:   #00c2ff;
  --neon-violet: #8b5cf6;
  --neon-cyan:   #06ffa5;
  --gradient:    linear-gradient(135deg, #00c2ff, #8b5cf6);
  --text:        #e2e8f0;
  --muted:       #64748b;
  --font-head:   'Orbitron', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon: 0 0 20px rgba(0, 194, 255, 0.3), 0 0 60px rgba(0, 194, 255, 0.1);
  --shadow-violet: 0 0 20px rgba(139, 92, 246, 0.3);
  --container:   1200px;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; display: block; }
/* Exception logo : ne pas contraindre la largeur automatique */
img.nav-logo-img { max-width: unset; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; }

p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--muted); line-height: 1.8; }

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

.text-neon { color: var(--neon-blue); }

/* ── 4. Layout Utilities ──────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.section { padding: clamp(4rem, 8vw, 8rem) 0; }

.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header p { max-width: 600px; margin: 1rem auto 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 50px;
  background: rgba(0, 194, 255, 0.05);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 194, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 194, 255, 0.45), 0 8px 30px rgba(0, 194, 255, 0.2);
}

.btn-outline {
  border: 1px solid rgba(0, 194, 255, 0.5);
  color: var(--neon-blue);
  background: rgba(0, 194, 255, 0.05);
}
.btn-outline:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 194, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ── 6. Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.card:hover .card-icon { background: rgba(0, 194, 255, 0.2); box-shadow: 0 0 20px rgba(0, 194, 255, 0.3); }
.card-icon svg { width: 28px; height: 28px; color: var(--neon-blue); }

/* ── 7. Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: rgba(0, 194, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 194, 255, 0.2);
}
.badge-violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--neon-violet);
  border-color: rgba(139, 92, 246, 0.25);
}
.badge-cyan {
  background: rgba(6, 255, 165, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(6, 255, 165, 0.25);
}

/* ── 8. Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 0;
  min-height: 88px;
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  margin-right: 20px;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

.nav-logo-img {
  height: 80px !important;
  min-height: 80px;
  width: auto !important;
  max-width: unset !important;
  max-height: unset !important;
  object-fit: contain;
  object-position: left center;
  display: block !important;
  transform: none !important;
  overflow: visible;
  transition: opacity 0.2s ease;
  mix-blend-mode: screen;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.82;
}

/* Footer : logo légèrement plus petit */
.footer-brand .nav-logo {
  background: none !important;
  -webkit-text-fill-color: unset !important;
  margin-right: 0;
}
.footer-brand .nav-logo-img {
  height: 64px !important;
  min-height: 64px;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 52px !important;
    min-height: 52px;
  }
  .footer-brand .nav-logo-img {
    height: 48px !important;
    min-height: 48px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--neon-blue);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 9. Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse 2s infinite;
}

.hero h1 {
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.35s forwards;
  margin-bottom: 1.5rem;
}

.hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  opacity: 0;
  animation: fadeInUp 0.7s ease 1s forwards;
}
.scroll-arrow {
  width: 20px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  display: flex; justify-content: center;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  width: 4px; height: 8px;
  background: var(--neon-blue);
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}

/* ── 10. Stats Bar ────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item p { font-size: 0.85rem; }

/* ── 11. Services Section ─────────────────────────────────── */
.services-grid { gap: 1.5rem; }

.service-card .card-desc { margin-top: 0.75rem; font-size: 0.9rem; }

.service-card .service-features {
  margin-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.service-card .service-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted);
}
.service-card .service-features li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-blue);
  flex-shrink: 0;
}

.service-card .service-tag {
  margin-top: 1.25rem;
}

/* ── 12. Process / Steps ──────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}
.step:hover { border-color: rgba(0, 194, 255, 0.4); background: var(--surface-2); }

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h4 { margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; }

/* ── 13. CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(0, 194, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── 14. About Page ───────────────────────────────────────── */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.about-avatar {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-avatar-ring {
  position: absolute;
  width: 310px; height: 310px;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 255, 0.3);
  animation: spinSlow 20s linear infinite;
}
.about-avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
}
.about-text .section-label { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p + p { margin-top: 1rem; }
.about-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.skills-section { margin-top: 3rem; }
.skills-group { margin-bottom: 2rem; }
.skills-group h4 { margin-bottom: 1rem; color: var(--text); }
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.values-grid { gap: 1.5rem; }
.value-card { text-align: center; }
.value-card .card-icon { margin: 0 auto 1.25rem; }
.value-card h4 { margin-bottom: 0.5rem; }

.timeline { position: relative; margin-top: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--neon-blue), var(--neon-violet), transparent);
}
.timeline-item {
  display: flex; gap: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 0;
}
.timeline-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--neon-blue);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
}
.timeline-dot svg { width: 18px; height: 18px; color: var(--neon-blue); }
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  flex: 1;
  transition: var(--transition);
}
.timeline-content:hover { border-color: rgba(0, 194, 255, 0.3); }
.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-blue);
  margin-bottom: 0.4rem;
}
.timeline-content h4 { margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.875rem; }

/* ── 15. Projects Page ────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--neon-blue);
  border-color: rgba(0, 194, 255, 0.5);
  background: rgba(0, 194, 255, 0.08);
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(0, 194, 255, 0.4); }
.project-card:hover .project-overlay { opacity: 1; }

.project-thumb {
  height: 200px;
  background: var(--surface-2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-thumb-bg {
  position: absolute; inset: 0;
  opacity: 0.15;
}
.project-thumb-icon {
  position: relative; z-index: 1;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.project-thumb-icon svg { width: 32px; height: 32px; color: var(--neon-blue); }

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.project-body { padding: 1.5rem; }
.project-tech { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.project-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

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

.load-more-wrap { text-align: center; margin-top: 3rem; }

/* ── 16. Contact Page ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-detail:hover { border-color: rgba(0, 194, 255, 0.3); }
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; color: var(--neon-blue); }
.contact-detail-text small { display: block; font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 0.9rem; font-weight: 500; }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(6, 255, 165, 0.08);
  border: 1px solid rgba(6, 255, 165, 0.25);
  font-size: 0.82rem;
  color: var(--neon-cyan);
  margin-top: 1.5rem;
  font-weight: 500;
}
.availability-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: pulse 2s infinite;
}

.socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  border-color: rgba(0, 194, 255, 0.4);
  color: var(--neon-blue);
  background: rgba(0, 194, 255, 0.08);
  transform: translateY(-2px);
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-group label span { color: var(--neon-blue); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0, 194, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1); }
.form-group .error-msg { font-size: 0.78rem; color: #f87171; margin-top: 0.35rem; display: none; }
.form-group .error-msg.show { display: block; }

.form-group select { appearance: none; }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; padding: 1rem; font-size: 1rem; justify-content: center; margin-top: 0.5rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(6, 255, 165, 0.1);
  border: 2px solid rgba(6, 255, 165, 0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success-icon svg { width: 32px; height: 32px; color: var(--neon-cyan); }
.form-success h3 { margin-bottom: 0.75rem; }

/* ── 17. Page Hero Banner ─────────────────────────────────── */
.page-hero {
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0, 194, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero p { max-width: 550px; margin: 1rem auto 0; }

/* ── 18. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-brand .socials { margin-top: 1.5rem; }

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--neon-blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p, .footer-bottom span { font-size: 0.82rem; color: var(--muted); }
.footer-bottom .footer-legal { display: flex; gap: 1.5rem; }
.footer-bottom .footer-legal a { font-size: 0.82rem; color: var(--muted); transition: var(--transition); }
.footer-bottom .footer-legal a:hover { color: var(--neon-blue); }

/* ── Pages légales ────────────────────────────────────────── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  transition: border-color var(--transition);
}
.legal-block:hover { border-color: rgba(0,194,255,.25); }

.legal-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .02em;
}

.legal-block p { color: var(--muted); line-height: 1.75; margin-bottom: .75rem; }
.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul {
  list-style: none;
  padding: 0;
  margin: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.legal-block ul li {
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.legal-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--neon-blue);
  font-size: .8rem;
  top: .1em;
}

.legal-block a { color: var(--neon-blue); transition: opacity var(--transition); }
.legal-block a:hover { opacity: .75; }

.legal-placeholder {
  background: rgba(0,194,255,.08);
  border: 1px dashed rgba(0,194,255,.3);
  border-radius: 4px;
  padding: .1rem .5rem;
  font-size: .875rem;
  color: var(--neon-blue);
  font-family: 'JetBrains Mono', monospace;
}

/* Tableau légal */
.legal-table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: 10px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.legal-table thead tr { background: rgba(0,194,255,.07); }
.legal-table th {
  padding: .75rem 1rem;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table td {
  padding: .7rem 1rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: rgba(255,255,255,.02); }

@media (max-width: 768px) {
  .legal-block { padding: 1.5rem; }
  .legal-block h2 { font-size: 1rem; }
}

/* ── 19. Scroll Animations ────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* ── 20. Keyframes ────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px currentColor; }
  50%       { opacity: 0.6; box-shadow: none; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}
@keyframes glitch {
  0%   { clip-path: inset(10% 0 85% 0); transform: translate(-2px, 0); }
  20%  { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
  40%  { clip-path: inset(30% 0 60% 0); transform: translate(-1px, 0); }
  60%  { clip-path: inset(50% 0 30% 0); transform: translate(1px, 0); }
  80%  { clip-path: inset(80% 0 5% 0);  transform: translate(-2px, 0); }
  100% { clip-path: inset(10% 0 85% 0); transform: translate(0, 0); }
}

.glitch-wrap { position: relative; display: inline-block; }
.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
}
.glitch-wrap::before {
  color: var(--neon-blue);
  animation: glitch 3s infinite linear alternate-reverse;
  opacity: 0.6;
}
.glitch-wrap::after {
  color: var(--neon-violet);
  animation: glitch 2s infinite linear alternate;
  opacity: 0.4;
}

/* ── 21. Misc / Decorative ────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

.glow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

.highlight-box {
  background: rgba(0, 194, 255, 0.05);
  border: 1px solid rgba(0, 194, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.highlight-box p { font-size: 0.9rem; }

.mobile-only { display: none; }

/* ── 22. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-hero-grid { gap: 2.5rem; }
  .contact-grid { gap: 2.5rem; }
}

/* Nav mobile masquée par défaut sur desktop */
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-mobile {
    display: flex;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 999;
    backdrop-filter: blur(20px);
  }
  .nav-mobile.open { transform: translateX(0); }
  .nav-mobile a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile .btn { margin-top: 1rem; width: 100%; justify-content: center; }
  .mobile-only { display: block; }

  .about-hero-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-avatar { width: 200px; height: 200px; font-size: 3rem; }
  .about-avatar-ring { width: 230px; height: 230px; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

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

  .hero-actions { gap: 0.75rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .filter-bar { gap: 0.5rem; }
  .filter-btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
  .cta-actions { flex-direction: column; }
  .contact-form-wrap { padding: 1.5rem; }
}

/* ── 23. Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

