/* 1. VARIABLES CSS — THÈMES */
:root {

  --bg:          #FFFFFF;
  --bg-alt:      #F7F8FC;
  --bg-card:     #FFFFFF;
  --text:        #111111;
  --text-muted:  #666666;
  --text-light:  #999999;
  --accent:      #007BFF;
  --accent-dark: #0056CC;
  --accent-rgb:  0, 123, 255;
  --border:      #E8E8E8;
  --shadow:      0 4px 32px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 64px rgba(0,0,0,0.12);


  --font-title: 'Poppins', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;


  --section-gap: 120px;
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   8px;


  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.3s;
}


[data-theme="dark"] {
  --bg:          #0D0D0D;
  --bg-alt:      #161616;
  --bg-card:     #1A1A1A;
  --text:        #F5F5F5;
  --text-muted:  #AAAAAA;
  --text-light:  #666666;
  --accent:      #6C63FF;
  --accent-dark: #5449E6;
  --accent-rgb:  108, 99, 255;
  --border:      #2A2A2A;
  --shadow:      0 4px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 16px 64px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  cursor: none; /* Curseur custom actif */
}

/* Désactivation curseur custom sur mobile */
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: var(--font-body); }

/* 3. LOADER PAGE */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-box { text-align: center; }

.loader-initials {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.loader-initials em {
  font-style: normal;
  color: var(--accent);
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  animation: loaderAnim 1.4s var(--ease) forwards;
}
@keyframes loaderAnim {
  to { width: 100%; }
}

/* 4. CURSEUR PERSONNALISÉ */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.2s, height 0.2s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), opacity 0.2s;
  opacity: 0.5;
}
.cursor.hovered { width: 20px; height: 20px; }
.cursor-trail.hovered { width: 56px; height: 56px; opacity: 0.2; }

/* 5. NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.3s;
  padding: 0;
}
.navbar.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo mark {
  background: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 99px;
  transition: color var(--dur), background var(--dur);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--dur), border-color var(--dur), transform 0.2s;
  flex-shrink: 0;
}
.theme-btn:hover { transform: scale(1.08); }
.theme-btn svg { width: 18px; height: 18px; }

/* Affichage icônes selon thème */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--dur);
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.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); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px 24px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mob-link {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur);
}
.mob-link:hover { color: var(--accent); }

/* 6. HERO */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* Grille de fond décorative */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Glow accent */
.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: 0.6; transform: translateY(-50%) scale(1); }
  to   { opacity: 1;   transform: translateY(-50%) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  animation: fadeUp 0.8s var(--ease) both;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }

.hero-name {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.name-accent { color: var(--accent); }

.hero-typing-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}
.typing-word {
  color: var(--accent);
  min-width: 240px;
}
.typing-cursor {
  color: var(--accent);
  animation: blink 0.9s step-end infinite;
}

.hero-pitch {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}
.hero-pitch strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.35);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.45);
  background: var(--accent-dark);
}
.cta-primary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.cta-primary:hover svg { transform: translateX(4px); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.cta-ghost:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-2px);
}

.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}
.lang-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.avatar-scene {
  position: relative;
  width: 400px;
  height: 400px;
}

/* Anneaux rotatifs */
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--accent-rgb), 0.25);
  animation: spin 20s linear infinite;
}
.r1 { inset: 0; animation-direction: normal; }
.r2 { inset: 20px; animation-direction: reverse; animation-duration: 30s; }
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-photo {
  position: absolute;
  inset: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.06), var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}
.avatar-photo:hover { transform: scale(1.02); }

.float-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: floatAnim 3s ease-in-out infinite alternate;
}
.fc-tl { top: 20px; left: -20px; animation-delay: 0s; }
.fc-tr { top: 60px; right: -30px; animation-delay: 1s; }
.fc-bl { bottom: 50px; left: -10px; animation-delay: 2s; }
@keyframes floatAnim {
  from { transform: translateY(0px); }
  to   { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 54px;
  border: 2px solid var(--border);
  border-radius: 99px;
  animation: fadeUp 1s var(--ease) 1s both;
}
.scroll-wheel {
  width: 4px; height: 10px;
  background: var(--accent);
  border-radius: 99px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-6px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(6px);  opacity: 0; }
}

/* 7. SECTIONS COMMUNES */
.section {
  padding: var(--section-gap) 40px;
  background: var(--bg);
}
.section:nth-child(even) { background: var(--bg-alt); }

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 72px;
  text-align: center;
}
.sec-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

/* 8. À PROPOS */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-img-col { position: relative; }

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.about-stat-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-item span { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

.about-sub {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.about-p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-p strong { color: var(--text); font-weight: 600; }

.about-quote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 32px 0;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }

.tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}
.tl-body { display: flex; flex-direction: column; }
.tl-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}
.tl-event { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

/* 9. COMPÉTENCES — BARRES + LOGOS */
.skills-section { background: var(--bg-alt); }

.skills-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.skill-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.skill-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-icon { font-size: 1.2rem; }

.skill-bars { display: flex; flex-direction: column; gap: 18px; }

.skill-row { display: flex; flex-direction: column; gap: 6px; }
.skill-row > span:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.skill-row > span:first-child + span {
  /* Ce span vide c'est géré par le flex du parent, on utilise ::before */
}

/* On ré-organise les spans */
.skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 0;
  align-items: center;
}
.skill-row > span:nth-child(1) { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.skill-row > span:nth-child(2) { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--accent); text-align: right; }
.bar-track {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.6));
  border-radius: 99px;
  width: 0%;
  transition: width 1.2s var(--ease);
}

.tech-logos { text-align: center; }
.tech-logos-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 40px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 90px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}
.logo-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.logo-item svg {
  width: 40px;
  height: 40px;
}
.logo-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Couleur GitHub/Vercel selon thème */
[data-theme="light"] .logo-item svg { color: #111; }
[data-theme="dark"]  .logo-item svg { color: #f5f5f5; }

/* 10. PROJETS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.proj-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.proj-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease);
}
.proj-placeholder span {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  color: var(--ph, var(--accent));
  opacity: 0.25;
}

.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.proj-card:hover .proj-img,
.proj-card:hover .proj-placeholder { transform: scale(1.06); }

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.proj-card:hover .proj-overlay { opacity: 1; }

.proj-btn {
  background: #fff;
  color: #111;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.proj-btn:hover { background: var(--accent); color: #fff; transform: scale(1.05); }

.proj-body { padding: 24px; }
.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}
.proj-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.proj-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* 11. CONTACT & FORMULAIRE NETLIFY */
.contact-section { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.contact-link:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  transform: translateX(6px);
}
.cl-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.cl-icon svg { width: 18px; height: 18px; }
.cl-arrow { margin-left: auto; color: var(--text-light); font-size: 0.9rem; transition: transform 0.2s; }
.contact-link:hover .cl-arrow { transform: translateX(4px); color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--accent); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  resize: vertical;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

/* Sélecteur custom arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23999'%3E%3Cpath d='M7 7l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
  align-self: flex-start;
  width: 100%;
}
.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.45);
}
.submit-arrow { width: 18px; height: 18px; transition: transform 0.2s; }
.form-submit:hover .submit-arrow { transform: translateX(4px); }

.form-success {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #00c896;
  text-align: center;
}

/* 12. FOOTER */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.footer-logo mark { background: none; color: var(--accent); }
.footer-copy, .footer-made {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 13. BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* 14. ANIMATIONS & UTILITAIRES */
/* Fade up général (utilisé par JS) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Classe reveal — état initial avant animation scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.anim-left  { transform: translateX(-40px); }
.reveal.anim-right { transform: translateX(40px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* Délais staggered pour les éléments enfants */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* 15. RESPONSIVE */

@media (max-width: 1024px) {
  :root { --section-gap: 90px; }

  .hero-inner { gap: 48px; }
  .avatar-scene { width: 320px; height: 320px; }

  .about-layout { grid-template-columns: 1fr; gap: 60px; }
  .about-img-col { max-width: 420px; margin: 0 auto; }
  .about-stat-card { right: 0; }

  .skills-cats { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 70px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: 100px 24px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-visual { order: -1; }
  .avatar-scene { width: 260px; height: 260px; margin: 0 auto; }
  .float-chip { font-size: 0.7rem; padding: 6px 12px; }
  .fc-tl { top: -10px; left: 0; }
  .fc-tr { top: 30px; right: -10px; }
  .fc-bl { bottom: 20px; left: -5px; }
  .hero-actions { justify-content: center; }
  .lang-strip { justify-content: center; }

  .section { padding: var(--section-gap) 24px; }

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

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .footer { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 20px; }
  .hero-name { font-size: 2.6rem; }
  .sec-title  { font-size: 2rem; }
  .avatar-scene { width: 220px; height: 220px; }
  .about-stat-card { flex-direction: column; gap: 12px; right: 50%; transform: translateX(50%); }
  .stat-div { width: 40px; height: 1px; }
  .logo-item { min-width: 70px; padding: 14px 10px; }
  .logo-item svg { width: 30px; height: 30px; }
  .back-to-top { bottom: 20px; right: 20px; }
}
