/* ======================================================
   KOVA · feuille de style
   Les couleurs principales sont dans :root juste en dessous.
   ====================================================== */
/* ==== Polices (dossier fonts/) ==== */
@font-face {
  font-family: "Geist";
  src: url(fonts/geist.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(fonts/geist-mono-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(fonts/geist-mono-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
body {
  margin: 0;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}

/* Layout: page de dev en noir profond, une seule couleur d'accent violette, sections numérotées, couches du site qui se séparent au scroll */
:root {
  --bg: #08070b;
  --bg-2: #111017;
  --bg-3: #1a1823;
  --line: #2a2735;
  --fg: #eeecf4;
  --muted: #8e8a9e;
  --violet: #8b5cf6;
  --violet-hi: #b79cff;
  --violet-lo: #8b5cf61f;
  --ok: #4ade80;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
.g {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--violet-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: var(--violet);
  padding: 8px 12px;
}
::selection {
  background: var(--violet);
  color: #fff;
}

/* header */
header {
  position: sticky;
  overflow: visible;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #08070bcc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.logo b {
  color: var(--violet);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
header nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
}
header nav a:hover {
  color: var(--fg);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.92rem/1 var(--sans);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.btn:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
}
.btn.pri {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.btn.pri:hover {
  background: #7c4deb;
}
@media (max-width: 760px) {
  header nav {
    display: none;
  }
}

/* hero */
.hero {
  padding-block: clamp(56px, 10vw, 120px) 56px;
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, #8b5cf633, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px #4ade8022;
}
h1 {
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 28px 0 0;
  max-width: 15ch;
  text-wrap: balance;
}
h1 .v {
  color: var(--violet-hi);
}
h1 .rot {
  display: inline-block;
  color: var(--violet);
  min-width: 6ch;
}
h1 .rot::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
  color: var(--violet-hi);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tags span {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
}
.tags span::before {
  content: "/";
  color: var(--violet);
  margin-right: 6px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.stats div {
  padding: 20px 0 0;
}
.stats strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stats strong sup {
  color: var(--violet);
  font-size: 0.5em;
  vertical-align: top;
  margin-left: 2px;
}
.stats span {
  color: var(--muted);
}

/* clients marquee */
.clients {
  border-block: 1px solid var(--line);
  padding-block: 28px;
  overflow: hidden;
}
.clients .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
}
.track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slide 40s linear infinite;
}
.clients:hover .track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.client {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.client:hover {
  border-color: var(--violet);
}
.client i {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font: 600 0.8rem var(--mono);
  background: var(--violet-lo);
  color: var(--violet-hi);
  font-style: normal;
}
.client small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  display: block;
  line-height: 1.2;
}

/* sections */
section.s {
  padding-block: clamp(72px, 10vw, 120px);
}
.sh {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}
.num {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.82rem;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 600;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.sh p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* terminal */
.term {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 760px;
  margin-inline: auto;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.term-bar span {
  margin-left: auto;
}
.term pre {
  margin: 0;
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--muted);
}
.term {
  max-width: 860px;
}
.term-body {
  padding: 20px 22px 6px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
  height: 340px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-in {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 22px 20px;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.term-in input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: inherit;
  caret-color: var(--violet-hi);
}
.term-in input::placeholder {
  color: #5a566a;
}
.term .p {
  color: var(--violet-hi);
  white-space: nowrap;
}
.term .k {
  color: var(--fg);
}
.term .o {
  color: var(--ok);
}
.term .e {
  color: #f87171;
}
.term .bar {
  color: var(--violet);
}
.hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.hints button {
  font: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.hints button:hover {
  border-color: var(--violet);
  color: var(--violet-hi);
}

/* méthode — couches */
.method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
}
.layers-list {
  display: grid;
  gap: 4px;
  align-content: center;
}
.lay {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s;
}
.lay h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 550;
  color: inherit;
}
.lay p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  grid-column: 2/4;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s;
}
.lay b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--violet-hi);
}
.lay.on {
  color: var(--fg);
}
.lay.on p {
  max-height: 6em;
  color: var(--muted);
}
.pin {
  height: 320vh;
  position: relative;
}
.pin-in {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  min-height: calc(100vh - 64px);
  display: grid;
  align-content: center;
  gap: 8px;
  padding-block: 24px;
}
.pin-in .sh {
  margin-bottom: 24px;
}
.progress {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 24px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--violet);
}
#methode {
  padding-block: 24px;
}
.stage-in {
  height: min(440px, 52vh);
  perspective: 1400px;
  display: grid;
  place-items: center;
}
.stack {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4/3;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
}
.plane {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111017e6;
  transition:
    transform 0.12s linear,
    border-color 0.3s;
  display: grid;
  padding: 14px;
  gap: 8px;
}
.plane.on {
  border-color: var(--violet);
}
.p-srv {
  grid-template-columns: repeat(4, 1fr);
}
.p-srv span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, transparent 0 9px, #2a273580 9px 10px);
}
.p-srv span:nth-child(3) {
  border-color: var(--violet);
}
.p-db {
  grid-template-rows: repeat(5, 1fr);
}
.p-db span {
  border-radius: 4px;
  background: var(--bg-3);
}
.p-db span:nth-child(2) {
  background: var(--violet-lo);
  border: 1px solid #8b5cf655;
}
.p-ui {
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto 1fr;
}
.p-ui span {
  border-radius: 6px;
  background: var(--bg-3);
}
.p-ui span:first-child {
  grid-column: 1/3;
  height: 18px;
}
.p-ui span:nth-child(3) {
  background: linear-gradient(135deg, #8b5cf655, #8b5cf611);
}
.p-scr {
  background: var(--bg);
  align-content: center;
  justify-items: start;
  padding: 24px;
}
.p-scr em {
  font-style: normal;
  font-weight: 650;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.p-scr em b {
  color: var(--violet-hi);
}
.p-scr small {
  display: block;
  width: 58px;
  height: 20px;
  border-radius: 99px;
  background: var(--violet);
  margin-top: 8px;
}
@media (max-width: 860px) {
  .method {
    grid-template-columns: minmax(0, 1fr);
  }
  .layers-list {
    order: 2;
  }
  .pin {
    height: auto;
  }
  .pin-in {
    position: static;
    min-height: 0;
  }
  .stage-in {
    height: 340px;
  }
  .progress {
    display: none;
  }
}

/* réalisations */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
}
.shot {
  aspect-ratio: 16/10;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  display: grid;
  grid-template-rows: 28px 1fr;
}
.shot .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.shot .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.shot .bar span {
  margin-left: 10px;
  font: 400 0.68rem var(--mono);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock {
  padding: 7% 8%;
  display: grid;
  gap: 8%;
  align-content: start;
  position: relative;
}
.mock .h {
  height: 18%;
  width: var(--w, 60%);
  min-height: 14px;
  border-radius: 5px;
  background: var(--fg);
  opacity: 0.9;
}
.mock .t {
  height: 6px;
  width: 80%;
  border-radius: 3px;
  background: var(--line);
}
.mock .t2 {
  width: 55%;
}
.mock .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
}
.mock .row span {
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.mock .row span:nth-child(var(--hl,2)) {
  background: var(--violet-lo);
  border-color: var(--violet);
}
.mock .pill {
  width: 24%;
  height: 14px;
  border-radius: 99px;
  background: var(--violet);
}
.fmeta {
  display: grid;
  gap: 14px;
}
.fmeta .top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.fmeta .cat {
  color: var(--violet-hi);
}
.fmeta h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 600;
}
.fmeta p {
  margin: 0;
  color: var(--muted);
}
.fmeta .stack-t {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fmeta .stack-t span {
  font: 400 0.74rem var(--mono);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--muted);
}
.fnav {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.fnav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  cursor: pointer;
  font-size: 1.1rem;
}
.fnav button:hover {
  border-color: var(--violet);
  color: var(--violet-hi);
}
.dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  transition:
    width 0.3s,
    background 0.3s;
}
.dots i.on {
  width: 22px;
  background: var(--violet);
}
@media (max-width: 860px) {
  .feat {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 56px 0 24px;
}
.tabs button {
  font: 500 0.86rem var(--sans);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.tabs button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tabs button sup {
  font-family: var(--mono);
  font-size: 0.68rem;
  margin-left: 4px;
  color: var(--violet-hi);
}
.tabs button[aria-pressed="true"] sup {
  color: var(--violet);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid !important;
  gap: 12px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}
.card .shot {
  grid-template-rows: 20px 1fr;
}
.card .shot .bar span {
  display: none;
}
.card .info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 4px;
  align-items: baseline;
}
.card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
}
.card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* services */
.svc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.svc article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: var(--bg-2);
}
.svc article:nth-child(2) {
  border-color: var(--violet);
  background: linear-gradient(180deg, #8b5cf614, var(--bg-2) 60%);
}
.svc .n {
  font-family: var(--mono);
  color: var(--violet-hi);
  font-size: 0.8rem;
}
.svc h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.svc p {
  margin: 0;
  color: var(--muted);
}
.svc ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.svc li {
  display: flex;
  gap: 10px;
}
.svc li::before {
  content: "+";
  color: var(--violet);
  font-family: var(--mono);
}
@media (max-width: 860px) {
  .svc {
    grid-template-columns: minmax(0, 1fr);
  }
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* compétences */
.sk-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sk-tabs button {
  font: 500 0.86rem var(--sans);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.sk-tabs button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sk {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  transition: border-color 0.2s;
}
.sk:hover {
  border-color: var(--violet);
}
.sk .ic {
  grid-row: 1/3;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
}
.sk .ic svg {
  width: 22px;
  height: 22px;
}
.sk h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
}
.sk .pc {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--violet-hi);
  font-variant-numeric: tabular-nums;
}
.sk .lv {
  grid-column: 2/4;
  display: grid;
  gap: 6px;
}
.sk .lv small {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--bg-3);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: linear-gradient(90deg, #6d3fe0, var(--violet-hi));
  animation: fill 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes fill {
  from {
    width: 0;
  }
}
@media (max-width: 900px) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .skills {
    grid-template-columns: minmax(0, 1fr);
  }
}

.brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--violet);
  border-radius: 10px;
  background: var(--violet-lo);
  transition: background 0.2s;
}
.brand:hover {
  background: #8b5cf633;
}
.brand.host {
  margin-top: 24px;
  max-width: 560px;
  flex-wrap: wrap;
}
.brand.host > span {
  color: var(--fg);
}
.brand.host .mono {
  color: var(--muted);
}
.brand span {
  color: var(--muted);
}
.brand strong {
  color: var(--violet-hi);
  font-weight: 600;
}

/* à propos */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
}
.about .bio {
  display: grid;
  gap: 18px;
  max-width: 60ch;
}
.about .bio p {
  margin: 0;
  color: var(--muted);
}
.about .bio p:first-child {
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1.45;
}
.card-id {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  padding: 24px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.avatar {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--violet);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: -0.04em;
}
.card-id dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
}
.card-id dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.card-id dd {
  margin: 0;
  text-align: right;
}
.chips {
  overflow: hidden;
  margin-top: 48px;
  display: grid;
  gap: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.chips .track {
  animation-duration: 34s;
}
.chips .rev {
  animation-direction: reverse;
}
.chip {
  font: 400 0.86rem var(--mono);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  white-space: nowrap;
  color: var(--muted);
}
.chip:nth-child(4n + 1) {
  color: var(--violet-hi);
  border-color: #8b5cf655;
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* contact */

.contact {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 56px);
  background: radial-gradient(120% 80% at 100% 0%, #8b5cf626, transparent 55%), var(--bg-2);
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.topics button {
  font: 500 0.9rem var(--sans);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.topics button[aria-pressed="true"] {
  border-color: var(--violet);
  background: var(--violet-lo);
  color: var(--violet-hi);
}
.mailbox {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.mailbox code {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  user-select: all;
  overflow-wrap: anywhere;
}
.cline {
  color: var(--muted);
  margin: 20px 0 24px;
  max-width: 50ch;
}
.subject b {
  color: var(--violet-hi);
  font-weight: 500;
}
.reply {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 18px;
}
.reply i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a:hover {
  color: var(--violet-hi);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Halloween (s'enlève tout seul le 1er novembre) ===== */
:root {
  --pumpkin: #ff7a1a;
}
.hw-on .hw-band {
  display: flex;
}
.hw-band {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #1a0e2e, #2a1206, #1a0e2e);
  border-bottom: 1px solid #ff7a1a44;
  padding-block: 8px;
  color: #ffd2ae;
  font-size: 0.82rem;
  text-align: center;
}
.hw-band code {
  font-family: var(--mono);
  color: var(--pumpkin);
  background: #ff7a1a1a;
  padding: 2px 6px;
  border-radius: 5px;
}
.hw-band button {
  background: none;
  border: 0;
  color: #ffd2ae;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
}
.hw-band svg {
  width: 18px;
  height: 18px;
  flex: none;
}
#bats {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  display: none;
}
.hw-on #bats {
  display: block;
}
.spider {
  display: none;
  position: fixed;
  top: 0;
  right: max(28px, calc(env(safe-area-inset-right, 0px) + 28px));
  z-index: 40;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transform-origin: top center;
  animation: swing 4s ease-in-out infinite;
}
.hw-on .spider {
  display: block;
}
.spider .thread {
  display: block;
  width: 1px;
  height: var(--drop, 110px);
  margin: 0 auto;
  background: linear-gradient(#fff0, #ffffff55);
  transition: height 1.2s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.spider svg {
  display: block;
  width: 34px;
  height: 34px;
  margin-top: -2px;
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-3deg);
  }
}
.hw-on .hero h1 .v {
  color: var(--pumpkin);
}
.hw-on .eyebrow i {
  background: var(--pumpkin);
  box-shadow: 0 0 0 4px #ff7a1a22;
  animation: flick 2.6s infinite;
}
@keyframes flick {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  47% {
    opacity: 0.3;
  }
  49% {
    opacity: 1;
  }
  72% {
    opacity: 0.6;
  }
  74% {
    opacity: 1;
  }
}
.pump {
  color: var(--pumpkin);
}
.ghost {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) scale(0.4);
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.ghost.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ghost svg {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 0 30px #8b5cf6aa);
}
@media (max-width: 760px) {
  .spider {
    --drop: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spider,
  .hw-on .eyebrow i {
    animation: none;
  }
}

/* Halloween : détails en plus */
.web {
  position: absolute;
  pointer-events: none;
  display: none;
  width: 150px;
  height: 150px;
  opacity: 0.5;
  z-index: 1;
}
.hw-on .web {
  display: block;
}
.web.tl {
  top: 0;
  left: 0;
}
.web.tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}
.fog {
  display: none;
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -20px;
  height: 140px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 30% 100%, #8b5cf61f, transparent 70%),
    radial-gradient(50% 60% at 75% 100%, #ff7a1a14, transparent 70%);
  filter: blur(10px);
  animation: fog 14s ease-in-out infinite alternate;
}
.hw-on .fog {
  display: block;
}
@keyframes fog {
  to {
    transform: translateX(6%);
  }
}
.hw-on .meter span {
  background: repeating-linear-gradient(110deg, #ff7a1a 0 10px, #ffb347 10px 18px, #eeecf4 18px 24px);
}
.hw-on .mock .pill,
.hw-on .p-scr small {
  background: var(--pumpkin);
}
.hw-on .btn.pri {
  box-shadow: 0 0 0 0 #ff7a1a66;
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  50% {
    box-shadow: 0 0 22px 2px #ff7a1a44;
  }
}
.count {
  font-family: var(--mono);
  color: var(--pumpkin);
}
.tomb {
  display: none;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
}
.hw-on .tomb {
  display: inline-flex;
}
.tomb svg {
  width: 28px;
  height: 32px;
}
.candy {
  position: fixed;
  top: -30px;
  z-index: 95;
  pointer-events: none;
  font: 600 20px var(--mono);
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(540deg);
  }
}
.shake {
  animation: shake 0.5s;
}
@keyframes shake {
  20% {
    transform: translateX(-8px) rotate(-0.5deg);
  }
  40% {
    transform: translateX(8px) rotate(0.5deg);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}
.eyes {
  display: none;
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  gap: 6px;
  opacity: 0;
  transition: opacity 1s;
}
.hw-on .eyes {
  display: flex;
}
.eyes.show {
  opacity: 1;
}
.eyes i {
  width: 10px;
  height: 6px;
  border-radius: 50%;
  background: var(--pumpkin);
  box-shadow: 0 0 10px #ff7a1a;
  animation: blinkeye 4s infinite;
}
@keyframes blinkeye {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fog,
  .hw-on .btn.pri,
  .eyes i {
    animation: none;
  }
  .candy {
    display: none;
  }
}

/* Halloween : encore plus */
.moon {
  display: none;
  position: absolute;
  right: 4%;
  top: 6%;
  width: clamp(90px, 14vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff4e0, #f5d9a8 55%, #d9a866);
  box-shadow:
    0 0 60px 10px #f5d9a833,
    0 0 160px 40px #8b5cf622;
  opacity: 0.85;
}
.moon::before,
.moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #c9965a66;
}
.moon::before {
  width: 18%;
  height: 18%;
  left: 55%;
  top: 30%;
}
.moon::after {
  width: 12%;
  height: 12%;
  left: 30%;
  top: 62%;
}
.hw-on .moon {
  display: block;
}
.witch {
  position: absolute;
  top: 30%;
  left: -120px;
  width: 110px;
  height: 60px;
  opacity: 0;
  pointer-events: none;
}
.witch.fly {
  animation: witch 9s linear forwards;
}
@keyframes witch {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translate(60vw, -60px);
  }
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(120vw, 10px);
  }
}
.drip {
  position: relative;
  display: inline-block;
}
.hw-on .drip::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 88%;
  height: 0.5em;
  background:
    radial-gradient(circle at 10% 0, var(--pumpkin) 30%, transparent 31%) 0 0/20% 100% no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) 12% 0/5% 55% no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) 46% 0/4% 85% no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) 80% 0/5% 40% no-repeat;
  border-radius: 0 0 40% 40%;
  animation: drip 4s ease-in infinite;
  transform-origin: top;
}
@keyframes drip {
  0% {
    transform: scaleY(0.2);
  }
  60%,
  100% {
    transform: scaleY(1);
  }
}
.ember {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 96;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
  animation: ember 0.8s ease-out forwards;
}
@keyframes ember {
  to {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}
.floaty {
  position: fixed;
  top: 30%;
  left: -80px;
  z-index: 35;
  pointer-events: none;
  opacity: 0.8;
  width: 60px;
  animation: floaty 16s linear forwards;
}
@keyframes floaty {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30vw, -40px);
  }
  50% {
    transform: translate(60vw, 20px);
  }
  75% {
    transform: translate(90vw, -30px);
  }
  100% {
    transform: translate(115vw, 0);
  }
}
.torch {
  position: fixed;
  inset: 0;
  z-index: 97;
  pointer-events: none;
  background: radial-gradient(
    circle 160px at var(--mx, 50%) var(--my, 50%),
    transparent 0,
    transparent 60%,
    #000000f2 100%
  );
  display: none;
}
.torch.on {
  display: block;
}
.spooky .hero h1,
.spooky h2 {
  animation: flicker 3s infinite;
}
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  8% {
    opacity: 0.4;
  }
  10% {
    opacity: 1;
  }
  52% {
    opacity: 0.7;
  }
  54% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hw-on .drip::after,
  .spooky h2,
  .spooky .hero h1 {
    animation: none;
  }
  .witch,
  .floaty,
  .ember {
    display: none;
  }
}

/* Halloween : monstres qui surgissent */
.monster {
  position: fixed;
  z-index: 94;
  width: 150px;
  height: 150px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.monster svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px #8b5cf688);
}
.monster.b {
  bottom: 0;
  transform: translateY(110%);
}
.monster.b.up {
  transform: translateY(18%);
}
.monster.l {
  left: 0;
  transform: translateX(-110%) rotate(90deg);
}
.monster.l.up {
  transform: translateX(-18%) rotate(90deg);
}
.monster.r {
  right: 0;
  transform: translateX(110%) rotate(-90deg);
}
.monster.r.up {
  transform: translateX(18%) rotate(-90deg);
}
.monster.gone {
  transition:
    transform 0.2s,
    opacity 0.2s;
  opacity: 0;
}
.poof {
  position: fixed;
  z-index: 95;
  pointer-events: none;
  font: 700 1.4rem var(--sans);
  color: var(--pumpkin);
  animation: poof 0.9s ease-out forwards;
}
@keyframes poof {
  to {
    transform: translateY(-60px) scale(1.4);
    opacity: 0;
  }
}
.hwbar {
  display: none;
  position: fixed;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 93;
  gap: 8px;
  align-items: center;
}
.hw-on .hwbar {
  display: flex;
}
.hwbar span,
.hwbar button {
  font: 500 0.76rem var(--mono);
  background: var(--bg-2);
  border: 1px solid #ff7a1a55;
  color: #ffd2ae;
  border-radius: 999px;
  padding: 8px 12px;
}
.hwbar button {
  cursor: pointer;
}
.hwbar button:hover {
  border-color: var(--pumpkin);
}
@media (prefers-reduced-motion: reduce) {
  .monster {
    transition: none;
  }
}

/* écran d'entrée Halloween (sert à lancer le son) */
.gate {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, #2a1206, #08070b 70%);
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.8s;
}
.gate.out {
  opacity: 0;
  pointer-events: none;
}
.gate .in {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.gate svg {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 0 30px #ff7a1a88);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
.gate h2 {
  color: var(--fg);
  max-width: none;
}
.gate h2 em {
  font-style: normal;
  color: var(--pumpkin);
}
.gate p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.gate .go {
  font: 600 1rem var(--sans);
  background: var(--pumpkin);
  color: #1a0e06;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: 0 0 30px #ff7a1a66;
}
.gate .quiet {
  background: none;
  border: 0;
  color: var(--muted);
  font: 400 0.8rem var(--mono);
  text-decoration: underline;
  cursor: pointer;
}

/* captures des projets */
.shot {
  position: relative;
}
.shot-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.mock {
  overflow: hidden;
}
.shot-go {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font: 500 0.72rem var(--mono);
  background: #08070be6;
  color: var(--fg);
  border: 1px solid var(--violet);
  border-radius: 999px;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.shot-link,
.card {
  display: block;
}
.shot-link:hover .shot-go,
.card:hover .shot-go,
.shot-link:focus-visible .shot-go {
  opacity: 1;
  transform: none;
}
.shot-link .shot {
  transition: border-color 0.2s;
}
.shot-link:hover .shot {
  border-color: var(--violet);
}
.visit {
  justify-self: start;
}
@media (hover: none) {
  .shot-go {
    opacity: 1;
    transform: none;
  }
}
.card .shot-go {
  font-size: 0.62rem;
  padding: 4px 8px;
  right: 6px;
  bottom: 6px;
}

/* ===== Version téléphone ===== */
#top {
  overflow-x: clip;
}
.hd-r {
  display: flex;
  align-items: center;
  gap: 10px;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.25s;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.sheet {
  display: grid;
  gap: 2px;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}
.sheet a {
  padding: 14px 4px;
  font-size: 1.15rem;
  font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.sheet a:active {
  color: var(--violet-hi);
}
.sheet .sheet-cta {
  color: var(--violet-hi);
  border-bottom: 0;
}
@media (min-width: 761px) {
  .sheet {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .burger {
    display: flex;
  }
  .hd-cta {
    display: none;
  }
  header .wrap {
    height: 60px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .hero {
    padding-block: 36px 40px;
  }
  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    margin-top: 20px;
  }
  .eyebrow {
    font-size: 0.72rem;
    padding: 5px 12px 5px 9px;
  }
  .tags {
    margin-top: 20px;
  }
  .tags span {
    font-size: 0.74rem;
    padding: 5px 10px;
  }
  .cta {
    margin-top: 26px;
  }
  .cta .btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 15px 18px;
  }
  .stats {
    margin-top: 40px;
  }
  .stats strong {
    font-size: 1.9rem;
  }
  .stats span {
    font-size: 0.7rem;
  }
  .hw-on .moon {
    width: 54px;
    right: 4%;
    top: 14px;
    opacity: 0.8;
  }
  .eb-x {
    display: none;
  }
  section.s {
    padding-block: 56px;
  }
  .sh {
    margin-bottom: 28px;
  }
  h2 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
  }
  /* terminal */
  .term-body {
    height: 260px;
    padding: 16px 14px 4px;
    font-size: 0.76rem;
    line-height: 1.65;
  }
  .term-in {
    padding: 4px 14px 16px;
    font-size: 0.8rem;
  }
  .term-in input {
    font-size: 16px;
  } /* évite le zoom auto sur iPhone */
  .pl {
    display: none;
  }
  .term-bar span {
    font-size: 0.7rem;
  }
  .hints {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hints::-webkit-scrollbar {
    display: none;
  }
  .hints button {
    flex: none;
    padding: 9px 14px;
  }
  /* méthode : tout affiché, pas de blocage du défilement */
  .lay p,
  .lay.on p {
    max-height: none;
    color: var(--muted);
  }
  .lay {
    color: var(--fg);
  }
  .stage-in {
    height: 280px;
    overflow: hidden;
  }
  .stack {
    width: min(230px, 64%);
  }
  /* projets */
  .feat {
    padding: 14px;
    gap: 20px;
    border-radius: 14px;
  }
  .fnav button {
    width: 48px;
    height: 48px;
  }
  .tabs,
  .sk-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar,
  .sk-tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button,
  .sk-tabs button {
    flex: none;
    padding: 10px 14px;
  }
  .tabs {
    margin-top: 36px;
  }
  /* services, compétences, à propos */
  .svc article {
    padding: 22px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card {
    padding: 8px;
    gap: 8px;
    border-radius: 12px;
  }
  .card .info {
    flex-direction: column;
    gap: 2px;
    padding: 0 4px 4px;
  }
  .card h4 {
    font-size: 0.9rem;
  }
  .card small {
    white-space: normal;
    font-size: 0.66rem;
  }
  .card .mock .t {
    height: 4px;
  }
  .skills {
    gap: 10px;
  }
  .sk {
    padding: 12px 14px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
  .sk .ic {
    width: 38px;
    height: 38px;
  }
  .sk {
    padding: 14px;
  }
  .about {
    gap: 28px;
  }
  .about .bio p:first-child {
    font-size: 1.1rem;
  }
  .card-id {
    padding: 20px;
  }
  .card-id dl {
    gap: 12px 14px;
  }
  /* contact */
  .contact {
    border-radius: 16px;
  }
  .mailbox {
    flex-direction: column;
    align-items: stretch;
  }
  .mailbox code {
    font-size: 1.05rem;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
  }
  .mailbox .btn {
    justify-content: center;
    padding: 15px;
  }
  .brand.host {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .wrap {
    flex-direction: column;
    gap: 10px;
  }
  /* Halloween sur téléphone */
  .hw-band {
    font-size: 0.76rem;
    padding-block: 7px;
  }
  .bandtip {
    display: none;
  }
  .web {
    width: 90px;
    height: 90px;
  }
  .monster {
    width: 104px;
    height: 104px;
  }
  .hwbar {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    justify-content: flex-end;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .hwbar span,
  .hwbar button {
    font-size: 0.7rem;
    padding: 9px 12px;
  }
  .eyes {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .spider {
    right: max(76px, calc(env(safe-area-inset-right, 0px) + 76px));
  }
  .spider svg {
    width: 28px;
    height: 28px;
  }
  .witch {
    width: 80px;
    height: 44px;
  }
  .gate h2 {
    font-size: 1.7rem;
  }
  .gate .go {
    width: 100%;
    max-width: 300px;
    padding: 16px;
  }
  .gate svg {
    width: 90px;
    height: 90px;
  }
  footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 380px) {
  .stats strong {
    font-size: 1.6rem;
  }
  .tags span:nth-child(n + 4) {
    display: none;
  }
}
@media (hover: none) {
  .card:hover,
  .btn:hover {
    transform: none;
  }
}
