/* ============================================================
   NOX DESIGN — Portfolio
   Thème sombre uniquement. Un seul accent ambre. Zéro dépendance.
   ============================================================ */

/* ---------- Polices auto-hébergées (jamais de CDN tiers) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  /* Fonds bleu-noir — jamais de noir pur */
  --nox-900: #05070D;
  --nox-800: #0A0E18;
  --nox-700: #131926;
  --nox-500: #2A3346;

  /* Texte — étoiles */
  --star-100: #F2F4F8;
  --star-300: #A8B0C0;
  --star-500: #7C8496;   /* texte large uniquement, contraste limite */

  /* Accent unique — ambre chaud. Jamais de cyan ni de violet. */
  --accent:       #F5B942;
  --accent-hover: #F7C766;
  --accent-dim:   rgba(245, 185, 66, 0.14);
  --accent-line:  rgba(245, 185, 66, 0.5);

  /* Typographie */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Satoshi", "Inter", system-ui, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.5rem, 7vw, 5rem);
  --fs-h1:      clamp(2rem, 5vw, 3.5rem);
  --fs-h2:      clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3:      1.25rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;

  /* Espacement — base 4px */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;
  --sp-24: 96px; --sp-32: 128px;
  --content-max: 1200px;

  /* Rayons */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Élévations */
  --e-1: 0 1px 2px rgba(0,0,0,.4);
  --e-2: 0 10px 30px -12px rgba(0,0,0,.6);
  --e-3: 0 26px 60px -22px rgba(0,0,0,.72);

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 150ms;
  --dur: 300ms;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nox-900);
  color: var(--star-300);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-dim); color: var(--star-100); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

@keyframes noxPulse { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }
@keyframes noxSpin  { from { transform: rotateY(0) } to { transform: rotateY(-360deg) } }

/* ---------- Utilitaires ---------- */
.wrap { max-width: var(--content-max); margin: 0 auto; }

.section { padding: var(--sp-32) var(--sp-6); }
.section--divided { border-top: 1px solid var(--nox-700); }

.overline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: var(--fs-small);
  color: var(--star-500);
  margin: 0 0 var(--sp-6);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--star-500);
  letter-spacing: .04em;
  background: rgba(5, 7, 13, .55);
  padding: 5px 9px;
  border-radius: 6px;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  z-index: 100;
  background: var(--nox-800);
  color: var(--star-100);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--nox-500);
  font-family: var(--font-display);
  font-size: var(--fs-small);
}
.skip-link:focus { left: var(--sp-6); }

/* ---------- En-tête ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.header[data-scrolled="true"] {
  background: rgba(10, 14, 24, .72);
  border-bottom-color: var(--nox-700);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
.header__bar {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--star-100);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .2em;
  font-size: 15px;
}
.brand:hover { color: var(--star-100); }

.nav { display: none; align-items: center; gap: var(--sp-8); }
.nav a {
  color: var(--star-300);
  font-size: var(--fs-small);
  font-family: var(--font-display);
  letter-spacing: .02em;
  transition: color var(--dur-hover) var(--ease);
}
.nav a:hover { color: var(--star-100); }
.nav a.is-accent { color: var(--accent); }
.nav a.is-accent:hover { color: var(--accent-hover); }

.nav-mobile {
  color: var(--accent);
  font-size: var(--fs-small);
  font-family: var(--font-display);
  letter-spacing: .02em;
}

@media (min-width: 761px) {
  .nav { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(58% 55% at 50% 42%, rgba(245,185,66,.10), transparent 68%),
    radial-gradient(42% 42% at 82% 16%, rgba(42,51,70,.32), transparent 70%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-32) var(--sp-6) var(--sp-24);
  width: 100%;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--star-100);
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__cta { margin-top: var(--sp-12); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--nox-500);
  border-radius: var(--r-pill);
  color: var(--star-100);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: .02em;
  background: transparent;
  transition: border-color var(--dur-hover) var(--ease),
              color var(--dur-hover) var(--ease),
              background var(--dur-hover) var(--ease),
              transform var(--dur-hover) var(--ease);
}
.cta:hover {
  border-color: rgba(245, 185, 66, .55);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ---------- Orbite 3D (décoratif) ---------- */
.orbit {
  padding: var(--sp-16) 0 var(--sp-24);
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 65% at 50% 42%, rgba(42,51,70,.20), transparent 72%);
}
.orbit__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.orbit__head {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto var(--sp-8);
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.orbit__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: var(--fs-small);
  color: var(--star-500);
  white-space: nowrap;
}
.orbit__rule { height: 1px; background: var(--nox-700); flex: 1; }

/* Masqué tant que le JS n'a pas placé les cartes sur le cylindre :
   sans JS elles s'empileraient toutes au centre. C'est décoratif, donc
   son absence ne retire aucune information. */
.orbit__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 440px;
  perspective: 1300px;
  perspective-origin: 50% 44%;
  visibility: hidden;
}
.orbit__stage.is-ready { visibility: visible; }

.orbit__ring {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: noxSpin 24s linear infinite;
}
.orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transition: transform 450ms var(--ease);
}
.orbit__item[data-empty="true"] { opacity: .4; filter: saturate(.4); }
.orbit__caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--star-500);
  letter-spacing: .03em;
}

/* Mini-appareils de l'anneau */
.dev-desktop {
  width: 300px;
  border: 1px solid var(--nox-700);
  border-radius: 12px;
  overflow: hidden;
  background: var(--nox-800);
  box-shadow: var(--e-3);
}
.dev-desktop__bar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid var(--nox-700);
}
.dev-desktop__bar > span { width: 7px; height: 7px; border-radius: 50%; background: var(--nox-500); }
.dev-desktop__bar > .url {
  margin-left: 10px;
  width: auto; height: 9px;
  flex: 1; max-width: 150px;
  border-radius: 99px;
  background: var(--nox-700);
}
.dev-desktop__screen {
  height: 172px;
  background: repeating-linear-gradient(135deg, var(--nox-900) 0 12px, var(--nox-700) 12px 13px);
}

.dev-phone {
  width: 132px;
  margin: 0 auto;
  border: 1px solid var(--nox-500);
  border-radius: 20px;
  overflow: hidden;
  background: var(--nox-900);
  box-shadow: var(--e-3);
}
.dev-phone__notch { height: 18px; display: flex; justify-content: center; align-items: center; }
.dev-phone__notch > span { width: 34px; height: 4px; border-radius: 99px; background: var(--nox-700); }
.dev-phone__screen {
  height: 232px;
  background: repeating-linear-gradient(135deg, var(--nox-800) 0 9px, var(--nox-700) 9px 10px);
}

.dev-agent {
  width: 280px;
  height: 184px;
  border: 1px solid var(--nox-700);
  border-radius: 12px;
  background: var(--nox-800);
  box-shadow: var(--e-3);
  padding: 18px;
  text-align: left;
}
.dev-agent__head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dev-agent__head > .dot { width: 8px; height: 8px; }
.dev-agent__head > span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--star-500); }
.dev-agent__lines { display: flex; flex-direction: column; gap: 11px; }
.dev-agent__lines > span { height: 8px; border-radius: 99px; background: var(--nox-700); display: block; }
.dev-agent__lines > span:nth-child(1) { width: 74%; }
.dev-agent__lines > span:nth-child(2) {
  width: 54%;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 185, 66, .3);
}
.dev-agent__lines > span:nth-child(3) { width: 66%; }
.dev-agent__lines > span:nth-child(4) { width: 44%; }

/* Anneau en mobile — ce bloc doit rester APRÈS les règles .dev-* ci-dessus :
   à spécificité égale, c'est la dernière déclaration qui gagne. */
@media (max-width: 760px) {
  .orbit__ring { animation-duration: 18s; }
  /* Perspective plus lointaine : de près, la carte au premier plan est
     agrandie d'un tiers et couvre tout l'écran d'un téléphone. */
  .orbit__stage { height: 340px; perspective: 1800px; }

  /* Mini-appareils réduits, pour la même raison. */
  .dev-desktop { width: 150px; border-radius: 8px; }
  .dev-desktop__bar { height: 16px; padding: 0 7px; gap: 3px; }
  .dev-desktop__bar > span { width: 4px; height: 4px; }
  .dev-desktop__bar > .url { margin-left: 6px; height: 5px; max-width: 75px; }
  .dev-desktop__screen { height: 88px; }

  .dev-phone { width: 68px; border-radius: 11px; }
  .dev-phone__notch { height: 10px; }
  .dev-phone__notch > span { width: 18px; height: 3px; }
  .dev-phone__screen { height: 120px; }

  .dev-agent { width: 145px; height: 98px; padding: 11px; border-radius: 8px; }
  .dev-agent__head { margin-bottom: 9px; gap: 5px; }
  .dev-agent__head > .dot { width: 6px; height: 6px; }
  .dev-agent__head > span:last-child { font-size: 9px; }
  .dev-agent__lines { gap: 6px; }
  .dev-agent__lines > span { height: 5px; }

  .orbit__caption { font-size: 10px; margin-top: 8px; }
}

/* ---------- Travaux ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--nox-700);
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  color: var(--star-100);
  margin: 0;
  letter-spacing: -.01em;
}
.section-head__count {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--star-500);
  letter-spacing: .08em;
}

/* Les filtres n'ont aucun sens sans JS : c'est le JS qui les révèle. */
.filters { display: none; flex-wrap: wrap; gap: var(--sp-2); }
.filters.is-ready { display: flex; }

.chip {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: .02em;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--nox-700);
  background: transparent;
  color: var(--star-300);
  transition: border-color var(--dur-hover) var(--ease),
              color var(--dur-hover) var(--ease),
              background var(--dur-hover) var(--ease);
}
.chip:hover { border-color: var(--nox-500); color: var(--star-100); }
.chip[aria-selected="true"] {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
  margin-top: var(--sp-16);
}

.project { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.project[hidden] { display: none; }

@media (min-width: 761px) {
  .project {
    grid-template-columns: 1.05fr .95fr;
    gap: var(--sp-16);
    align-items: center;
  }
  /* Alternance gauche/droite en CSS pur : le HTML ne change jamais. */
  .project:nth-child(even) .project__media { order: 2; }
  /* Quand un filtre est actif, le JS recalcule l'alternance sur les
     seuls projets visibles et surcharge la règle nth-child ci-dessus. */
  .project[data-flip="false"] .project__media { order: 0; }
  .project[data-flip="true"]  .project__media { order: 2; }
}

.project__media { position: relative; }

/* Aperçu double : navigateur + téléphone (sites et applications web) */
.media-pair {
  position: relative;
  aspect-ratio: 16 / 10;
  transition: transform var(--dur) var(--ease);
}
.media-pair:hover { transform: translateY(-4px); }
.media-pair__desktop {
  position: absolute;
  inset: 0 17% 15% 0;
  border: 1px solid var(--nox-700);
  border-radius: 12px;
  overflow: hidden;
  background: var(--nox-800);
  box-shadow: var(--e-2);
  transition: border-color var(--dur) var(--ease);
}
.media-pair:hover .media-pair__desktop { border-color: var(--accent-line); }
.media-pair__bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--nox-700);
}
.media-pair__bar > span { width: 8px; height: 8px; border-radius: 50%; background: var(--nox-500); }
.media-pair__bar > .url {
  margin-left: 12px;
  width: auto; height: 10px;
  flex: 1; max-width: 190px;
  border-radius: 99px;
  background: var(--nox-700);
}
.media-pair__screen {
  position: absolute;
  inset: 28px 0 0 0;
  background: repeating-linear-gradient(135deg, var(--nox-900) 0 13px, var(--nox-700) 13px 14px);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-3);
}
.media-pair__phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 24%;
  min-width: 84px;
  aspect-ratio: 9 / 19;
  border: 1px solid var(--nox-500);
  border-radius: 18px;
  overflow: hidden;
  background: var(--nox-900);
  box-shadow: var(--e-3);
}
.media-pair__notch { height: 16px; display: flex; justify-content: center; align-items: center; }
.media-pair__notch > span { width: 30px; height: 4px; border-radius: 99px; background: var(--nox-700); }
.media-pair__phone-screen {
  position: absolute;
  inset: 16px 0 0 0;
  background: repeating-linear-gradient(135deg, var(--nox-800) 0 9px, var(--nox-700) 9px 10px);
  display: flex;
  align-items: flex-end;
  padding: 7px;
}
.media-pair__phone-screen .mono-tag {
  font-size: 9px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(5, 7, 13, .6);
}

/* Panneau unique : automatisations et agents IA */
.media-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid var(--nox-700);
  background: var(--nox-800);
  box-shadow: var(--e-2);
  overflow: hidden;
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  justify-content: center;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.media-panel:hover {
  border-color: var(--accent-line);
  box-shadow: var(--e-3);
  transform: translateY(-4px);
}
.media-panel__head { display: flex; align-items: center; gap: 8px; }
.media-panel__head > .dot { width: 8px; height: 8px; }
.media-panel__head > span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--star-500);
  letter-spacing: .03em;
}
.media-panel__lines { display: flex; flex-direction: column; gap: 10px; }
.media-panel__lines > span { height: 8px; border-radius: 99px; background: var(--nox-700); }
.media-panel__lines > span:nth-child(1) { width: 70%; }
.media-panel__lines > span:nth-child(2) { width: 48%; }
.media-panel > .mono-tag { position: absolute; left: var(--sp-3); bottom: var(--sp-3); }

.wave { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.wave > span { width: 5px; background: var(--nox-500); border-radius: 99px; }
.wave > span:nth-child(1)  { height: 30%; }
.wave > span:nth-child(2)  { height: 60%; }
.wave > span:nth-child(3)  { height: 88%; background: var(--accent); }
.wave > span:nth-child(4)  { height: 52%; }
.wave > span:nth-child(5)  { height: 100%; background: var(--accent); }
.wave > span:nth-child(6)  { height: 40%; }
.wave > span:nth-child(7)  { height: 74%; }
.wave > span:nth-child(8)  { height: 46%; }
.wave > span:nth-child(9)  { height: 84%; background: var(--accent); }
.wave > span:nth-child(10) { height: 34%; }
.wave > span:nth-child(11) { height: 64%; }
.wave > span:nth-child(12) { height: 50%; }

/* Emplacement vide, pour un futur projet */
.media-slot {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px dashed var(--nox-700);
  background: repeating-linear-gradient(135deg, var(--nox-800) 0 11px, var(--nox-700) 11px 12px);
  box-shadow: var(--e-1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-3);
}

.badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-dim);
  border: 1px solid rgba(245, 185, 66, .3);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .03em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.badge__dot { animation: noxPulse 2.4s var(--ease) infinite; }

.project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  color: var(--star-100);
  margin: 0 0 var(--sp-3);
  letter-spacing: -.01em;
}
.project__tagline {
  margin: 0 0 var(--sp-6);
  color: var(--star-300);
  font-size: var(--fs-h3);
  line-height: 1.5;
  max-width: 36ch;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-8);
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: var(--fs-small);
  color: var(--star-500);
  border: 1px solid var(--nox-700);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  letter-spacing: .02em;
}
.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
}
.project__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .02em;
  transition: color var(--dur-hover) var(--ease);
}
.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--accent-hover); }
.link-plain { color: var(--star-100); }
.link-plain:hover { color: var(--accent); }

/* ---------- À propos ---------- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 761px) {
  .about__grid { grid-template-columns: .82fr 1.18fr; gap: var(--sp-16); align-items: center; }
}
.about__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  border: 1px solid var(--nox-700);
  background: repeating-linear-gradient(135deg, var(--nox-800) 0 11px, var(--nox-700) 11px 12px);
  box-shadow: var(--e-2);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-3);
}
.about__text {
  margin: 0;
  color: var(--star-100);
  font-size: var(--fs-h3);
  line-height: 1.6;
  max-width: 52ch;
}

/* ---------- Contact ---------- */
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  color: var(--star-100);
  margin: 0;
  letter-spacing: -.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  align-items: center;
  margin-top: var(--sp-12);
}
.contact__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .01em;
  transition: color var(--dur-hover) var(--ease);
}

/* ---------- Pied de page ---------- */
.footer {
  padding: var(--sp-12) var(--sp-6) var(--sp-16);
  border-top: 1px solid var(--nox-700);
}
.footer__bar {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--star-300);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .14em;
  font-size: var(--fs-small);
}
.footer__brand .dot { width: 5px; height: 5px; }
.footer__note {
  color: var(--star-500);
  font-size: var(--fs-small);
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* ---------- Révélation au scroll ----------
   L'état masqué n'est posé qu'en JS (classe is-hidden) : sans JS,
   le contenu reste visible. */
[data-reveal] {
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-hidden { opacity: 0; transform: translateY(12px); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal].is-hidden { opacity: 1 !important; transform: none !important; }
  .orbit__ring { animation: none !important; }
  .orbit__stage { perspective: none !important; }
}
