:root {
  --bg: #000000;
  --bg-card: rgba(28, 28, 30, 0.6);
  --bg-card-hover: rgba(44, 44, 46, 0.7);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --accent: #0071e3;
  --accent2: #bf5af2;
  --accent3: #64d2ff;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 700; font-size: 1.1rem; }
.logo span { color: var(--accent2); }
nav ul { list-style: none; display: flex; gap: 24px; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color .2s; }
nav a:hover { color: var(--text); }

.hero {
  text-align: center;
  padding: 100px 24px 70px;
  background: radial-gradient(circle at 50% 0%, rgba(109,93,252,0.15), transparent 60%);
}
.hero h1 {
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.role { font-size: 1.15rem; color: var(--text); margin-top: 10px; }
.hero p.loc { color: var(--text-dim); margin-top: 6px; font-size: 0.95rem; }
.hero p.bio { max-width: 560px; margin: 20px auto 0; color: var(--text-dim); }
.hero .btns { margin-top: 28px; display: flex; gap: 14px; justify-content: center; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }

section { padding: 60px 24px; }
section h2 {
  font-size: 1.5rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
section .subtitle { color: var(--text-dim); margin-bottom: 32px; font-size: 0.9rem; }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: background .2s, transform .2s;
}
.card:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--text-dim); font-size: 0.88rem; }
.card a.link {
  display: inline-block; margin-top: 12px; font-size: 0.82rem;
  color: var(--accent2); text-decoration: none;
}

.skills-grid {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.skill-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px; font-size: 0.85rem;
}
.skill-badge img { width: 20px; height: 20px; }

.dev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.dev-card .handle { color: var(--text-dim); font-size: 0.82rem; }
.dev-card .role { color: var(--accent2); font-size: 0.85rem; margin-top: 4px; }
.dev-card .loc { color: var(--text-dim); font-size: 0.78rem; margin-top: 2px; }
.dev-card p.bio { margin-top: 10px; font-size: 0.85rem; }
.dev-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: rgba(109,93,252,0.15); color: var(--accent2); font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; }

footer {
  text-align: center; padding: 40px 24px; color: var(--text-dim);
  border-top: 1px solid var(--border); font-size: 0.85rem;
}
footer a { color: var(--accent2); text-decoration: none; }


/* ---- Hero v2 (style Glint) ---- */
.hero {
  padding: 60px 24px 40px;
  background: radial-gradient(circle at 30% 0%, rgba(109,93,252,0.12), transparent 60%);
  text-align: left;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center;
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(109,93,252,0.12); border: 1px solid rgba(109,93,252,0.35);
  color: var(--accent2); font-size: 0.8rem; margin-bottom: 18px;
}
.hero-text .hello { font-size: 1.4rem; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.hero-text .title-big { font-size: 2.8rem; font-weight: 800; line-height: 1.1; }
.hero-text .title-big .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text .subtitle { font-size: 1.1rem; margin-top: 14px; }
.hero-text .loc { color: var(--text-dim); margin-top: 4px; font-size: 0.9rem; }
.hero-text .bio { color: var(--text-dim); margin-top: 16px; max-width: 460px; }
.hero-text .btns { display: flex; gap: 14px; margin-top: 26px; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.visual-blob {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  filter: blur(60px); opacity: 0.35;
}
.visual-card {
  position: relative; width: 220px; height: 220px; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.visual-logo { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .bio { margin: 16px auto 0; }
  .hero-text .btns { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
}

/* ---- Skeleton loader ---- */
#skeleton-overlay {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; transition: opacity .4s ease;
}
#skeleton-overlay.hide { opacity: 0; pointer-events: none; }
.sk-block {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: sk-pulse 1.4s ease-in-out infinite;
  border-radius: 10px;
}
.sk-avatar { width: 140px; height: 140px; border-radius: 28px; }
.sk-line { height: 18px; width: 220px; }
.sk-line.sm { width: 160px; }
@keyframes sk-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ---- Hero v3 (Apple style) ---- */
.hero { text-align: center; padding: 80px 24px 60px; }
.hero-center { max-width: 560px; margin: 0 auto; }

.avatar-wrap {
  position: relative; width: 150px; height: 150px;
  margin: 0 auto 28px;
}
.avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  position: relative; z-index: 2;
  border: 3px solid #000;
}
.avatar-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  z-index: 1; opacity: 0.9;
  animation: ring-pulse 2.4s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { filter: blur(0px); opacity: 0.9; }
  50% { filter: blur(4px); opacity: 0.6; }
}

.greet { color: var(--accent2); font-size: 1rem; font-weight: 500; margin-bottom: 6px; }
.name { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.name .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role {
  font-size: 1.15rem; font-weight: 600; color: var(--accent2);
  margin-top: 12px; min-height: 1.6em;
}
.role .cursor { animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero .bio { color: var(--text-dim); margin-top: 16px; font-size: 0.98rem; }
.hero .btns { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }



/* ---- Hero only mode (Apple keynote style) ---- */
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,113,227,0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(191,90,242,0.16), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(100,210,255,0.12), transparent 50%),
    #000;
  background-attachment: fixed;
}

.hero-only {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 110px 24px 60px;
}

nav {
  background: rgba(0,0,0,0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .container { justify-content: space-between; }
.logo { font-size: 1.15rem; letter-spacing: -0.01em; }
.logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }

.bg-blob { display: none; } /* remplacé par le dégradé du body */

.hero-center { position: relative; z-index: 1; max-width: 600px; }

.avatar-wrap { width: 168px; height: 168px; margin: 0 auto 32px; }
.avatar-img {
  border-radius: 34%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,113,227,0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.avatar-ring {
  border-radius: 34%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  animation: ring-rotate 6s linear infinite;
}
@keyframes ring-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.greet {
  color: var(--text-dim); font-size: 1.05rem; font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 8px;
}
.name {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.03em;
}
.name .accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 55%, var(--accent3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.role {
  font-size: 1.2rem; font-weight: 600; margin-top: 14px; min-height: 1.6em;
  background: linear-gradient(90deg, var(--accent3), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role .cursor { color: var(--accent3); -webkit-text-fill-color: var(--accent3); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero .loc { color: var(--text-dim); margin-top: 12px; font-size: 0.95rem; }
.hero .bio { color: var(--text-dim); margin-top: 18px; font-size: 1.02rem; line-height: 1.7; }

.hero .btns { display: flex; gap: 14px; justify-content: center; margin-top: 34px; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 10px 30px rgba(0,113,227,0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(191,90,242,0.4); }
.btn-outline {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.skill-strip {
  display: flex; justify-content: center; gap: 20px; margin-top: 52px; flex-wrap: wrap;
}
.skill-strip img {
  width: 52px; height: 52px; padding: 16px; border-radius: 18px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .25s, background .25s, box-shadow .25s;
}
.skill-strip img:hover {
  transform: translateY(-6px) scale(1.05);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 14px 34px rgba(0,113,227,0.3);
}

@media (max-width: 600px) {
  .skill-strip img { width: 40px; height: 40px; padding: 12px; }
}

footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}


/* ---- Menu hamburger ---- */
.menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.menu-btn span {
  width: 18px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 998;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.side-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 260px;
  background: rgba(20,20,22,0.85);
  backdrop-filter: saturate(180%) blur(24px);
  border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 999; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.side-menu.open { transform: translateX(0); }

.menu-close {
  align-self: flex-end; background: none; border: none; color: var(--text);
  font-size: 1.1rem; margin-bottom: 20px; cursor: pointer;
}
.menu-link {
  padding: 12px 10px; border-radius: 10px; color: var(--text);
  text-decoration: none; font-size: 1rem; transition: background .2s;
}
.menu-link:hover { background: rgba(255,255,255,0.06); }
.menu-link-accent {
  margin-top: 12px; color: var(--accent3); font-weight: 600;
}
