:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2a3d;
  --text-primary: #e8edf5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-lime: #a3e635;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --border-color: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --content-width: 1100px;
  --mono: "Cascadia Code", "Consolas", monospace;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================
   FOND AVEC DÉGRADÉ
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(163, 230, 53, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(244, 114, 182, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
  opacity: 0.6;
}

/* ============================================
   ORBS
   ============================================ */
.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.orb-a {
  width: 300px;
  height: 300px;
  top: -5%;
  left: -10%;
  background: var(--accent-cyan);
  animation: drift 14s ease-in-out infinite;
}

.orb-b {
  width: 350px;
  height: 350px;
  top: 10%;
  right: -15%;
  background: var(--accent-lime);
  animation: drift 16s ease-in-out infinite reverse;
}

.orb-c {
  width: 250px;
  height: 250px;
  bottom: 5%;
  left: 50%;
  background: var(--accent-pink);
  animation: drift 13s ease-in-out infinite;
}

.orb-d {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 20%;
  background: var(--accent-orange);
  animation: drift 18s ease-in-out infinite 2s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(20px, -30px, 0) scale(1.1); }
  66% { transform: translate3d(-15px, 20px, 0) scale(0.95); }
}

/* ============================================
   PAGE SHELL
   ============================================ */
.page-shell {
  position: relative;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 20px 24px 48px;
  z-index: 1;
}

/* ============================================
   HEADER - NAVBAR
   ============================================ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.brand:hover .brand-mark {
  background: rgba(56, 189, 248, 0.2);
  transform: rotate(-10deg) scale(1.05);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  font-weight: 500;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition);
  border-radius: 2px;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-primary);
}

/* ============================================
   BOUTONS
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent-cyan);
  color: #0a0e17;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}

.button.secondary {
  border-color: var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.button.secondary:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.button.ghost {
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-secondary);
}

.button.ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 20px 0 40px;
}

.hero-copy {
  position: relative;
}

/* ============================================
   GRAND CADRE POUR L'IMAGE DE PROFIL
   ============================================ */
.profile-frame {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime), var(--accent-pink));
  background-size: 300% 300%;
  animation: gradientRotate 6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-frame:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 80px rgba(56, 189, 248, 0.3);
}

.profile-frame-inner {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 4px;
}

.avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-frame:hover .avatar-wrapper img {
  transform: scale(1.08);
}

.status-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.frame-ornament {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.1);
  pointer-events: none;
  animation: orbit 10s linear infinite;
}

.frame-ornament-1 {
  width: 180px;
  height: 180px;
  top: -20px;
  left: -20px;
  border-color: rgba(56, 189, 248, 0.08);
  animation-duration: 12s;
}

.frame-ornament-2 {
  width: 200px;
  height: 200px;
  top: -30px;
  left: -30px;
  border-color: rgba(163, 230, 53, 0.06);
  animation-duration: 15s;
  animation-direction: reverse;
}

.frame-ornament-3 {
  width: 160px;
  height: 160px;
  top: -10px;
  left: -10px;
  border-color: rgba(244, 114, 182, 0.06);
  animation-duration: 8s;
}

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

@keyframes gradientRotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.profile-frame::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05), transparent 70%);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ============================================
   TITRES INLINE
   ============================================ */
.inline-title {
  display: inline-block;
}

h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

h1 .inline-title {
  display: inline-block;
}

h1 .title-gradient {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.inline-heading {
  display: inline-block;
  max-width: 100%;
  word-wrap: break-word;
}

.inline-heading .highlight {
  display: inline;
  color: var(--accent-cyan);
  font-weight: 600;
  position: relative;
}

.inline-heading .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  opacity: 0.3;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.section-heading:hover .highlight::after {
  transform: scaleX(1);
}

.inline-heading {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inline-heading .highlight {
  color: var(--accent-cyan);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-heading .inline-heading::before {
  content: '▸ ';
  color: var(--accent-cyan);
  font-size: 0.8em;
  opacity: 0.6;
}

.hero h1 .inline-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .title-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime), var(--accent-pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ============================================
   EYEBROW & LEDE
   ============================================ */
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow span {
  color: var(--accent-lime);
}

.lede {
  max-width: 56ch;
  margin: 18px 0 28px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* ============================================
   HERO STATS
   ============================================ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.hero-stats li:hover {
  border-color: rgba(56, 189, 248, 0.15);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-lime);
  font-size: 0.9rem;
}

.hero-stats span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   TERMINAL CARD
   ============================================ */
.terminal-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.terminal-card:hover {
  border-color: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: #ff5f57; }
.terminal-top span:nth-child(2) { background: #febc2e; }
.terminal-top span:nth-child(3) { background: #28c840; }

.terminal-body {
  margin: 0;
  padding: 24px 26px;
  overflow: auto;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.9;
}

.terminal-body .command-highlight {
  color: var(--accent-lime);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--accent-cyan);
  vertical-align: -0.2em;
  animation: blink 1s steps(1) infinite;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--mono);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  letter-spacing: 0.1em;
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-indicator svg {
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 60px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.panel {
  padding: 28px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.panel:hover {
  border-color: rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.panel p + p {
  margin-top: 16px;
}

.panel p {
  color: var(--text-secondary);
}

/* ============================================
   EXPERTISE GRID
   ============================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-card {
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.mini-card:hover {
  border-color: rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.mini-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.mini-card h3 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
}

.mini-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-date {
  padding-top: 16px;
  color: var(--accent-orange);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.timeline-content {
  padding: 24px 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.timeline-content h3 {
  font-size: 1.1rem;
}

.timeline-company {
  margin: 4px 0 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline ul li::marker {
  color: var(--accent-cyan);
}

/* ============================================
   PROJECTS - ANIMATIONS LÉGÈRES
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-secondary);
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image-overlay {
  opacity: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent-cyan);
  color: #0a0e17;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.project-content {
  padding: 20px 24px 24px;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
  font-weight: 600;
}

.project-content h3 {
  font-size: 1.05rem;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 0 14px;
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.project-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.project-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
}

.project-repo-link:hover {
  color: var(--text-primary);
  gap: 10px;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-panel {
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.skill-panel:hover {
  border-color: rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.skill-panel h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.skill-panel .chip-row {
  gap: 6px;
}

.skill-panel .chip-row span {
  font-size: 0.78rem;
  min-height: 28px;
  padding: 0 12px;
}

.skill-bar-group {
  margin-top: 12px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.skill-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   FORMATION
   ============================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.info-item + .info-item {
  margin-top: 20px;
}

.info-item strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent-lime);
  font-size: 0.95rem;
}

.info-item p {
  color: var(--text-primary);
  margin: 0 0 2px;
}

.info-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.language-list {
  display: grid;
  gap: 14px;
}

.language-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.language-list span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding-bottom: 20px;
}

.contact-card {
  padding: 40px 48px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.contact-card h2 {
  max-width: none;
  margin-bottom: 12px;
}

.contact-card p {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--text-secondary);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.contact-links a:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-2px);
}

.contact-links span {
  cursor: default;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   REVELATION AU SCROLL - ANIMATION LÉGÈRE
   ============================================ */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.10s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.20s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.30s; }

html.js .inline-heading .highlight {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .section-heading.is-visible .inline-heading .highlight {
  opacity: 1;
  transform: translateY(0);
}

html.js .section-heading.is-visible .inline-heading .highlight:nth-child(1) { transition-delay: 0.1s; }
html.js .section-heading.is-visible .inline-heading .highlight:nth-child(2) { transition-delay: 0.2s; }
html.js .section-heading.is-visible .inline-heading .highlight:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   CARROUSEL HORIZONTAL
   ============================================ */
.project-carousel-horizontal {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.project-carousel-track-horizontal {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0;
  gap: 0;
  width: 100%;
  aspect-ratio: 16/9;
}

.project-carousel-track-horizontal::-webkit-scrollbar {
  display: none;
}

.project-carousel-track-horizontal .project-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}

.project-carousel-track-horizontal .project-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn-horizontal {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.project-card:hover .carousel-btn-horizontal {
  opacity: 1;
}

.carousel-btn-horizontal:hover {
  background: var(--accent-cyan);
  color: #0a0e17;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-horizontal.prev {
  left: 12px;
}

.carousel-btn-horizontal.next {
  right: 12px;
}

.carousel-counter-horizontal {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--mono);
  z-index: 5;
  font-weight: 600;
}

.carousel-scrollbar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  z-index: 5;
}

.carousel-scrollbar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.carousel-scrollbar-thumb {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
  border-radius: 999px;
  transition: width 0.3s ease, transform 0.3s ease;
  position: absolute;
  left: 0;
  top: 0;
}

.carousel-scrollbar-thumb::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1024px) {
  .avatar-wrapper {
    width: 180px;
    height: 180px;
  }
  
  .profile-frame {
    padding: 8px;
  }
  
  .frame-ornament-1 {
    width: 220px;
    height: 220px;
    top: -20px;
    left: -20px;
  }
  
  .frame-ornament-2 {
    width: 240px;
    height: 240px;
    top: -30px;
    left: -30px;
  }
  
  .frame-ornament-3 {
    width: 200px;
    height: 200px;
    top: -10px;
    left: -10px;
  }
  
  .profile-frame:hover {
    transform: scale(1.08) rotate(-3deg);
  }
}

@media (max-width: 1024px) {
  .hero,
  .about-grid,
  .info-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .timeline-date {
    padding-top: 0;
  }
  
  .hero {
    min-height: auto;
    gap: 32px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 12px 16px 32px;
  }
  
  .site-header {
    top: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-nav {
    gap: 14px;
    font-size: 0.8rem;
  }
  
  .brand {
    font-size: 0.95rem;
  }
  
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .avatar-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .profile-frame {
    padding: 4px;
    margin-bottom: 16px;
  }
  
  .frame-ornament {
    display: none;
  }
  
  .status-badge {
    font-size: 0.65rem;
    padding: 3px 10px 3px 6px;
    bottom: 4px;
    right: 4px;
  }
  
  .profile-frame:hover {
    transform: scale(1.03);
  }
  
  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    flex-direction: column;
    gap: 4px;
  }
  
  h2 {
    max-width: none;
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  
  .inline-heading {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  
  .inline-heading .highlight {
    display: inline;
  }
  
  .hero-stats,
  .expertise-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .panel,
  .mini-card,
  .skill-panel,
  .timeline-content,
  .contact-card,
  .project-content {
    padding: 18px 20px;
  }
  
  .terminal-body {
    padding: 16px 18px;
    font-size: 0.8rem;
  }
  
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .footer-links {
    margin: 4px 0;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .contact-card {
    padding: 28px 20px;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-row .button {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 10px;
    font-size: 0.75rem;
  }
  
  .site-nav a::after {
    display: none;
  }
  
  .avatar-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .profile-frame {
    margin-bottom: 12px;
  }
  
  .status-badge {
    font-size: 0.6rem;
    padding: 2px 8px 2px 5px;
  }
  
  .status-dot {
    width: 6px;
    height: 6px;
  }
  
  .hero-stats li {
    padding: 12px 14px;
  }
  
  .chip-row span {
    font-size: 0.7rem;
    padding: 0 8px;
    min-height: 22px;
  }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.keyboard-nav *:focus {
  outline: 2px solid var(--accent-cyan) !important;
  outline-offset: 2px !important;
}

::selection {
  background: rgba(56, 189, 248, 0.2);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
/* ============================================
   VIDÉOS DANS LE CARROUSEL
   ============================================ */
.project-carousel-track-horizontal .project-carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}

/* Bouton de lecture/contrôle vidéo (optionnel) */
.video-control-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 2;
}

.project-carousel-slide:hover .video-control-overlay {
  opacity: 1;
}

.video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: var(--accent-cyan);
  color: #0a0e17;
  border-color: var(--accent-cyan);
}

/* Responsive vidéos */
@media (max-width: 768px) {
  .video-play-btn {
    width: 48px;
    height: 48px;
  }
  
  .video-play-btn svg {
    width: 20px;
    height: 20px;
  }
}
.mini-carousel-wrapper{ position:absolute; inset:0; overflow:hidden; }
.mini-carousel-track{ display:flex; width:100%; height:100%; transition:transform .35s ease; }
.mini-video-item{ flex:0 0 100%; width:100%; height:100%; }
.mini-video-item video{ width:100%; height:100%; object-fit:cover; display:block; }
 
.mini-nav{ position:absolute; bottom:10px; left:50%; translate:-50% 0; display:flex; align-items:center; gap:10px; z-index:6; pointer-events:all; }
.mini-btn{ width:24px; height:24px; border-radius:50%; border:none; background:rgba(255,255,255,.18); color:#fff; font-size:.75rem; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.mini-btn:hover{ background:rgba(255,255,255,.32); }
.mini-counter{ font-size:.68rem; color:#fff; background:rgba(0,0,0,.45); padding:2px 8px; border-radius:10px; }
