/* ==========================================================
   ZeRwYX — feuille de style
   Couleurs reprises du profil Discord : fond nuit → violet → bordeaux,
   accent rose/rouge (pseudo), cyan (crâne), violet (anneau).
   Règle : un seul accent fort (rose), le cyan pour les données/liens.
   ========================================================== */
:root {
  --bg: #0d0b22;
  --surface: #17132f;
  --surface-2: #1e1840;
  --border: #2c2552;
  --border-2: #3d3470;
  --text: #ece9f7;
  --muted: #9d97bd;
  --dim: #6b6590;

  --pink: #ff2e93;
  --red: #ff3d5a;
  --purple: #9b5cff;
  --cyan: #36c9f5;

  --logo: linear-gradient(90deg, #ff2e93, #ff3d5a);
  --radius: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
/* même dégradé que la bannière du profil, figé */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(155, 92, 255, .22), transparent 70%),
    radial-gradient(800px 500px at 10% 100%, rgba(255, 61, 90, .18), transparent 70%),
    linear-gradient(180deg, #0d0b22 0%, #1a1238 55%, #2a0f2e 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--pink); color: #fff; }

.container { width: min(1120px, 90vw); margin: 0 auto; }
section { padding: 72px 0; scroll-margin-top: 40px; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 4px; }
.link { color: var(--cyan); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(13, 11, 34, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .container { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 32px; height: 32px; border-radius: 50%; }
.wordmark {
  font-family: "Orbitron", var(--font); font-weight: 900; letter-spacing: .12em; font-size: 1.15rem;
  background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .94rem; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.nav-moon { display: inline-flex; align-items: center; gap: 7px; }
.nav-moon span { font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; color: #fff; background: linear-gradient(90deg, #ff7f86, #e8489c); }
.nav-burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 12px;
  font: 700 .95rem var(--font); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #ff4aa3; }
.btn-secondary { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--purple); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6873f5; }

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.hero h1 .wordmark { font-size: 1em; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 18px 0 30px; }
.hero .lead strong { color: var(--text); font-weight: 700; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { display: flex; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.hero .meta b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* avatar + blocs flottants */
.hero-visual { position: relative; justify-self: center; width: min(400px, 82vw); aspect-ratio: 1; }
.avatar {
  position: absolute; inset: 12%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px var(--purple), 0 30px 80px -20px rgba(255, 46, 147, .55);
  background: #000;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.float {
  position: absolute; background: rgba(23, 19, 47, .92); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 14px;
  font-size: .86rem; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7);
  animation: drift 6s ease-in-out infinite;
}
.float small { display: block; color: var(--dim); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.float b { font-weight: 700; }
.float .hl { color: var(--cyan); font-family: var(--mono); }
.float.f1 { top: 4%; right: -6%; }
.float.f2 { top: 46%; left: -14%; animation-delay: -2s; }
.float.f3 { bottom: 2%; right: 0; animation-delay: -4s; max-width: 250px; }
.float.f3 .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #23d18b; margin-right: 6px; transition: background .3s; }
.float.f3 .dot.online { background: #23a55a; box-shadow: 0 0 8px #23a55a; }
.float.f3 .dot.idle { background: #f0b232; }
.float.f3 .dot.dnd { background: #f23f43; }
.float.f3 .dot.offline { background: #80848e; }
.float.f3:hover { border-color: #5865f2; }
/* rotation : un bloc mis en avant à la fois */
.float { transition: scale .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, border-color .4s, box-shadow .5s, filter .5s; }
.hero-visual.spot .float:not(.is-active) { opacity: .5; filter: saturate(.6); }
.hero-visual.spot .float.is-active { scale: 1.08; z-index: 2; border-color: rgba(255, 46, 147, .7); box-shadow: 0 0 0 1px rgba(255, 46, 147, .25), 0 18px 50px -14px rgba(255, 46, 147, .55); }
.f-dots { display: none; }
.f-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--border-2); cursor: pointer; transition: width .3s, background .3s; }
.f-dots button.on { width: 22px; background: var(--pink); }
@media (min-width: 641px) { .hero-visual .f-dots { display: flex; position: absolute; left: 50%; bottom: -30px; translate: -50% 0; gap: 6px; } }
@keyframes drift { 50% { transform: translateY(-8px); } }

/* ---------- Moon RP (bientôt) — couleurs reprises du branding du serveur ---------- */
.moon-wrap { padding: 10px 0 30px; }
.moon {
  --m-coral: #ff7f86; --m-pink: #e8489c; --m-violet: #9a5cf0; --m-blue: #5d8cff; --m-night: #140c30;
  position: relative; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: var(--m-night); border: 1px solid rgba(232, 72, 156, .35);
  box-shadow: 0 30px 80px -30px rgba(232, 72, 156, .45), 0 0 0 1px rgba(93, 140, 255, .08) inset;
}
.moon-sky {
  position: absolute; inset: 0 0 auto 0; height: 300px; z-index: -1;
  background: url("../img/moon/sky.webp") center 30% / cover no-repeat;
  mask-image: linear-gradient(#000 35%, transparent); -webkit-mask-image: linear-gradient(#000 35%, transparent);
}
.moon::after { /* lueur coucher de soleil sous le ciel */
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; top: 210px; height: 160px;
  background: radial-gradient(closest-side, rgba(255, 127, 134, .28), transparent); filter: blur(20px);
}
.moon-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding: 230px 44px 40px; }
.moon-icon { position: absolute; top: 28px; left: 40px; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.moon-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font: 700 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, var(--m-coral), var(--m-pink)); box-shadow: 0 6px 20px -6px var(--m-pink);
}
.moon-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: moonPulse 1.6s ease-in-out infinite; }
@keyframes moonPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.moon h2 {
  font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; font-style: italic; letter-spacing: -.02em; line-height: 1; margin: 16px 0 14px;
  background: linear-gradient(90deg, var(--m-coral) 0%, var(--m-pink) 40%, var(--m-violet) 70%, var(--m-blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(232, 72, 156, .35));
}
.moon h2 span { font-weight: 800; }
.moon-lead { color: #cfc6ec; font-size: 1.06rem; max-width: 520px; }
.moon-lead strong { color: #fff; }
.moon-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.moon-btn { background: linear-gradient(90deg, var(--m-pink), var(--m-violet)); color: #fff; padding: 12px 20px; box-shadow: 0 10px 30px -10px var(--m-pink); }
.moon-btn:hover { filter: brightness(1.1); }
.moon-note { font-size: .86rem; color: #9b90c4; }
.moon-jobs { display: flex; flex-direction: column; gap: 10px; }
.moon-jobs small { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9b90c4; margin-bottom: 2px; }
.moon-job { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .15s, background .15s; }
.moon-job:hover { border-color: rgba(232, 72, 156, .4); background: rgba(232, 72, 156, .06); }
.moon-job img { width: 48px; height: 48px; flex-shrink: 0; }
.moon-job b { display: block; color: #fff; font-size: .95rem; }
.moon-job span { font-size: .84rem; color: #9b90c4; line-height: 1.35; }
@media (max-width: 960px) {
  .moon-body { grid-template-columns: 1fr; gap: 28px; padding: 200px 26px 28px; }
  .moon-icon { left: 24px; top: 22px; width: 52px; height: 52px; }
}
@media (max-width: 640px) { .moon-sky { height: 220px; } .moon-body { padding-top: 160px; } .moon::after { top: 150px; } }

/* ---------- onglets ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 9px; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--font); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.tab .n { color: var(--dim); font-family: var(--mono); font-size: .8rem; margin-left: 4px; }

/* ---------- cartes projet ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.repo-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.repo-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.repo-card .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.repo-card h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 600; word-break: break-word; }
.repo-card p { color: var(--muted); font-size: .92rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo-card p.none { color: var(--dim); font-style: italic; }
.repo-card .meta { display: flex; gap: 16px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.repo-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tag { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag.fivem { color: #ff8aa0; border-color: rgba(255, 61, 90, .35); background: rgba(255, 61, 90, .08); }
.tag.discord { color: #a5adff; border-color: rgba(88, 101, 242, .4); background: rgba(88, 101, 242, .1); }
.tag.tool { color: #7fdcff; border-color: rgba(54, 201, 245, .35); background: rgba(54, 201, 245, .08); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--muted); }

/* ---------- à propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.box h3 { font-size: 1rem; margin-bottom: 14px; }
.box p + p { margin-top: 12px; }
.lang-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; margin-bottom: 18px; }
.lang-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .92rem; }
.lang-list li { display: flex; align-items: center; gap: 8px; }
.lang-list li b { margin-left: auto; color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* À propos : colonne gauche */
.about { align-items: stretch; }
.about-me { display: flex; flex-direction: column; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 24px; }
.facts-grid div { padding: 12px 12px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.facts-grid b { display: block; font: 700 1.25rem var(--mono); color: var(--text); line-height: 1.2; }
.facts-grid span { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.langs-block { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); }

/* À propos : éditeur de code */
.ide { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #0f0c22; border: 1px solid var(--border); box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .8); min-height: 100%; }
.ide-top { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #17132f; border-bottom: 1px solid var(--border); font: .78rem var(--mono); color: var(--dim); }
.ide-dots { display: flex; gap: 7px; }
.ide-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ide-dots i:nth-child(2) { background: #febc2e; } .ide-dots i:nth-child(3) { background: #28c840; }
.ide-title { margin-left: auto; font-family: var(--font); font-weight: 700; color: var(--muted); font-size: .82rem; }
.ide-tabs { display: flex; overflow-x: auto; background: #131029; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.ide-tabs::-webkit-scrollbar { display: none; }
.ide-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-right: 1px solid var(--border); background: none; color: var(--dim); font: 500 .8rem var(--mono); cursor: pointer; white-space: nowrap; position: relative; }
.ide-tabs button i { width: 8px; height: 8px; border-radius: 2px; }
.ide-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .02); }
.ide-tabs button.on { color: var(--text); background: #0f0c22; }
.ide-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pink); }
.ide-code { flex: 1; overflow: auto; padding: 14px 0; font: .84rem/1.75 var(--mono); }
.ide-code ol { list-style: none; counter-reset: ln; margin: 0; padding: 0; }
.ide-code li { counter-increment: ln; display: flex; padding-right: 18px; white-space: pre; color: #d6d1ef; cursor: text; }
.ide-code li::before { content: counter(ln); flex: 0 0 46px; padding-right: 16px; text-align: right; color: #4c4673; user-select: none; }
.ide-code li .ln { white-space: pre; }
.ide-code li:hover { background: rgba(155, 92, 255, .07); }
.ide-code li:hover::before { color: #8a83b5; }
.t-c { color: #6f6a94; font-style: italic; } .t-s { color: #7ee2a8; } .t-k { color: #ff79c6; }
.t-n { color: #ffb86c; } .t-t { color: #8be9fd; } .t-v { color: #f1fa8c; }
.ide-status { display: flex; align-items: center; gap: 14px; height: 26px; padding: 0 12px; background: linear-gradient(90deg, #7a2ccf, #c2338f); color: #fff; font: 500 .72rem var(--mono); }
.ide-branch { display: inline-flex; align-items: center; gap: 6px; }
.ide-branch svg { width: 12px; height: 12px; }
.ide-status .grow { flex: 1; }
@media (max-width: 640px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .ide-path, .ide-status span:nth-last-child(-n+3) { display: none; }
  .ide-code { font-size: .76rem; }
  .ide-code li::before { flex-basis: 34px; padding-right: 10px; }
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.stack-k { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding-top: 7px; }
.stack .chips { gap: 6px; }
.stack .chip { padding: 4px 10px; font-size: .84rem; }
@media (max-width: 640px) { .stack-row { grid-template-columns: 1fr; gap: 6px; } .stack-k { padding-top: 0; } }
.chip { padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; color: var(--muted); }

/* ---------- liens ---------- */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s; }
.link-card:hover { border-color: var(--purple); }
.link-card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); }
.link-card .ico svg { width: 20px; height: 20px; }
.link-card b { display: block; font-size: .95rem; }
.link-card small { color: var(--muted); font-size: .82rem; }

/* ---------- page projets ---------- */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-head p { color: var(--muted); margin-top: 8px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); }
.search:focus-within { border-color: var(--purple); }
.search svg { width: 18px; height: 18px; color: var(--dim); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: 500 .95rem var(--font); padding: 12px 0; }
select { padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font: 600 .92rem var(--font); cursor: pointer; outline: 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.count-line { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ---------- page repo ---------- */
.breadcrumb { font-family: var(--mono); font-size: .86rem; color: var(--muted); padding-top: 40px; }
.breadcrumb a:hover { color: var(--text); }
.repo-head { padding: 22px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.repo-head .title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.repo-head h1 { font-family: var(--mono); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; word-break: break-word; }
.repo-head .desc { color: var(--muted); font-size: 1.08rem; margin-top: 10px; max-width: 760px; }
.repo-head .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.repo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-bottom: 60px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-head { padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.panel-body { padding: 20px; }
.side { display: flex; flex-direction: column; gap: 16px; }
.side h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 10px; }
.side .group + .group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.facts { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.facts li { display: flex; justify-content: space-between; gap: 10px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-family: var(--mono); font-size: .85rem; text-align: right; }
.clone { display: flex; }
.clone input { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 8px 0 0 8px; background: var(--bg); border: 1px solid var(--border-2); border-right: 0; color: var(--text); font: .78rem var(--mono); outline: 0; }
.clone button { padding: 0 12px; border-radius: 0 8px 8px 0; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 700 .82rem var(--font); cursor: pointer; }
.clone button:hover { border-color: var(--purple); }
.commit { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.commit:last-child { border-bottom: 0; padding-bottom: 0; }
.commit:first-child { padding-top: 0; }
.commit .msg { display: block; }
.commit:hover .msg { color: var(--cyan); }
.commit .sub { color: var(--dim); font-size: .8rem; font-family: var(--mono); }
.files { list-style: none; font-family: var(--mono); font-size: .86rem; }
.files a { display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--border); color: var(--muted); }
.files li:last-child a { border-bottom: 0; }
.files a:hover { color: var(--text); background: var(--surface-2); }
.files svg { width: 16px; height: 16px; flex-shrink: 0; }
.files .dir svg { color: var(--cyan); }

/* README rendu par GitHub */
.markdown { line-height: 1.75; overflow-wrap: anywhere; }
.markdown > *:first-child { margin-top: 0 !important; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 1.6em 0 .6em; }
.markdown h1 { font-size: 1.7rem; }
.markdown h2 { font-size: 1.35rem; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.markdown h3 { font-size: 1.12rem; }
.markdown p, .markdown ul, .markdown ol, .markdown pre, .markdown table, .markdown blockquote { margin: 0 0 1em; }
.markdown ul, .markdown ol { padding-left: 1.5em; }
.markdown a { color: var(--cyan); }
.markdown a:hover { text-decoration: underline; }
.markdown img { display: inline-block; border-radius: 8px; }
.markdown code { font: .85em var(--mono); padding: .15em .4em; border-radius: 5px; background: var(--surface-2); }
.markdown pre { padding: 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); overflow: auto; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { padding: .2em 1em; border-left: 3px solid var(--purple); color: var(--muted); }
.markdown table { border-collapse: collapse; display: block; overflow: auto; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: 7px 12px; }
.markdown hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.markdown .anchor { display: none; }

/* ---------- chargement ---------- */
.skeleton { border-radius: var(--radius); min-height: 150px; background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%); background-size: 300% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--border); }
.skeleton.line { min-height: 14px; border-radius: 6px; margin-bottom: 10px; border: 0; }
@keyframes shimmer { to { background-position: -150% 0; } }
.note { font-size: .82rem; color: var(--dim); margin-top: 14px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--dim); font-size: .88rem; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
footer nav { display: flex; gap: 18px; }
.foot-legal { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .82rem; }
.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { color: var(--dim); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 10px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: .9rem; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Effets de mouvement (activés par assets/js/fx.js)
   ========================================================== */
/* apparition au défilement — utilise translate/rotate pour laisser transform à l'inclinaison */
.fx section .container, .fx main.container { perspective: 1400px; }
.fx .fx-r {
  opacity: 0; translate: 0 28px; rotate: x 9deg; transform-origin: 50% 100%;
  transition: opacity .7s ease var(--fx-d, 0ms), translate .85s cubic-bezier(.2, .8, .2, 1) var(--fx-d, 0ms), rotate .85s cubic-bezier(.2, .8, .2, 1) var(--fx-d, 0ms),
              transform .5s cubic-bezier(.2, .8, .2, 1), border-color .15s, box-shadow .3s;
}
.fx .fx-r.fx-in { opacity: 1; translate: 0 0; rotate: none; }

/* inclinaison 3D */
.repo-card, .about-me, .link-card, .facts-grid > div, .ide { position: relative; }
.fx .repo-card, .fx .about-me, .fx .ide, .fx .moon, .fx .link-card, .fx .facts-grid > div {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.fx .fx-tilt { transition-property: opacity, translate, rotate, transform, border-color, box-shadow; transition-duration: .7s, .85s, .85s, .12s, .15s, .3s; transition-timing-function: ease-out; }
.fx .repo-card:hover, .fx .link-card:hover, .fx .facts-grid > div:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.fx .repo-card.fx-tilt, .fx .link-card.fx-tilt { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(155, 92, 255, .25); }
.fx .ide.fx-tilt, .fx .moon.fx-tilt, .fx .about-me.fx-tilt { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.fx-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .35s;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .09), transparent 42%);
}
.fx-tilt > .fx-glare { opacity: 1; }
.facts-grid > div:hover b { color: var(--cyan); }

/* parallaxe de l'accueil */
.fx .hero .avatar { translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -14px); transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.fx .hero .float { transition: translate .6s cubic-bezier(.2, .8, .2, 1), scale .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s, border-color .4s, box-shadow .5s; }
.fx .hero .float.f1 { translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 24px); }
.fx .hero .float.f2 { translate: calc(var(--px, 0) * 40px) calc(var(--py, 0) * 30px); }
.fx .hero .float.f3 { translate: calc(var(--px, 0) * 24px) calc(var(--py, 0) * 34px); }
.fx .hero h1 { translate: calc(var(--px, 0) * -8px) 0; transition: translate .6s cubic-bezier(.2, .8, .2, 1); }

/* parallaxe Moon RP */
.fx .moon-sky { scale: 1.1; translate: calc(var(--mx, 0) * -22px) calc(var(--ms, 0) * 34px + var(--my, 0) * -10px); transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.fx .moon-icon { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 14px); transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.fx .moon h2 { translate: calc(var(--mx, 0) * 8px) 0; transition: translate .6s cubic-bezier(.2, .8, .2, 1); }
.moon-job { transition: border-color .15s, background .15s, translate .25s; }
.moon-job:hover { translate: 4px 0; }

/* éditeur de code : les lignes apparaissent une à une, puis un curseur clignote */
.fx .ide-code li { animation: ideLine .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.fx .ide:not(.fx-in) .ide-code li { animation-play-state: paused; }
@keyframes ideLine { from { opacity: 0; transform: translateX(-12px); } }
.ide-caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: var(--pink); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ide-tabs button { transition: color .15s, background .15s; }

/* barre des langages qui se remplit */
.fx .about-me .lang-bar { clip-path: inset(0 100% 0 0 round 6px); transition: clip-path 1.3s cubic-bezier(.2, .8, .2, 1) .35s; }
.fx .about-me.fx-in .lang-bar { clip-path: inset(0 0 0 0 round 6px); }

.fx-reduce .fx-r { opacity: 1 !important; translate: none !important; rotate: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .about, .repo-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(320px, 74vw); }
  .float.f2 { left: -8%; }
  .links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px 5vw 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .links, .lang-list { grid-template-columns: 1fr; }
  section { padding: 52px 0; }

  /* haut de page sur téléphone : logo compact, texte, puis les 3 infos en cartes */
  .hero { padding: 28px 0 36px; }
  .hero .container { gap: 0; }
  .hero-visual { display: contents; }
  .hero .avatar {
    position: relative; inset: auto; order: -2; justify-self: center;
    width: 132px; height: 132px; margin: 0 0 26px;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--purple), 0 18px 50px -14px rgba(255, 46, 147, .6);
  }
  .hero h1 { font-size: 2.05rem; text-align: center; }
  .hero h1 .wordmark { font-size: 1.15em; margin-bottom: 10px; }
  .hero .lead { font-size: 1rem; margin: 14px auto 22px; text-align: center; }
  .hero .actions { justify-content: center; }
  .hero .actions .btn { flex: 1 1 140px; justify-content: center; white-space: nowrap; padding: 12px 14px; }
  .hero .meta { justify-content: center; gap: 8px 18px; margin-top: 22px; font-size: .86rem; }
  /* les 3 infos se superposent dans la même case et tournent l'une après l'autre */
  .float {
    position: static; grid-row: 3; grid-column: 1; align-self: start; width: 100%; max-width: none !important; margin-top: 28px;
    animation: none; translate: none !important; scale: none !important; white-space: normal;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 12px 14px;
    opacity: 0; pointer-events: none; transform-origin: 50% 50% -30px;
    transform: perspective(700px) rotateX(-75deg) translateY(8px);
    transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  }
  .fx .hero .float { transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .hero-visual.spot .float:not(.is-active) { opacity: 0; filter: none; }
  .hero-visual.spot .float.is-active { box-shadow: none; border-color: var(--border-2); }
  .float.is-active { opacity: 1; pointer-events: auto; transform: none; }
  .float.is-out { opacity: 0; transform: perspective(700px) rotateX(75deg) translateY(-8px); }
  .f-dots { display: flex; grid-row: 4; grid-column: 1; justify-content: center; gap: 6px; margin-top: 12px; }
  .float small { grid-column: 1 / -1; }
  .float.f1 br { display: none; }
  .float.f1 .muted { justify-self: end; font-size: .8rem; }
  .float.f2 span, .float.f3 > span:last-child { grid-column: 1 / -1; }
  .float.f3 { display: block; }
  .float.f3 .dot { vertical-align: 1px; }

  /* contact et bas de page */
  .link-card { padding: 12px 14px; }
  .link-card .ico { width: 36px; height: 36px; }
  .link-card small { word-break: break-all; }
  footer { padding: 24px 0 28px; }
  footer .container { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  footer nav { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .foot-legal { flex-direction: column; justify-content: center; text-align: center; }
  .lg-links { justify-content: center; }
  .section-head { margin-bottom: 18px; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { flex: 1; padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
