/* ══════════════════════════════════════════════════
   RADAR — hub central + balayage radar + blips (nodes)
   100% sur la DA du site (tokens de style.css)
   ══════════════════════════════════════════════════ */

/* ── Section hub ── */
#hub {
  background: transparent;
  width: 100%;
  padding-block: clamp(70px, 9vw, 130px);
  padding-inline: clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-label--center { justify-content: center; text-align: center; }
.section-label--center::before { display: none; }
#hub .section-label { margin-bottom: 16px; }

/* titre de section bien visible */
.sec-title {
  font-family: 'Sorren', 'Modern Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--cream);
  text-align: center;
}

/* le footer ne s'étirait pas (quirk de largeur) : sa border-top ne faisait
   que ~844px → ligne partielle flottante. */
footer { width: 100%; }

/* section contact (sous le radar) — pleine largeur, grille visible */
#contact {
  width: 100%;
  background: transparent;
  display: block;
  max-width: 1060px;
  margin-inline: auto;
}
.contact-head { margin-bottom: 44px; }

/* ── ClipPath links : tuiles à révélation directionnelle ── */
.cp-grid { border: 1px solid rgba(var(--fg-rgb), calc(.14 * var(--fg-k))); border-radius: 4px; overflow: hidden; }
.cp-row { display: grid; }
.cp-row--2 { grid-template-columns: repeat(2, 1fr); }
.cp-row--3 { grid-template-columns: repeat(3, 1fr); }
.cp-row + .cp-row { border-top: 1px solid rgba(var(--fg-rgb), calc(.14 * var(--fg-k))); }
.cp-link {
  position: relative;
  display: grid;
  place-content: center;
  height: clamp(96px, 14vw, 150px);
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
}
.cp-link + .cp-link { border-left: 1px solid rgba(var(--fg-rgb), calc(.14 * var(--fg-k))); }
.cp-link > svg { width: clamp(26px, 3.4vw, 36px); height: clamp(26px, 3.4vw, 36px); }
/* icônes drawing effect (PNG 512×512, fond transparent, contenu rogné) */
.cp-link > img, .cp-overlay img {
  width: clamp(38px, 5vw, 56px);
  height: clamp(38px, 5vw, 56px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
/* sur l'overlay ambre : silhouette encre, cohérente avec le design d'origine */
.cp-overlay img { filter: brightness(0) opacity(.85); }
.cp-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  color: var(--on-accent);
  clip-path: inset(0 0 100% 0);
}
.cp-overlay svg { width: clamp(26px, 3.4vw, 36px); height: clamp(26px, 3.4vw, 36px); }

#web-stage {
  position: relative;
  width: 100%;
  max-width: min(650px, 92vw);
  /* ratio = bbox réelle de l'appareil (marges transparentes rognées) */
  aspect-ratio: 867 / 838;
  margin: clamp(10px, 3vw, 40px) auto 0;
  overflow: visible;
  /* géométrie (réglages Enzo — radar-tuner, recalculée post-rognage) */
  --cx: 50.6%;    /* centre écran X */
  --cy: 39.5%;    /* centre écran Y */
  --cd: 76.8%;    /* diamètre du cadran */
  --sd: 65.4%;    /* diamètre du balayage */
}

/* superposition : 1. cadran (cercle seul) en bas */
.dial {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: var(--cd); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
/* 3. appareil troué par-dessus — la barre n'est visible que dans le trou.
   L'image (900×900, bbox 17..883 × 27..864) déborde du stage pour que
   ses marges transparentes sortent du cadre = rognage sans toucher au fichier */
.device {
  position: absolute;
  left: -1.961%;
  top: -3.222%;
  width: 103.806%;
  height: 107.399%;
  object-fit: fill;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
/* 3.5 aperçu au survol — écran dans l'écran, au centre du cadran */
.radar-preview {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: calc(var(--cd) * 0.42); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(.6);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1c1209, #0a0704 78%);
  border: 1px solid rgba(var(--accent-rgb), .5);
  box-shadow: 0 0 34px rgba(var(--accent-rgb), .35), inset 0 0 26px rgba(var(--shadow-rgb), calc(.75 * var(--shadow-k)));
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity .25s ease, transform .38s cubic-bezier(.2,.9,.3,1.35);
  pointer-events: none;
  z-index: 4;
}
.radar-preview img {
  width: 74%; height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(var(--hot-rgb), .55));
}
.radar-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.radar-preview.on img { animation: crtIn .5s ease-out; }
@keyframes crtIn {
  0%   { opacity: 0; transform: scale(.85); }
  30%  { opacity: 1; }
  45%  { opacity: .5; }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

/* balayage rotatif + halo, clippé sur l'écran du radar */
.radar-sweep-wrap {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: var(--sd);
  height: var(--sd);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(var(--accent-rgb), 0)   0deg,
    rgba(var(--accent-rgb), 0)   285deg,
    rgba(var(--accent-rgb), .07) 315deg,
    rgba(var(--accent-rgb), .30) 351deg,
    rgba(var(--hot-rgb), .62) 359deg,
    rgba(var(--hot-rgb), .9)  360deg);
  animation: radarSweep 5.5s linear infinite;
  transform-origin: center;
}
@keyframes radarSweep { to { transform: rotate(360deg); } }
.radar-sweep-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb), .16), transparent 62%);
  mix-blend-mode: screen;
}

/* ── Blips (points cliquables) ── */
.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  animation: nodeRise .6s both cubic-bezier(.2,.8,.2,1);
}
@keyframes nodeRise { from { opacity: 0; } to { opacity: 1; } }
.hub-node .dot {
  position: relative;
  width: clamp(13px, 2.6vw, 19px);
  height: clamp(13px, 2.6vw, 19px);
  border-radius: 50%;
  background: var(--amber);
  border: 1.5px solid rgba(var(--ink-rgb), .9);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2), 0 0 14px rgba(var(--accent-rgb), .75);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.hub-node .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .5);
  opacity: 0;
  animation: blipPing 3.4s ease-out infinite;
}
@keyframes blipPing {
  0%   { transform: scale(.5); opacity: .7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}
/* label en pastille — lisible sur le cadran crème comme sur le fond */
.hub-node .lbl {
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
  font-size: clamp(8.5px, 1.3vw, 11px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(var(--ink-rgb), .85);
  border: 1px solid rgba(var(--accent-rgb), .35);
  transition: color .25s, background .25s, border-color .25s;
}
.hub-node:hover .dot,
.hub-node:focus-visible .dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .24), 0 0 22px rgba(var(--accent-rgb), .95);
}
.hub-node:hover .lbl,
.hub-node:focus-visible .lbl {
  color: var(--on-accent);
  background: var(--amber-hot);
  border-color: transparent;
}
.hub-node:focus-visible { outline: none; }

#web-hint {
  margin-top: clamp(24px, 4vw, 44px);
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
  animation: hintBlink 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hintBlink { 0%,100% { opacity: .25; } 50% { opacity: .85; } }

/* ══════════════ OVERLAY ══════════════ */
#ov {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
#ov.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .35s ease;
}
#ov-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(24px, 5vw, 72px);
  background: rgba(var(--ink-rgb), .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--fg-rgb), calc(.06 * var(--fg-k)));
}
/* le titre absorbe l'espace libre : contrôles + « fermer » restent à droite */
#ov-title { font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--cream); margin-inline-end: auto; }
#ov-exit { cursor: pointer; background: none; }
#ov-exit span { font-size: .8rem; }
#ov-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: clamp(44px, 7vw, 96px) clamp(24px, 6vw, 96px) 120px;
}
#ov-body::-webkit-scrollbar { width: 8px; }
#ov-body::-webkit-scrollbar-thumb { background: rgba(var(--fg-rgb), calc(.12 * var(--fg-k))); border-radius: 8px; }
.ov-inner { max-width: 1060px; margin: 0 auto; animation: ovUp .5s both cubic-bezier(.2,.8,.2,1); }
@keyframes ovUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; } }

.ov-eyebrow {
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.ov-h2 {
  font-family: 'Sorren', 'Modern Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--cream);
  margin-bottom: 30px;
}
.ov-lead {
  font-size: .92rem;
  line-height: 2.05;
  color: var(--dim);
  text-align: justify;
  hyphens: auto;
}
.ov-lead strong { color: var(--cream); font-weight: 400; }
.ov-lead em {
  font-family: 'Sorren', Georgia, serif;
  font-style: italic;
  font-size: 1.08em;
  color: var(--amber-hot);
}
.ov-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 32px;
  margin-top: 34px;
}
.ov-kv dt {
  font-size: .56rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
}
.ov-kv dd { margin: 0; font-size: .88rem; color: var(--cream); }

/* Compétences */
.sk-group { margin-top: 30px; }
.sk-wrap { display: flex; flex-wrap: wrap; gap: 9px; }

/* ── Langues (sous les compétences) ──
   Ligne de conduite pointillée (procédé de sommaire imprimé) : le nom à
   gauche, le niveau à droite, les points comblent l'écart. */
.lg-block {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid rgba(var(--fg-rgb), calc(.08 * var(--fg-k)));
}
.lg-block .aside-label { margin-bottom: 20px; }
.lg-list { display: flex; flex-direction: column; }
.lg-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(var(--fg-rgb), calc(.05 * var(--fg-k)));
}
.lg-row:last-child { border-bottom: none; }
.lg-name {
  flex: 0 0 auto;
  font-family: 'Sorren', 'Modern Antiqua', Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--cream);
  transition: color .25s;
}
.lg-dots {
  position: relative;
  flex: 1 1 auto;
  min-width: 24px;
  border-bottom: 1px dotted rgba(var(--fg-rgb), calc(.25 * var(--fg-k)));
  transition: border-color .25s;
}
/* jauge discrète : un trait plein posé sur le pointillé, dont la longueur
   dépend de la langue (--lvl sur .lg-row). Se retrace à chaque ouverture
   de l'overlay (le HTML est réinjecté). */
.lg-dots::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--lvl, 0%);
  border-bottom: 1px solid rgba(var(--accent-rgb), .55);
  transform-origin: left;
  animation: lgFill 1s cubic-bezier(.2,.8,.2,1) both;
  transition: border-color .25s;
}
@keyframes lgFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lg-row:nth-child(1) .lg-dots::after { animation-delay: .15s; }
.lg-row:nth-child(2) .lg-dots::after { animation-delay: .28s; }
.lg-row:nth-child(3) .lg-dots::after { animation-delay: .41s; }
.lg-row:hover .lg-dots::after { border-color: var(--amber-hot); }
@media (prefers-reduced-motion: reduce) {
  .lg-dots::after { animation: none; }
}
.lg-lvl {
  flex: 0 0 auto;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--dim);
  transition: color .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.lg-row:hover .lg-name { color: var(--amber-hot); }
.lg-row:hover .lg-dots { border-color: rgba(var(--accent-rgb), .55); }
.lg-row:hover .lg-lvl { color: var(--cream); transform: translateX(-4px); }

@media (max-width: 560px) {
  .lg-row { flex-wrap: wrap; gap: 4px 12px; padding: 13px 2px; }
  .lg-dots { display: none; }
  .lg-lvl { width: 100%; }
}

/* Expériences */
.xp-list { margin-top: 4px; }
.xp-line {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid rgba(var(--fg-rgb), calc(.08 * var(--fg-k)));
}
.xp-line:first-child { border-top: none; padding-top: 6px; }
.xp-when { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.xp-where { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.xp-co { font-family: 'Sorren', Georgia, serif; font-size: 1.25rem; color: var(--cream); }
.xp-role { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 5px 0 13px; }
.xp-txt {
  font-size: .84rem; line-height: 1.95; color: rgba(var(--fg-rgb), calc(.5 * var(--fg-k)));
  text-align: justify; hyphens: auto;
}
@media (max-width: 640px) { .xp-line { grid-template-columns: 1fr; gap: 10px; } }
.xp-more {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--fg-rgb), calc(.08 * var(--fg-k)));
  font-size: .8rem;
  line-height: 1.9;
  color: var(--dim);
}
.xp-more a {
  color: var(--amber);
  border-bottom: 1px solid rgba(var(--accent-rgb), .35);
  transition: color .2s, border-color .2s;
}
.xp-more a:hover { color: var(--amber-hot); border-color: var(--amber-hot); }

/* Projets */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.pj {
  border: 1px solid rgba(var(--fg-rgb), calc(.08 * var(--fg-k)));
  border-radius: 16px;
  overflow: hidden;
  background: rgba(var(--fg-rgb), calc(.02 * var(--fg-k)));
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.pj:hover {
  border-color: rgba(var(--accent-rgb), .35);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(var(--shadow-rgb), calc(.5 * var(--shadow-k)));
}
.pj-thumb {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: rgba(var(--accent-rgb), .05);
}
.pj-b { padding: 16px 18px 18px; }
.pj-meta { display: flex; justify-content: space-between; margin-bottom: 7px; gap: 10px; }
.pj-tag { font-size: .53rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--accent-rgb), .72); }
.pj-year { font-size: .58rem; color: rgba(var(--fg-rgb), calc(.2 * var(--fg-k))); }
.pj-t { font-family: 'Sorren', Georgia, serif; font-size: 1.08rem; color: var(--cream); margin-bottom: 7px; }
.pj-d { font-size: .74rem; line-height: 1.75; color: rgba(var(--fg-rgb), calc(.4 * var(--fg-k))); }
.pj-link {
  margin-top: 13px;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Projets : hover-links (liste + image qui suit le curseur) ── */
.hl-list { display: flex; flex-direction: column; margin-top: 8px; }
.hl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 8px;
  border-bottom: 1px solid rgba(var(--fg-rgb), calc(.1 * var(--fg-k)));
  transition: opacity .3s ease;
}
.hl-item:first-child { border-top: 1px solid rgba(var(--fg-rgb), calc(.1 * var(--fg-k))); }
.hl-list:hover .hl-item { opacity: .3; }
.hl-list:hover .hl-item:hover { opacity: 1; }
.hl-txt { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hl-t {
  font-family: 'Sorren', 'Modern Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.8vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.hl-item:hover .hl-t { transform: translateX(12px); }
.hl-s {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.hl-arrow {
  flex: 0 0 auto;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--amber-hot);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.hl-item:hover .hl-arrow { opacity: 1; transform: none; }
/* image de preview qui suit le curseur */
.hl-preview {
  position: fixed;
  top: 0; left: 0;
  width: min(300px, 30vw);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb), calc(.14 * var(--fg-k)));
  box-shadow: 0 24px 70px rgba(var(--shadow-rgb), calc(.65 * var(--shadow-k)));
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transition: opacity .22s ease;
}
.hl-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-preview.on { opacity: 1; }
@media (hover: none), (max-width: 700px) {
  .hl-preview { display: none; }
  .hl-list:hover .hl-item { opacity: 1; }
}

/* Tableau périodique */
/* Tableau périodique — rendu natif dans l'overlay */
.pt-embed { overflow-x: auto; margin-top: 26px; padding: 30px 2px; }
.pt-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(46px, 1fr));
  gap: clamp(5px, .9vw, 10px);
  width: 100%;
  max-width: 1016px;
  margin-inline: auto;
}
.pt-cell { position: relative; aspect-ratio: 1; }
.pt-cell.empty { visibility: hidden; }
.pt-tile {
  position: relative; width: 100%; height: 100%;
  background: var(--tile-bg);
  border: 1px solid rgba(var(--fg-rgb), calc(.14 * var(--fg-k)));
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  cursor: default; user-select: none; -webkit-user-select: none;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .12s ease-out, box-shadow .18s, border-color .13s;
}
.pt-tile:hover { box-shadow: 0 14px 30px rgba(var(--shadow-rgb), calc(.55 * var(--shadow-k))); border-color: rgba(var(--fg-rgb), calc(.28 * var(--fg-k))); z-index: 2; }
.pt-tile.tilt { z-index: 6; box-shadow: 0 22px 44px rgba(var(--shadow-rgb), calc(.6 * var(--shadow-k))); }
.pt-tile.linked { cursor: pointer; }
.pt-sym { font-size: clamp(1rem, 2.3vw, 1.75rem); font-weight: 700; line-height: 1.05; color: var(--fam); }
.pt-name {
  font-size: clamp(.5rem, 1.05vw, .7rem); font-weight: 500; color: var(--fam);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; padding: 0 4px;
}
.pt-shine {
  position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0;
  transition: opacity .2s;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(var(--fg-rgb), calc(.22 * var(--fg-k))), rgba(var(--fg-rgb), 0) 45%);
}
.pt-tile.tilt .pt-shine { opacity: 1; }
.pt-ext {
  position: absolute; top: 7px; left: 8px; width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; line-height: 1; font-weight: 700; color: var(--amber-hot);
  border-radius: 5px; z-index: 4; transition: background .15s;
}
.pt-tile.linked:hover .pt-ext { background: rgba(var(--hot-rgb), .16); }
.pt-legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .8rem; justify-content: center;
}
.pt-legend span { color: var(--fam); font-weight: 600; }
.pt-legend span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  background: var(--fam); margin-right: 6px; vertical-align: -1px;
}
#pt-tip {
  position: fixed; z-index: 400; pointer-events: none;
  background: var(--tip-bg); border: 1px solid rgba(var(--fg-rgb), calc(.14 * var(--fg-k))); border-radius: 9px;
  padding: 8px 11px; font-size: .74rem; line-height: 1.4; max-width: 210px; color: var(--cream);
  box-shadow: 0 10px 26px rgba(var(--shadow-rgb), calc(.55 * var(--shadow-k)));
  opacity: 0; transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
#pt-tip.show { opacity: 1; transform: translateY(0); }

/* Contact */
.ov-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 700px) { .ov-contact { grid-template-columns: 1fr; } }
.ov-contact .social-row { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .core-disc, #web-hint, .hub-node, .hub-node .dot::after { animation: none; }
}

/* ── Liens de bas de page ── */
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--dim);
  transition: color .2s;
}
.footer-links a:hover { color: var(--amber-hot); }
.footer-links-sep { color: rgba(var(--fg-rgb), calc(.15 * var(--fg-k))); }

/* ══════════════════════════════════════════════════
   HERO — grille infinie réactive au curseur
   (remplace l'ancienne grille statique globale)
   ══════════════════════════════════════════════════ */
body::before { display: none !important; }

#hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  --mx: 50%; --my: 40%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 72px);
}
#hero > .hero-text,
#hero > .hero-portrait { position: relative; z-index: 1; }

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 62ch;
}
.hero-text .hero-name { font-size: clamp(3.2rem, 8.5vw, 8rem); }

/* Portrait line-art (drawing effect) */
.hero-portrait {
  flex: 0 0 auto;
  width: clamp(220px, 38vw, 550px);
  aspect-ratio: 600 / 730;   /* recadre : coupe la marge du haut (image 600x900) */
  overflow: hidden;
}
.hero-portrait .portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 84%;   /* biais bas → enlève le vide au-dessus de la tête */
  display: block;
  /* Le portrait est un line-art sombre sur aplat crème. En sombre, `screen`
     efface les traits et ne garde que le crème ; en clair, l'image se lit
     telle quelle (traits d'encre) → `normal` + une ombre pour la détacher.
     Les deux valeurs sont des tokens (theme.css). */
  mix-blend-mode: var(--portrait-blend);
  filter: var(--portrait-shadow);
}

@media (max-width: 820px) {
  #hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(18px, 5vw, 36px);
  }
  .hero-portrait { order: -1; align-self: center; width: clamp(140px, 36vw, 210px); }
  .hero-text .hero-name { font-size: clamp(3rem, 13vw, 6rem); }
}

body { --mx: 50%; --my: 40%; }
.hero-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* grille de base — défile à l'infini */
.hero-grid-base,
.hero-grid-active {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(to right,  rgba(var(--fg-rgb), calc(.085 * var(--fg-k))) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--fg-rgb), calc(.085 * var(--fg-k))) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: gridDrift 9.2s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 46px; } }

/* couche active — grille ambre révélée autour du curseur */
.hero-grid-active {
  background-image:
    linear-gradient(to right,  rgba(var(--accent-rgb), .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-rgb), .55) 1px, transparent 1px);
  opacity: 0;
  transition: opacity .4s ease;
  -webkit-mask-image: radial-gradient(circle 305px at var(--mx) var(--my), #000 0%, transparent 68%);
  mask-image: radial-gradient(circle 305px at var(--mx) var(--my), #000 0%, transparent 68%);
}

/* halo chaud qui suit le curseur */
.hero-grid-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  background: radial-gradient(circle 535px at var(--mx) var(--my),
    rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .05) 42%, transparent 70%);
}

body.grid-hot .hero-grid-active,
body.grid-hot .hero-grid-glow { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid-base, .hero-grid-active { animation: none; }
}
