/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — Djibril Dieng
   Direction artistique : noir profond + lime (#deff00)
   Polices : Jost (titres) · Kumbh Sans (texte)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0e0e0e;
  --bg-2: #18191b;
  --bg-3: #222427;
  --lime: #deff00;
  --text: #ffffff;
  --muted: #cccccc;
  --dim: #8a8d91;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --pad: clamp(20px, 5vw, 60px);
  --wrap: 1320px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --head: 'Jost', sans-serif;
  --body: 'Kumbh Sans', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.1; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
body.is-loading { overflow: hidden; }

/* grain léger sur toute la page */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }
.sec { padding: clamp(70px, 10vw, 140px) 0; position: relative; overflow: clip; }
.sec-alt { background: var(--bg-2); }
.tag { font-size: 16px; color: var(--muted); margin-bottom: 14px; letter-spacing: .02em; }
.hl { color: var(--lime); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 2000; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 600; transition: top .3s; }
.skip:focus { top: 16px; }

/* ── PROGRESSION + CURSEUR ─────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: var(--lime); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 1200; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 1px solid rgba(222, 255, 0, .7); pointer-events: none; opacity: 0; display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s, border-color .3s;
}
.cursor-ring span { font-family: var(--head); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #000; opacity: 0; transition: opacity .25s; }
.cursor-ring.on { opacity: 1; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(222, 255, 0, .12); }
.cursor-ring.view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--lime); border-color: var(--lime); }
.cursor-ring.view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ── GLOWS ─────────────────────────────────────────────── */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--lime); opacity: .15; filter: blur(150px); z-index: 0; will-change: transform;
}
.glow-a { width: 520px; height: 520px; top: -120px; left: -180px; }
.glow-b { width: 560px; height: 560px; top: 160px; right: -260px; }
.glow-c { width: 620px; height: 420px; bottom: -200px; left: 50%; margin-left: -310px; opacity: .2; }

/* ── BOUTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 8px 0 28px; height: 52px; border-radius: 999px;
  font-family: var(--head); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; position: relative; overflow: hidden;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .25s var(--ease-io);
}
.btn-arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime); color: #000; font-size: 18px; transition: transform .4s var(--ease);
}
.btn:hover .btn-arrow { transform: rotate(45deg); }
.btn-outline { border: 1px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--lime); background: rgba(222, 255, 0, .06); }
.btn-lime { background: var(--lime); color: #000; }
.btn-lime .btn-arrow { background: #000; color: var(--lime); }
.btn-lime:hover .btn-arrow { transform: translateY(3px); }
.btn-lime::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none;
}
.btn-lime:hover::after { transform: translateX(120%); }

/* ── NAV ───────────────────────────────────────────────── */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: transform .5s var(--ease), padding .4s var(--ease);
}
.top::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(14, 14, 14, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s;
}
.top.scrolled { padding-top: 12px; padding-bottom: 12px; }
.top.scrolled::before { opacity: 1; }
.top.hide { transform: translateY(-110%); }
.logo { flex: none; display: inline-flex; align-items: center; line-height: 1; position: relative; z-index: 2; }
.logo img { height: 34px; width: auto; flex: none; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.08) rotate(-2deg); }
.menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.menu > a {
  font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  position: relative; padding: 4px 0; white-space: nowrap; transition: color .3s;
}
.menu > a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.menu > a:hover::after, .menu > a.active::after { transform: scaleX(1); transform-origin: left; }
.menu > a.active { color: var(--lime); }
.menu-foot { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; position: relative; z-index: 2; transition: border-color .3s, background .3s; }
.burger:hover { border-color: var(--lime); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .4s var(--ease), background .3s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger.open { background: var(--lime); border-color: var(--lime); }
.burger.open span { background: #000; }
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────────── */
#hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: clip; }
.hero-wrap {
  width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 4vw, 60px); align-items: center; position: relative; z-index: 1;
}
.hero-hello {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  margin-bottom: 26px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.5;
}
.hero-hello::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(222, 255, 0, .6); } 50% { box-shadow: 0 0 0 9px rgba(222, 255, 0, 0); } }
.hero-title { font-weight: 400; letter-spacing: -.03em; line-height: .98; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line-in { display: block; transform: translateY(115%); transition: transform 1.1s var(--ease) calc(var(--d, 0) * 1ms); }
.hero-title .l1 { font-size: clamp(30px, 4vw, 60px); color: var(--muted); }
.hero-title .l2 { font-size: clamp(46px, 7.4vw, 124px); font-weight: 600; white-space: nowrap; }
.hero-role { font-weight: 500; font-size: clamp(20px, 2.2vw, 32px); margin: 30px 0 18px; line-height: 1.25; }
.hero-role em { font-style: normal; color: var(--lime); }
.hero-desc { color: var(--muted); font-size: 18px; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-follow { margin-top: 34px; font-weight: 600; font-size: 17px; }
.hero-follow a { transition: color .2s; }
.hero-follow a:hover { color: var(--lime); }

.rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) calc(var(--d, 0) * 1ms), transform .9s var(--ease) calc(var(--d, 0) * 1ms); }
body.ready .rise { opacity: 1; transform: none; }
body.ready .line-in { transform: none; }

.hero-visual { position: relative; transform-style: preserve-3d; }
.hero-frame {
  border-radius: 320px 320px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: var(--bg-2); border: 1px solid var(--line);
  clip-path: inset(100% 0 0 0 round 320px 320px 20px 20px);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: clip-path 1.4s var(--ease-io) .7s, transform .5s var(--ease);
}
body.ready .hero-frame { clip-path: inset(0 0 0 0 round 320px 320px 20px 20px); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 2s var(--ease) .7s; }
body.ready .hero-frame img { transform: scale(1.02); }
.hero-badge {
  position: absolute; left: -48px; top: 22%; width: 150px; height: 150px; border-radius: 50%;
  background: var(--lime); color: #000; display: grid; place-items: center;
  opacity: 0; transform: scale(.4) rotate(-40deg); transition: transform 1s var(--ease) 1.6s, opacity .6s 1.6s;
}
body.ready .hero-badge { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)); }
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero-badge text { font-family: var(--body); font-weight: 700; font-size: 15.4px; letter-spacing: .04em; fill: #000; }
.hero-badge strong { font-family: var(--head); font-size: 44px; font-weight: 600; }
.hero-quote {
  position: absolute; right: -10px; bottom: 28px; max-width: 280px; padding: 20px 22px;
  background: var(--lime); color: #000; border-radius: var(--radius);
  opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) 1.9s, transform .8s var(--ease) 1.9s;
}
body.ready .hero-quote { opacity: 1; transform: translate(calc(var(--tx, 0px) * -.6), calc(var(--ty, 0px) * -.6)); }
.hero-quote p { font-weight: 500; font-size: 17px; line-height: 1.35; }
.hero-quote span { display: block; margin-top: 8px; font-size: 14px; color: #3a3d00; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-left: -20px; }
.scroll-hint span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ── BANDE CHIFFRES ────────────────────────────────────── */
.strip { background: var(--bg-2); border-block: 1px solid var(--line); }
.strip-inner {
  max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 36px var(--pad);
  display: flex; align-items: center; gap: 56px;
}
.strip-lead { display: flex; flex-direction: column; padding-right: 56px; border-right: 1px solid var(--line); }
.strip strong { font-family: var(--head); font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.strip-lead strong { color: var(--lime); }
.strip span { color: var(--muted); font-size: 16px; margin-top: 6px; }
.strip-items { display: flex; flex: 1; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.strip-items div { display: flex; flex-direction: column; }

/* ── EN-TÊTE DE SECTION ────────────────────────────────── */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head-center { justify-content: center; text-align: center; }
.sec-title { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.01em; max-width: 640px; }
.sec-title-xl { font-size: clamp(46px, 8vw, 100px); letter-spacing: -.03em; max-width: none; }
.sec-note { color: var(--muted); max-width: 320px; }

/* mots qui se révèlent */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease) calc(var(--i, 0) * 55ms + 80ms); }
.visible .wi, [data-split].visible .wi { transform: none; }

/* ── À PROPOS ──────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }
.about-title { font-size: clamp(28px, 3.8vw, 48px); font-weight: 600; letter-spacing: -.01em; line-height: 1.18; margin-bottom: 30px; }
.about-p { color: var(--muted); font-size: 18px; margin-bottom: 34px; max-width: 640px; }
.about-p strong { color: var(--text); font-weight: 600; }
.about-circle { position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; width: 100%; }
.ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--lime);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: clamp(16px, 1.6vw, 22px); transition: transform .6s var(--ease);
}
.ring span { padding: 6% 0; }
.ring:nth-child(1) { inset: 0; }
.ring:nth-child(2) { inset: 18% 8%; border-color: transparent; align-items: center; }
.ring:nth-child(2)::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .35); animation: spin 40s linear infinite; }
.ring:nth-child(3) { inset: 36% 24%; background: var(--lime); color: #000; align-items: center; animation: float 6s ease-in-out infinite; }
.ring:nth-child(2) span, .ring:nth-child(3) span { padding: 0; }
.about-circle:hover .ring:nth-child(1) { transform: scale(1.03); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── COMPÉTENCES ───────────────────────────────────────── */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 80px 1.35fr 1fr 210px; gap: 28px; align-items: center;
  padding: 36px 20px; border-bottom: 1px solid var(--line); position: relative;
  transition: background .35s var(--ease), padding .45s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
.row::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.row:hover { background: var(--bg-2); padding-left: 36px; }
.row:hover::before { transform: scaleX(1); }
.row-num { color: var(--dim); font-size: 22px; }
.row-title { font-size: clamp(28px, 3.5vw, 52px); font-weight: 600; letter-spacing: -.02em; transition: color .3s, transform .5s var(--ease); }
.row:hover .row-title { color: var(--lime); transform: translateX(6px); }
.row-text { color: var(--muted); font-size: 16px; }
.row-tools { font-size: 14px; color: var(--dim); text-align: right; }
.skills-note { margin-top: 28px; color: var(--dim); font-size: 15px; max-width: 900px; }

/* ── MARQUEE ───────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--lime); color: #000; padding: 20px 0; transform: skewY(-1.2deg); margin: -10px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--head); font-weight: 600; font-size: clamp(30px, 4vw, 56px); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 34px; display: inline-block; animation: spin 8s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── PORTFOLIO ─────────────────────────────────────────── */
.type-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 46px; }
.type-btn {
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--head); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); transition: all .3s var(--ease);
}
.type-btn:hover { border-color: var(--lime); color: var(--text); }
.type-btn.active { background: var(--lime); border-color: var(--lime); color: #000; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.proj-card { cursor: pointer; outline-offset: 8px; }
.proj-img {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); isolation: isolate;
}
.proj-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02) translate(var(--px, 0), var(--py, 0)); transition: transform .8s var(--ease); }
.proj-card:hover .proj-img img { transform: scale(1.09) translate(var(--px, 0), var(--py, 0)); }
.proj-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); opacity: 0; transition: opacity .5s; }
.proj-card:hover .proj-img::after { opacity: 1; }
.proj-count {
  position: absolute; top: 18px; left: 18px; z-index: 2; min-width: 46px; height: 46px; padding: 0 12px;
  display: grid; place-items: center; border-radius: 999px;
  background: rgba(14, 14, 14, .72); backdrop-filter: blur(8px);
  font-family: var(--head); font-weight: 600; font-size: 16px;
}
.proj-open {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; padding: 12px 22px; border-radius: 999px;
  background: var(--lime); color: #000; font-family: var(--head); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transform: translateY(14px); transition: all .45s var(--ease);
}
.proj-card:hover .proj-open, .proj-card:focus-visible .proj-open { opacity: 1; transform: none; }
.proj-meta { padding-top: 20px; }
.proj-type { color: var(--muted); font-size: 16px; }
.proj-name { font-size: 24px; margin: 4px 0 6px; transition: color .3s, transform .5s var(--ease); }
.proj-card:hover .proj-name { color: var(--lime); transform: translateX(6px); }
.proj-desc { color: var(--dim); font-size: 15px; }

/* ── EXPÉRIENCE ────────────────────────────────────────── */
.xp-list { border-top: 1px solid var(--line); }
.xp {
  display: grid; grid-template-columns: .9fr 1.4fr 200px; gap: 40px; align-items: start; position: relative;
  padding: 44px 20px; border-bottom: 1px solid var(--line); transition: background .35s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
.xp::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io) .3s; }
.xp.visible::after { transform: scaleX(1); }
.xp:hover { background: var(--bg-2); }
.xp-place { color: var(--muted); font-size: 16px; }
.xp-role { font-size: clamp(24px, 3vw, 40px); margin-top: 6px; }
.xp-tasks li { color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 8px; }
.xp-tasks li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.xp-date { text-align: right; color: var(--dim); font-size: 16px; padding-top: 6px; }

/* ── FORMATION ─────────────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.edu-card {
  padding: 34px 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, opacity .8s var(--ease);
}
.edu-card:hover { transform: translateY(-6px); border-color: var(--lime); }
.edu-year { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 600; font-size: 14px; }
.edu-school { font-size: 28px; margin: 22px 0 8px; }
.edu-degree { color: var(--muted); }

/* ── FOOTER / CONTACT ──────────────────────────────────── */
footer { position: relative; overflow: clip; padding: clamp(80px, 11vw, 150px) 0 0; border-top: 1px solid var(--line); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-title { font-size: clamp(38px, 8vw, 100px); font-weight: 600; letter-spacing: -.03em; line-height: 1; max-width: 960px; }
.cta-circle {
  flex: none; width: 170px; height: 170px; border-radius: 50%; background: var(--lime); color: #000;
  display: grid; place-items: center; text-align: center; font-family: var(--head); font-weight: 500; font-size: 16px; line-height: 1.5;
  transition: transform .3s var(--ease-io), box-shadow .4s;
}
.cta-circle:hover { box-shadow: 0 0 0 14px rgba(222, 255, 0, .14); }
.cta-sub { color: var(--muted); font-size: 18px; margin: 28px 0 70px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.foot-brand p { color: var(--muted); margin-top: 18px; max-width: 320px; }
.foot-cols h4 { font-size: 24px; margin-bottom: 20px; }
.foot-cols a, .foot-cols span { display: block; color: var(--muted); margin-bottom: 10px; transition: color .2s, transform .3s var(--ease); overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--lime); transform: translateX(4px); }
.foot-cols a.logo { display: inline-flex; margin: 0; }
.foot-cols a.logo:hover { transform: none; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.foot-bottom a:hover { color: var(--lime); }

/* ── MODAL (dossier) ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(100% 0 0 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.modal-overlay.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.modal-header {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad); background: rgba(14, 14, 14, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.modal-back {
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--head); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  transition: all .3s var(--ease); white-space: nowrap;
}
.modal-back:hover { background: var(--lime); border-color: var(--lime); color: #000; }
.modal-title-wrap { text-align: center; min-width: 0; }
.modal-cat-type { color: var(--lime); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.modal-title { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 3vw, 38px); }
.modal-count { color: var(--muted); font-size: 15px; min-width: 110px; text-align: right; }
.modal-body { max-width: 1500px; margin: 0 auto; padding: 36px var(--pad) 80px; }
.modal-masonry { columns: 4; column-gap: 18px; }
.modal-img-wrap {
  break-inside: avoid; margin-bottom: 18px; position: relative; overflow: hidden; cursor: zoom-in;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.modal-overlay.open .modal-img-wrap { animation: imgIn .8s var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms + .35s); }
@keyframes imgIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-img-wrap img { width: 100%; transition: transform .6s var(--ease); }
.modal-img-wrap:hover img { transform: scale(1.05); }
.modal-img-overlay {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--lime); color: #000; font-size: 18px; opacity: 0; transform: scale(.7); transition: all .3s var(--ease);
}
.modal-img-wrap:hover .modal-img-overlay { opacity: 1; transform: none; }

/* ── LIGHTBOX ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 600; background: rgba(0, 0, 0, .97); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 8px; animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox-count { position: absolute; top: 34px; left: 28px; font-family: var(--head); font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  font-size: 28px; line-height: 1; display: grid; place-items: center; transition: all .3s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--lime); border-color: var(--lime); color: #000; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ── LOADER ────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;  animation: loaderFailsafe .6s 14s forwards; }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transition: transform 1.1s var(--ease-io); }
.loader-top { top: 0; border-bottom: 1px solid transparent; }
.loader-bottom { bottom: 0; }
.loader.leaving .loader-top { transform: translateY(-101%); border-bottom-color: var(--lime); }
.loader.leaving .loader-bottom { transform: translateY(101%); }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }
.loader-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 var(--pad); text-align: center; transition: opacity .5s, transform .9s var(--ease-io); }
.loader.leaving .loader-center { opacity: 0; transform: scale(1.06); }
.loader.leaving canvas { opacity: 0; }
.loader-logo { width: clamp(150px, 22vw, 260px); clip-path: inset(0 100% 0 0); animation: wipe 1.3s var(--ease-io) .2s forwards, glowPulse 3s ease-in-out 1.5s infinite; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes glowPulse { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .08)); } 50% { filter: drop-shadow(0 0 34px rgba(222, 255, 0, .32)); } }
.loader-text { color: var(--muted); font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .04em; opacity: 0; animation: loaderIn 1s var(--ease) .9s forwards; }
.loader-dots i { font-style: normal; animation: dot 1.2s infinite; }
.loader-dots i:nth-child(2) { animation-delay: .2s; }
.loader-dots i:nth-child(3) { animation-delay: .4s; }
.loader-meter { display: flex; align-items: center; gap: 14px; opacity: 0; animation: loaderIn 1s var(--ease) 1.2s forwards; }
.loader-bar { display: block; width: clamp(120px, 20vw, 200px); height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.loader-meter b { font-family: var(--head); font-weight: 500; font-size: 15px; min-width: 3.2ch; text-align: left; color: var(--lime); font-variant-numeric: tabular-nums; }
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ── ANIMATIONS D'APPARITION ───────────────────────────── */
.fade-in { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: .12s; }
.fade-in-delay-2 { transition-delay: .24s; }
.row.fade-in, .xp.fade-in, .edu-card.fade-in { transition-delay: 0s; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1180px) {
  .top-cta { display: none; }
}
@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-masonry { columns: 3; }
  .row { grid-template-columns: 70px 1fr 1fr; padding: 30px 12px; align-items: start; }
  .row-tools { grid-column: 2 / -1; text-align: left; }
  .xp { grid-template-columns: 1fr 1.4fr; }
  .xp-date { grid-column: 1 / -1; text-align: left; padding: 0; }
}
@media (max-width: 1000px) {
  .menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 100px var(--pad) 40px; background: var(--bg);
    clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s;
  }
  .menu.open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
  .menu > a { font-family: var(--head); font-weight: 600; font-size: clamp(34px, 9vw, 64px); text-transform: none; letter-spacing: -.02em; padding: 4px 0; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
  .menu.open > a { opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 60ms + .3s), calc(var(--n, 0) * 60ms + .3s), 0s; }
  .menu > a::after { display: none; }
  .menu-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
  .menu-foot a { color: var(--muted); font-size: 16px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 400; }
  .burger { display: block; }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-title .l1 { font-size: clamp(28px, 5vw, 46px); }
  .hero-title .l2 { font-size: clamp(44px, 13vw, 104px); }
  .hero-role { font-size: clamp(20px, 3.4vw, 30px); }
  .hero-visual { max-width: 520px; width: 100%; margin: 20px auto 0; }
  #hero { padding-top: 120px; }
  .scroll-hint { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-circle { margin: 0 auto; max-width: 320px; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .strip-lead { border-right: 0; padding-right: 0; }
  .edu-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
  .modal-masonry { columns: 2; column-gap: 12px; }
  .modal-img-wrap { margin-bottom: 12px; }
  .modal-header { flex-wrap: wrap; justify-content: center; padding: 14px var(--pad); }
  .modal-count { display: none; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 28px 8px; }
  .row-tools { grid-column: auto; }
  .xp { grid-template-columns: 1fr; gap: 18px; padding: 32px 8px; }
  .hero-badge { left: -8px; width: 110px; height: 110px; }
  .hero-badge text { font-size: 15.4px; }
  .hero-badge strong { font-size: 34px; }
  .hero-quote { right: 8px; left: 8px; max-width: none; bottom: 14px; padding: 14px 16px; }
  .hero-quote p { font-size: 15px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-desc { font-size: 17px; }
  .hero-hello { align-items: flex-start; font-size: 12px; letter-spacing: .07em; margin-bottom: 20px; }
  .hero-hello::before { margin-top: 6px; }
  .strip-items { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cta-circle { width: 130px; height: 130px; font-size: 15px; }
  .foot-cols { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 26px; transform: none; width: 50px; height: 50px; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .lightbox-close { top: 16px; right: 16px; width: 46px; height: 46px; }
  .lightbox-count { top: 28px; left: 20px; }
  .lightbox img { max-width: 94vw; max-height: 74vh; }
  .marquee { transform: skewY(-2deg); }
}

/* ── MOUVEMENT RÉDUIT ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .fade-in, .rise, .line-in, .wi { opacity: 1; transform: none; }
  .hero-frame { clip-path: none; }
}
