/* Leyth — leyth.xyz
   Une carte sur la ville de nuit, puis un dossier « En savoir plus » qui s'ouvre par-dessus.
   Un seul thème : noir, blanc, verre sombre. Jamais de défilement. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg: #050506;
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .42);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .15);
  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .09);
  --surface: rgba(16, 16, 19, .5);
  --blue: #0866ff;
  --blue-soft: #4d94ff;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 2.6vw, 34px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--faint); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font: inherit;
  font-size: 11px;
}

/* ================= Fond vidéo ================= */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #050506; }
.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.6) contrast(1.08);
  transform: scale(1.03);
  transition: filter 1s var(--ease), transform 1.4s var(--ease);
}
.bg__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(5, 5, 6, 0) 0%, rgba(5, 5, 6, .38) 55%, rgba(5, 5, 6, .9) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, .55) 0%, rgba(5, 5, 6, 0) 22%, rgba(5, 5, 6, 0) 70%, rgba(5, 5, 6, .8) 100%);
  transition: background-color .8s ease;
}
.bg__grain {
  position: absolute;
  inset: -50%;
  opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
  pointer-events: none;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
}
body[data-view='dossier'] .bg__video { filter: grayscale(1) brightness(.34) contrast(1.05); transform: scale(1.1); }
body[data-view='dossier'] .bg__shade { background-color: rgba(5, 5, 6, .35); }

.trail { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

/* ================= Boutons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 620;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .3s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn--light { background: #fff; color: #0a0a0c; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn--light:hover { background: #e9e9ee; box-shadow: 0 12px 36px -10px rgba(255, 255, 255, .5); }
.btn--light svg { transition: transform .3s var(--ease); }
.btn--light:hover svg { transform: translateX(3px); }
.btn--glass {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

.round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 16, 19, .6);
  border: 1px solid var(--line-2);
  transition: background-color .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.round:hover { background: rgba(255, 255, 255, .1); }
.round:active { transform: scale(.94); }
.round--ghost { background: var(--glass); }

.count {
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 16, 19, .6);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Bulles d'aide (souris seulement) */
@media (hover: hover) {
  [data-tip] { position: relative; }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(18, 18, 21, .94);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 560;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
    z-index: 5;
  }
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

/* ================= La carte ================= */
.card {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--pad);
  padding-bottom: env(safe-area-inset-bottom);
  transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s ease, visibility 0s 0s;
}
body[data-view='dossier'] .card {
  opacity: 0;
  transform: scale(.94);
  filter: blur(8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s ease, visibility 0s .6s;
}
.card__top {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__brand img { height: 25px; width: auto; }
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color .2s ease;
}
.chip-link:hover { background: rgba(255, 255, 255, .12); }
.chip-link svg { width: 16px; height: 16px; }

.card__body {
  width: min(100%, 460px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.1vh, 20px);
  text-align: center;
  min-height: 0;
}
.card__body > * { animation: rise .8s var(--ease) both; }
.card__body > *:nth-child(2) { animation-delay: .06s; }
.card__body > *:nth-child(3) { animation-delay: .12s; }
.card__body > *:nth-child(4) { animation-delay: .18s; }
.card__body > *:nth-child(5) { animation-delay: .24s; }
.card__body > *:nth-child(6) { animation-delay: .3s; }
html:not(.is-ready) .card__body > * { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.me { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.me__avatar {
  width: clamp(92px, 14vh, 118px);
  aspect-ratio: 1;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .3));
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .03), 0 24px 60px -14px rgba(0, 0, 0, .9), 0 0 70px rgba(255, 255, 255, .1);
}
.me__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #111; }
.me__name {
  font-size: clamp(38px, 6.4vh, 52px);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1;
  text-shadow: 0 0 28px rgba(255, 255, 255, .35);
}
.me__real { font-size: 14.5px; color: var(--muted); }

.badges {
  display: inline-flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.badges li {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  cursor: default;
  transition: background-color .2s ease;
}
.badges li:hover { background: rgba(255, 255, 255, .08); }
.badges svg { width: 17px; height: 17px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .5)); }

.typing {
  min-height: 1.5em;
  font-size: 16px;
  font-weight: 520;
  color: rgba(255, 255, 255, .9);
}
.typing__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -.15em;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.discord {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 390px);
  padding: 12px 12px 12px 12px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  text-align: left;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
  transition: border-color .25s ease, transform .25s var(--ease), background-color .25s ease;
}
.discord:hover { border-color: rgba(255, 255, 255, .26); background: rgba(22, 22, 26, .6); transform: translateY(-2px); }
.discord__avatar { position: relative; flex: none; width: 56px; height: 56px; }
.discord__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.discord__status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 3.5px solid #141417;
  background: radial-gradient(circle at 28% 28%, #141417 0 37%, transparent 39%), #f0b232;
}
.discord__txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.discord__name { display: flex; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 680; letter-spacing: -.01em; }
.discord__name img { width: 18px; height: 18px; object-fit: contain; }
.discord__sub { font-size: 13.5px; font-weight: 560; color: var(--muted); }
.discord__join {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 620;
  transition: background-color .2s ease, color .2s ease;
}
.discord__join svg { width: 16px; height: 16px; }
.discord:hover .discord__join { background: #fff; color: #0a0a0c; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease;
}
.links a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.links svg { width: 21px; height: 21px; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .3)); }

.card__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 4px; }

.card__foot {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
}
.card__hint { display: flex; align-items: center; gap: 6px; }

/* ================= Le dossier ================= */
.sheet {
  position: fixed;
  z-index: 3;
  top: clamp(10px, 2.2vh, 24px);
  bottom: clamp(10px, 2.2vh, 24px);
  left: 50%;
  width: min(1320px, calc(100vw - 2 * clamp(10px, 2.2vw, 28px)));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--pad);
  border-radius: 28px;
  background: rgba(11, 11, 13, .66);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  opacity: 0;
  transform: translate(-50%, 24px) scale(.985);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet:focus { outline: none; }
.sheet.is-open { opacity: 1; transform: translate(-50%, 0); }

.sheet__top {
  position: relative;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}
.sheet__brand img { height: 23px; width: auto; }
.sheet__x { margin-left: auto; }

.tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.tabs__glow {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #fff;
  transition: transform .45s var(--ease), width .45s var(--ease);
  pointer-events: none;
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 580;
  color: var(--muted);
  transition: color .3s ease;
}
.tab svg { display: none; }
.tab:hover { color: var(--text); }
.tab[aria-current='page'] { color: #0a0a0c; }

.stage { position: relative; min-height: 0; }
.panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  gap: clamp(28px, 4.6vw, 72px);
  padding: clamp(6px, 1.6vh, 20px) clamp(0px, 1.4vw, 18px) clamp(12px, 2.6vh, 28px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.panel::-webkit-scrollbar { display: none; }
.panel[hidden] { display: none; }
.panel.is-in > * { animation: rise .6s var(--ease) both; }
.panel.is-in > *:nth-child(2) { animation-delay: .07s; }
.panel.is-in > *:nth-child(3) { animation-delay: .12s; }
.panel.is-out { animation: fade-out .18s ease both; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-6px); } }

.sheet__foot {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
  border-top: 1px solid var(--line);
}
.sheet__keys { display: flex; align-items: center; gap: 6px; }

/* Textes communs */
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.h-xl, .h-lg { font-weight: 730; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.h-xl { font-size: clamp(30px, 3.5vw, 52px); }
.h-lg { font-size: clamp(26px, 2.6vw, 38px); }
.lead { max-width: 34em; font-size: clamp(15px, 1.12vw, 17px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.lead--sm { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 520;
  color: var(--muted);
}

/* ---------- Moi ---------- */
.panel--me { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.me2 { display: grid; gap: clamp(16px, 2.4vh, 24px); align-content: center; }
.who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.who img { width: 28px; height: 28px; border-radius: 50%; }
.who b { color: var(--text); font-weight: 620; }
.facts { display: flex; gap: clamp(18px, 2.6vw, 40px); padding-top: clamp(14px, 2vh, 20px); border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 2px; }
.facts b { font-size: clamp(18px, 1.55vw, 22px); font-weight: 720; letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--faint); }
.tags--tools { max-width: 36em; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.tile {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 2.6vh, 26px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.tile:hover { background: var(--glass-2); border-color: var(--line-2); }
.tile b { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.tile > span:last-child { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: #fff;
}
.ico svg { width: 20px; height: 20px; }

/* ---------- Projets ---------- */
.panel--projects { grid-template-columns: 290px minmax(0, 1fr); align-items: stretch; }
.plist { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.plist__items { display: grid; gap: 6px; }
.pitem {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-align: left;
  transition: background-color .25s ease, border-color .25s ease;
}
.pitem:hover { background: rgba(255, 255, 255, .04); }
.pitem[aria-selected='true'] { background: var(--glass-2); border-color: var(--line-2); }
.pitem__logo { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.pitem__logo--lf { padding: 7px; background: #000; border: 1px solid var(--line-2); }
.pitem__logo--n9 { display: grid; place-items: center; background: #fff; color: #e63946; font-size: 15px; font-weight: 800; letter-spacing: -.04em; }
.pitem__txt { display: grid; min-width: 0; }
.pitem__txt b { font-size: 15.5px; font-weight: 640; letter-spacing: -.01em; }
.pitem__txt small { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist__more {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed var(--line-2);
  transition: background-color .25s ease, border-color .25s ease;
}
.plist__more:hover { background: var(--glass); border-color: rgba(255, 255, 255, .26); border-style: solid; }
.plist__more > svg:first-child { width: 40px; height: 40px; color: #fff; }
.plist__more span { display: grid; flex: 1; min-width: 0; }
.plist__more b { font-size: 15px; font-weight: 640; }
.plist__more small { font-size: 13px; color: var(--faint); }
.plist__arrow { width: 16px; height: 16px; color: var(--faint); transition: transform .3s var(--ease); }
.plist__more:hover .plist__arrow { transform: translateX(3px); color: var(--text); }

.pview { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; }
.project {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 22px);
  min-height: 0;
  container-type: size;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s .45s;
}
.project.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.project.is-on .frame img { animation: settle .9s var(--ease) both; }
@keyframes settle { from { transform: scale(1.03); } }
.frame {
  margin: 0;
  width: 100%;
  width: min(100cqw, calc((100cqh - 170px) * 1.6));
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111114;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  flex: none;
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__body { width: min(100cqw, calc((100cqh - 170px) * 1.6)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.project__head h3 { min-width: 0; line-height: 1.15; overflow-wrap: anywhere; }
.project__head .btn { flex: none; }
.project h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 720; letter-spacing: -.025em; }
.project p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 62em; }
.pview__nav { display: none; }

/* ---------- Hadher ---------- */
.panel--hadher { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-items: stretch; gap: clamp(14px, 2.2vh, 22px); }
.hx__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hx__intro { display: grid; gap: 8px; max-width: 40em; }
.hx__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.filters button {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 580;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.filters button:hover { color: var(--text); }
.filters button[aria-selected='true'] { background: #fff; color: #0a0a0c; }

.works {
  --cols: 3;
  --cw: 300px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cw));
  grid-auto-rows: auto;
  justify-content: center;
  align-content: center;
  gap: 14px;
  min-height: 0;
}
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .3s var(--ease), background-color .25s ease;
}
.work[hidden] { display: none; }
.work.is-in { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.work:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.work__img { flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: #111114; }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.work:hover .work__img img { transform: scale(1.035); }
.work__txt { display: grid; gap: 1px; padding: 10px 14px 12px; flex: none; }
.work__txt b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.work__txt small { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__go {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(10, 10, 12, .7);
  border: 1px solid var(--line-2);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s ease, transform .25s var(--ease);
}
.work:hover .work__go, .work:focus-visible .work__go { opacity: 1; transform: none; }
.hx__nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hx__nav[hidden] { display: none; }

/* ---------- Contact ---------- */
.panel--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact__copy { display: grid; gap: clamp(16px, 2.6vh, 26px); align-content: center; }
.note { font-size: 14px; color: var(--faint); }
.note b { color: var(--muted); font-weight: 600; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.social:hover { background: var(--glass-2); border-color: var(--line-2); transform: translateY(-2px); }
.social:active { transform: scale(.98); }
.social svg { width: 22px; height: 22px; color: var(--text); }
.social span { display: grid; min-width: 0; }
.social b { font-size: 15px; font-weight: 620; }
.social small { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= Verre liquide =================
   Chaque surface : verre clair qui floute et ravive ce qu'il y a derrière, bord lumineux (plus fort en haut à gauche),
   ombre intérieure en bas pour l'épaisseur, et un reflet qui suit la souris (--mx / --my, posés par site.js). */
@property --lg-a { syntax: '<number>'; inherits: false; initial-value: 0; }
:root {
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 46%, rgba(255, 255, 255, .025) 70%, rgba(255, 255, 255, .07) 100%);
  --lg-fill-in: linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .045) 100%);
  --lg-filter: blur(16px) saturate(190%) brightness(1.08);
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -1px 0 rgba(255, 255, 255, .07),
    inset 0 12px 20px -14px rgba(255, 255, 255, .28),
    inset 0 -14px 22px -16px rgba(0, 0, 0, .55),
    0 16px 36px -16px rgba(0, 0, 0, .75);
  --lg-shadow-in:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -10px 18px -14px rgba(0, 0, 0, .45);
  --lg-rim: linear-gradient(140deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .12) 26%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, .05) 68%, rgba(255, 255, 255, .34) 100%);
  --lg-light: radial-gradient(180px circle at var(--mx, 50%) var(--my, -60%), rgba(255, 255, 255, calc(.2 * var(--lg-a))), rgba(255, 255, 255, 0) 70%);
}

/* Surfaces posées sur la vidéo : flou + reflet */
.chip-link, .btn--glass, .round, .count, .badges, .discord, .links a {
  position: relative;
  background: var(--lg-light), var(--lg-fill);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-filter);
  backdrop-filter: var(--lg-filter);
  transition: --lg-a .35s ease, transform .3s var(--ease), box-shadow .3s ease, color .2s ease;
}
/* Surfaces dans le dossier (déjà flouté derrière) : même verre, sans second flou */
.discord__join, .tabs, .filters, .tile, .work, .social, .who, .pitem, .plist__more, .tags li {
  position: relative;
  background: var(--lg-light), var(--lg-fill-in);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: var(--lg-shadow-in);
  transition: --lg-a .35s ease, transform .3s var(--ease), box-shadow .3s ease, color .2s ease, opacity .2s ease;
}
.tabs { position: absolute; } /* reste centrée dans la barre du haut (fixée en bas sur téléphone) */
.pitem:not([aria-selected='true']), .plist__more { background: var(--lg-light); box-shadow: none; border-color: transparent; }
.plist__more { border: 1px dashed var(--line-2); }
.pitem[aria-selected='true'] { background: var(--lg-light), var(--lg-fill-in); border-color: rgba(255, 255, 255, .05); box-shadow: var(--lg-shadow-in); }

/* Le bord lumineux */
:is(.chip-link, .btn--glass, .round, .count, .badges, .discord, .links a, .discord__join, .tabs, .filters, .tile, .social, .who, .pitem[aria-selected='true'])::before,
.sheet::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--lg-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
:is(.discord__join, .tabs, .filters, .tile, .social, .who, .pitem[aria-selected='true'])::before { opacity: .55; }
.work::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .06);
  pointer-events: none;
}

/* Survol : le reflet s'allume, le verre se soulève un peu */
:is(.chip-link, .btn--glass, .round, .badges, .discord, .links a, .discord__join, .tabs, .filters, .tile, .work, .social, .pitem, .plist__more):hover { --lg-a: 1; }
:is(.chip-link, .btn--glass, .round, .discord, .links a):hover { background: var(--lg-light), var(--lg-fill); border-color: rgba(255, 255, 255, .1); }
:is(.discord__join, .tile, .work, .social, .pitem[aria-selected='true']):hover { background: var(--lg-light), var(--lg-fill-in); }
.pitem:not([aria-selected='true']):hover, .plist__more:hover { background: var(--lg-light), rgba(255, 255, 255, .03); }
:is(.chip-link, .btn--glass, .discord, .links a):hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(255, 255, 255, .1),
    inset 0 14px 22px -14px rgba(255, 255, 255, .34),
    inset 0 -14px 22px -16px rgba(0, 0, 0, .5),
    0 22px 44px -18px rgba(0, 0, 0, .8);
}
.discord:hover .discord__join {
  background: linear-gradient(180deg, #fff 0%, #e4e4ea 100%);
  color: #0a0a0c;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 5px rgba(0, 0, 0, .14), 0 6px 16px -6px rgba(255, 255, 255, .35);
}

/* Les éléments blancs (bouton principal, onglet actif, filtre actif) deviennent du verre blanc */
.btn--light {
  background: linear-gradient(180deg, #fff 0%, #f1f1f4 52%, #e2e2e8 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(0, 0, 0, .14), 0 12px 32px -12px rgba(255, 255, 255, .42);
}
.btn--light:hover {
  background: linear-gradient(180deg, #fff 0%, #f6f6f8 52%, #e9e9ee 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(0, 0, 0, .12), 0 14px 40px -12px rgba(255, 255, 255, .55);
}
.tabs__glow, .filters button[aria-selected='true'] {
  background: linear-gradient(180deg, #fff 0%, #ededf1 55%, #dedee5 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 5px rgba(0, 0, 0, .14), 0 6px 18px -8px rgba(255, 255, 255, .45);
}

/* Le dossier : une grande plaque de verre sombre */
.sheet {
  background: linear-gradient(180deg, rgba(30, 30, 35, .6) 0%, rgba(12, 12, 14, .66) 38%, rgba(9, 9, 11, .72) 100%);
  border-color: rgba(255, 255, 255, .05);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 24px 60px -40px rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(34px) saturate(170%) brightness(1.04);
  backdrop-filter: blur(34px) saturate(170%) brightness(1.04);
}
.sheet::before { opacity: .45; }
.frame { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* Avatar : anneau de verre */
.me__avatar {
  background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .1) 38%, rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, .5));
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 60px -14px rgba(0, 0, 0, .9), 0 0 80px rgba(255, 255, 255, .12);
}

/* ================= Écrans moyens ================= */
@media (max-width: 1100px) {
  .panel--projects { grid-template-columns: 250px minmax(0, 1fr); }
  .pitem__txt small, .plist__more small { display: none; }
  .sheet__brand { display: none; }
}

/* ================= Téléphone et tablette en portrait ================= */
@media (max-width: 820px) {
  :root { --pad: 18px; --radius: 16px; }

  /* Carte */
  .card__top { height: 62px; }
  .card__brand img { height: 21px; }
  .chip-link { height: 34px; padding: 0 13px; font-size: 13px; }
  .card__body { gap: clamp(10px, 1.9vh, 16px); }
  .card__foot { height: 44px; justify-content: center; }
  .card__hint { display: none; }
  .links { gap: 6px; flex-wrap: nowrap; }
  .links a { width: clamp(34px, calc((100vw - 2 * var(--pad) - 42px) / 8), 44px); height: auto; aspect-ratio: 1; border-radius: 13px; }
  .links svg { width: 19px; height: 19px; }
  .badges li { width: 33px; height: 32px; }
  .badges svg { width: 16px; height: 16px; }
  .typing { font-size: 15px; }
  .discord { padding: 10px; gap: 12px; border-radius: 20px; }
  .discord__avatar { width: 50px; height: 50px; }
  .card__cta { width: 100%; }
  .card__cta .btn { flex: 1; padding: 0 14px; }

  /* Dossier en plein écran */
  .sheet {
    inset: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
    transform: translateY(24px);
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    background: rgba(9, 9, 11, .74);
  }
  .sheet.is-open { transform: none; }
  .sheet::before { display: none; }
  .sheet__top { height: 60px; }
  .sheet__brand { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .sheet__brand img { height: 20px; }
  .sheet__x { display: none; }
  .round { width: 38px; height: 38px; }
  .sheet__foot { display: none; }

  .tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: none;
    justify-content: space-between;
    padding: 6px;
    border-radius: 26px;
    background: var(--lg-light), linear-gradient(180deg, rgba(58, 58, 66, .55) 0%, rgba(24, 24, 28, .7) 50%, rgba(18, 18, 22, .78) 100%);
    border-color: rgba(255, 255, 255, .06);
    box-shadow: var(--lg-shadow);
    -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.06);
    backdrop-filter: blur(22px) saturate(190%) brightness(1.06);
  }
  .tabs::before { opacity: .8; }
  .tabs__glow {
    top: 6px;
    bottom: 6px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .08) 60%, rgba(255, 255, 255, .12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -6px 12px -8px rgba(0, 0, 0, .4), 0 6px 16px -8px rgba(0, 0, 0, .6);
  }
  .tab { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0; border-radius: 18px; font-size: 11.5px; font-weight: 600; }
  .tab svg { display: block; width: 21px; height: 21px; }
  .tab[aria-current='page'] { color: #fff; }

  .panel { grid-template-columns: minmax(0, 1fr) !important; align-content: center; gap: clamp(18px, 3vh, 26px); padding: 4px 0 12px; }
  .h-xl { font-size: clamp(28px, 8vw, 38px); }
  .h-lg { font-size: clamp(25px, 7vw, 32px); }
  .lead { font-size: 15px; line-height: 1.55; }
  .btn { height: 44px; padding: 0 18px; font-size: 14.5px; }
  .actions .btn { flex: 1; }

  /* Moi */
  .me2 { gap: 14px; }
  .me2 .who, .tags--tools { display: none; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .facts b { font-size: 15.5px; white-space: nowrap; }
  .facts span { font-size: 11.5px; line-height: 1.3; }
  .skills { gap: 8px; }
  .tile { padding: 14px; gap: 4px; border-radius: 14px; }
  .tile b { font-size: 14.5px; }
  .tile > span:last-child { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .ico { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 4px; }
  .ico svg { width: 17px; height: 17px; }
  .tags--tools li { font-size: 12px; padding: 3px 9px; }

  /* Projets */
  .panel--projects { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 14px; overflow: hidden; }
  .plist { gap: 0; }
  .plist .eyebrow, .plist__more { display: none; }
  .plist__items { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); scrollbar-width: none; }
  .plist__items::-webkit-scrollbar { display: none; }
  .pitem { width: auto; flex: none; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border-color: var(--line); }
  .pitem:not([aria-selected='true']) { border-color: var(--line); background: rgba(255, 255, 255, .03); }
  .pitem__logo { width: 28px; height: 28px; border-radius: 50%; }
  .pitem__logo--lf { padding: 5px; }
  .pitem__logo--n9 { font-size: 11px; }
  .pitem__txt b { font-size: 14px; white-space: nowrap; }
  .project { container-type: normal; justify-content: flex-start; gap: 14px; }
  .frame, .project__body { width: 100%; }
  .project h3 { font-size: 21px; }
  .project p { font-size: 14.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
  .pview__nav { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 6px; z-index: 2; }
  .pview__nav .round { display: none; }

  /* Hadher */
  .panel--hadher { align-content: stretch; gap: 12px; overflow: hidden; }
  .hx__head { gap: 12px; }
  .hx__intro .lead { display: none; }
  .hx__actions { width: 100%; flex-wrap: nowrap; }
  .filters { flex: 1; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 1; padding: 0 10px; font-size: 13px; }
  .hx__actions .btn { display: none; }
  .works { gap: 10px; }
  .work { border-radius: 14px; }
  .work__txt { padding: 8px 10px 10px; }
  .work__txt b { font-size: 13.5px; }
  .work__txt small { font-size: 11.5px; }
  .work__go { display: none; }

  /* Contact */
  .contact__copy { gap: 14px; }
  .socials { gap: 8px; }
  .social { padding: 11px 12px; gap: 11px; border-radius: 14px; }
  .social svg { width: 20px; height: 20px; }
  .social b { font-size: 14px; }
  .social small { font-size: 12px; }
}

/* Téléphones courts : on garde l'essentiel */
@media (max-width: 820px) and (max-height: 760px) {
  .tags--tools, .note, .who { display: none; }
  .panel { gap: 16px; }
  .me__real { font-size: 13.5px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .project .tags { display: none; }
  .project p { -webkit-line-clamp: 4; }
  .tile .ico { display: none; }
  .tile > span:last-child { -webkit-line-clamp: 2; }
  .lead { font-size: 14.5px; }
  .panel { gap: 14px; }
  .h-xl { font-size: 27px; }
  .tile { padding: 12px; }
  .me2, .contact__copy { gap: 12px; }
  .card__foot { display: none; }
  .card { grid-template-rows: auto minmax(0, 1fr); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .me__avatar { margin-bottom: 6px; }
  .discord__avatar { width: 44px; height: 44px; }
}
@media (max-width: 820px) and (max-height: 620px) {
  .facts { display: none; }
  .project p { -webkit-line-clamp: 3; }
  .me__real { display: none; }
  .card__cta .btn--glass { display: none; }
}

/* Ordinateurs peu hauts (ex. 1366 x 650 utiles) */
@media (min-width: 821px) and (max-height: 760px) {
  .card__top { height: 64px; }
  .card__foot { height: 42px; }
  .sheet__top { height: 64px; }
  .sheet__foot { height: 40px; }
  .tags--tools { display: none; }
  .tile { padding: 16px; }
  .tile > span:last-child { font-size: 13.5px; }
  .me__avatar { margin-bottom: 4px; }
}
@media (min-width: 821px) and (max-height: 680px) {
  .card__cta .btn--glass { display: none; }
  .facts { display: none; }
}

/* Téléphone couché */
@media (max-height: 480px) and (orientation: landscape) {
  .me__real, .typing, .card__foot { display: none; }
  .card__body { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg__grain { animation: none; }
}
