/* =========================================================
   White_UltimeDev — Portfolio
   ========================================================= */

:root {
  --bg: #09090b;
  --bg-2: #0f0f13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #ededf0;
  --muted: #9a9aa6;
  --dim: #6b6b76;
  --accent: #a5b4ff;
  --accent-2: #7dd3fc;
  --accent-strong: #6d7cff;
  --success: #4ade80;
  --warn: #fbbf24;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

/* Transition fluide entre les pages (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .25s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
.nav { view-transition-name: nav; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent-strong); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.gradient-text {
  background: linear-gradient(100deg, #fff 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(109, 124, 255, 0.08), transparent 60%);
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 8px 30px -6px rgba(165, 180, 255, .5); }
.btn--ghost { border-color: var(--border-2); background: var(--surface); }
.btn--ghost:hover { border-color: rgba(255,255,255,.3); background: var(--surface-2); }

.link-arrow { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: var(--text); white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.menu-open {
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fff, var(--accent));
  color: var(--bg); font-weight: 700;
}
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav__toggle { display: none; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-family: var(--font-mono);
  color: var(--muted); border: 1px solid var(--border); transition: color .2s, border-color .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--border-2); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: rgba(16, 16, 20, .96); border: 1px solid var(--border-2); border-radius: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
  animation: menuIn .25s var(--ease);
}
.lang__link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.lang__link:hover { background: var(--surface-2); color: var(--text); }
.lang__link[aria-current] { color: var(--text); }
.lang__link[aria-current]::after { content: "✓"; margin-left: auto; color: var(--accent); }
.lang__code { font-family: var(--font-mono); font-size: 11px; color: var(--dim); width: 18px; }

.mobile-menu {
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: rgba(9, 9, 11, 0.97);
  border-bottom: 1px solid var(--border);
  animation: menuIn .35s var(--ease);
  max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--border); color: var(--muted); }
.mobile-menu > a[aria-current="page"] { color: var(--text); }
.mobile-menu__langs { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lang__chip { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.lang__chip[aria-current] { border-color: var(--accent); color: var(--text); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1024px) {
  .nav__links, .nav__cta, .nav .lang { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface);
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 112px;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -440px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(109, 124, 255, .22), transparent);
  filter: blur(20px);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-46%, 40px) scale(1.08); } }

.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { font-size: clamp(38px, 7vw, 84px); font-weight: 700; margin: 26px 0 24px; max-width: 1050px; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface);
  font-size: 13px; color: var(--muted);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.status--off .status__dot { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }

.stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px); margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--border); width: min(100%, 640px); }
.stats div { display: flex; flex-direction: column-reverse; align-items: center; }
.stats dt { font-size: 13px; color: var(--dim); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 36px; font-weight: 600; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border-radius: 999px; border: 1.5px solid var(--border-2);
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 600px) {
  .stats { gap: 16px; justify-content: space-between; }
  .stats dd { font-size: 28px; }
  .stats dt { font-size: 12px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
}

/* ---------- En-tête des pages internes ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(64px, 10vw, 120px)) 0 clamp(40px, 6vw, 72px);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 700; max-width: 900px; }
.page-hero__sub { margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 640px; }
.page-hero--contact { padding-bottom: 0; }

/* ---------- Code window ---------- */
.code-window {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 20, 28, .9), rgba(12, 12, 16, .9));
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(109,124,255,.25);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}
.code-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.code-window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.code-window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a33; }
.code-window__bar p { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.code { margin: 0; padding: 20px 22px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: #c9cbd6; overflow-x: auto; }
.code .k { color: #c4a7ff; }
.code .f { color: var(--accent-2); }
.code .t { color: #fcd38d; }
.code .c { color: var(--dim); font-style: italic; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head > div { max-width: 720px; }
.section__head h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 17px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; letter-spacing: .02em; }
.tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
@media (max-width: 700px) { .section__head { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* ---------- Spotlight hover ---------- */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(165, 180, 255, .09), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spotlight:hover::before { opacity: 1; }

/* ---------- Services (accueil) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s, transform .5s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}
.service:first-child { background: linear-gradient(160deg, rgba(109,124,255,.12), rgba(255,255,255,.02) 60%); }
.service:hover { border-color: var(--border-2); transform: translateY(-4px); }
.service h3 { font-size: 21px; }
.service p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* ---------- Split (texte + code) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split__text h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; margin-bottom: 18px; }
.split__text > p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-top: 4px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .code-window { transform: none; }
}
@media (max-width: 520px) { .code { font-size: 12px; } }

/* ---------- About ---------- */
.about__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about__text { display: grid; gap: 20px; font-size: 17px; color: var(--muted); }
.about__text a { color: var(--text); border-bottom: 1px solid var(--accent); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.values li { padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.values h3 { font-size: 17px; margin-bottom: 6px; }
.values p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .about__body { grid-template-columns: 1fr; } }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.skill {
  grid-column: span 2; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s, transform .5s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}
.skill:hover { border-color: var(--border-2); transform: translateY(-4px); }
.skill--main { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, rgba(109,124,255,.12), rgba(255,255,255,.02) 60%); }
.skill--main h3 { font-size: clamp(28px, 3vw, 38px); }
.skill--main p:not(.tag) { font-size: 17px; max-width: 520px; }
.skill:nth-child(4), .skill:nth-child(5) { grid-column: span 3; }
.skill h3 { font-size: 21px; }
.skill p:not(.tag) { color: var(--muted); font-size: 15px; }
.skill__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.skill__icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.meter { margin-top: auto; padding-top: 16px; }
.meter span { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.meter span::after {
  content: ""; position: absolute; inset: 0; width: var(--level); border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.is-visible .meter span::after { transform: scaleX(1); }

.tools { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--muted); font-family: var(--font-mono); }

@media (max-width: 960px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
  .skill, .skill:nth-child(4), .skill:nth-child(5) { grid-column: span 1; }
  .skill--main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .skills { grid-template-columns: 1fr; }
  .skill--main { grid-column: span 1; }
}

/* ---------- Media ---------- */
.media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius) - 6px); background: var(--bg-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.media__placeholder {
  --hue: 230;
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 25% 20%, hsl(var(--hue) 80% 65% / .35), transparent 50%),
    radial-gradient(circle at 80% 85%, hsl(calc(var(--hue) + 40) 80% 60% / .25), transparent 50%),
    linear-gradient(135deg, hsl(var(--hue) 30% 12%), hsl(var(--hue) 25% 7%));
  transition: transform 1s var(--ease);
}
.media__placeholder span { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 12px; }

.badge {
  position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: rgba(9,9,11,.7); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 8px; vertical-align: middle; }

/* ---------- Game ---------- */
.game {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(12px, 2vw, 20px); border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border-2);
  background: linear-gradient(140deg, rgba(109,124,255,.10), rgba(255,255,255,.02) 50%, rgba(125,211,252,.06));
}
.game__visual { position: relative; }
.game:hover .media__placeholder, .game:hover img { transform: scale(1.03); }
.game__content { padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) 0; display: flex; flex-direction: column; gap: 16px; }
.game__title { font-size: clamp(28px, 3.4vw, 42px); }
.game__content > p:not(.tag) { color: var(--muted); }
.game__facts { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.game__facts li { background: var(--bg-2); padding: 14px 16px; font-size: 14px; }
.game__facts span { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.game__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .game__content { padding: 4px 8px 12px; }
}
@media (max-width: 440px) { .game__facts { grid-template-columns: 1fr; } .game__actions .btn { flex: 1 1 100%; } }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feature span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.feature p { margin-top: 14px; font-size: 15px; color: var(--muted); }
.feature strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .media { border-radius: var(--radius); border: 1px solid var(--border); }
.gallery .media:hover .media__placeholder, .gallery .media:hover img { transform: scale(1.04); }
.shot { margin: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.yt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform 1s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.04); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(9,9,11,.6); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .4s var(--ease), background .3s;
}
.yt__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.yt:hover .yt__play { transform: scale(1.1); background: rgba(109,124,255,.7); }
.media iframe { width: 100%; height: 100%; border: 0; display: block; }
.shot figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Frise du parcours ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2), transparent);
}
.timeline__item { position: relative; padding-top: 32px; }
.timeline__item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(165,180,255,.12);
}
.timeline__item:last-child::before { background: var(--accent); }
.timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.timeline__item h3 { font-size: 19px; margin: 8px 0 6px; }
.timeline__item p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 32px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent-strong), var(--accent-2)); }
  .timeline__item { padding: 0 0 28px; }
  .timeline__item::before { left: -32px; top: 2px; }
}

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  padding: 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .5s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}
.project:hover { border-color: var(--border-2); transform: translateY(-6px); }
.project:hover .media__placeholder, .project:hover img { transform: scale(1.05); }
.project__body { padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__body h3 { font-size: 21px; }
.project__body p { color: var(--muted); font-size: 15px; }
.project__body .link-arrow { margin-top: auto; padding-top: 6px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-family: var(--font-mono); color: var(--accent); background: rgba(165,180,255,.08); border: 1px solid rgba(165,180,255,.16); }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Creations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: color .25s, background .25s, border-color .25s;
}
.filter:hover { color: var(--text); border-color: var(--border-2); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .3s, opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.work .media { border-radius: 0; aspect-ratio: 4 / 3; }
.work:hover { border-color: var(--border-2); }
.work:hover .media__placeholder, .work:hover img, .work:hover video { transform: scale(1.05); }
.work__body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.work__body h3 { font-size: 17px; }
.work__body p { color: var(--muted); font-size: 14px; }
.work__body .link-arrow { margin-top: 8px; }
[data-cat].is-hidden { display: none; }
[data-cat].is-entering { animation: workIn .5s var(--ease) both; }
@keyframes workIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 960px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .works { grid-template-columns: 1fr; } }

/* ---------- Albums (dossiers de photos) ---------- */
.album-stack { position: relative; }
.album { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.album__count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text);
  background: rgba(9,9,11,.72); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.album__count .icon { width: 14px; height: 14px; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5,5,7,.94); color: var(--text);
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; animation: faqIn .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1200px, calc(100vw - 140px)); }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__counter { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.lightbox__nav, .lightbox__close {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-size: 28px; line-height: 1;
  transition: background .2s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.14); }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 20px; top: 20px; font-size: 24px; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__counter { display: none; }
@media (max-width: 600px) {
  .lightbox__stage { max-width: calc(100vw - 24px); }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
}

/* ---------- Page d'une création ---------- */
.back-link { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--muted); transition: color .2s; }
.back-link:hover { color: var(--text); }
.detail__meta { margin-top: 24px; }
.photo {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); cursor: zoom-in;
  transition: border-color .3s, opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo:hover { border-color: var(--border-2); }
.photo:hover img { transform: scale(1.04); }
.photo--cover { aspect-ratio: 16 / 9; margin-bottom: 16px; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photos .photo { aspect-ratio: 4 / 3; background: #8c8b88; }
.photos .photo img { object-fit: contain; }
@media (max-width: 960px) { .photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .photos { grid-template-columns: repeat(2, 1fr); gap: 10px; } .photo--cover { aspect-ratio: 4 / 3; } }
a.album { display: block; cursor: pointer; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.process li { background: var(--bg); padding: 28px 24px 32px; transition: background .3s, opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.process li:hover { background: var(--bg-2); }
.process span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.process h3 { font-size: 20px; margin: 18px 0 8px; }
.process p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 48px);
  border-radius: calc(var(--radius) + 8px); border: 1px solid var(--border-2);
  background: radial-gradient(ellipse at 50% 0%, rgba(109,124,255,.16), transparent 65%), var(--surface);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; }
.cta-band p { color: var(--muted); margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(17px, 2vw, 20px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }
.faq details[open] p { animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.contact__card {
  text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: calc(var(--radius) + 10px); border: 1px solid var(--border-2);
  background: radial-gradient(ellipse at 50% 0%, rgba(109,124,255,.18), transparent 60%), var(--surface);
  overflow: hidden;
}
.contact__card h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 600; }
.contact__lead { color: var(--muted); margin: 18px auto 0; font-size: 17px; max-width: 560px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }

.discord-copy {
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
  height: 64px; padding: 0 24px 0 18px; border-radius: 999px;
  background: #5865f2; border: 0; color: #fff;
  box-shadow: 0 12px 40px -10px rgba(88,101,242,.7);
  transition: transform .4s var(--ease), box-shadow .3s, background .3s;
}
.discord-copy:hover { background: #4f5bdc; box-shadow: 0 16px 50px -10px rgba(88,101,242,.9); }
.discord-copy svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.discord-copy small { display: block; font-size: 12px; opacity: .8; line-height: 1.2; }
.discord-copy strong { color: #fff; font-size: 17px; line-height: 1.3; }
@media (max-width: 520px) { .contact__actions > * { width: 100%; } .discord-copy { justify-content: center; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 32px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 320px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Bandeau de langue ---------- */
.lang-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(20, 20, 26, .92); border: 1px solid var(--border-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
  transform: translateX(-50%); animation: bannerIn .6s var(--ease) both .8s;
}
.lang-banner[hidden] { display: none; }
.lang-banner__text { font-size: 14px; color: var(--muted); }
.lang-banner__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.lang-banner__close:hover { background: var(--surface-2); color: var(--text); }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 560px) {
  .lang-banner { flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 14px; text-align: center; }
  .lang-banner__text { width: 100%; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; font-size: 14px;
  background: var(--text); color: var(--bg); font-weight: 500;
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound h1 { font-size: clamp(80px, 18vw, 160px); }
.notfound p:not(.eyebrow) { color: var(--muted); margin: 8px 0 32px; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .code-window.reveal { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(24px); }
.js .code-window.reveal.is-visible { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.js .code-window.reveal.is-visible:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
@media (max-width: 900px) { .js .code-window.reveal.is-visible { transform: none; } }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .code-window, .js .code-window.reveal { transform: none; }
}

@media (hover: none) { .cursor-glow { display: none; } }
