/* Tokens : site en thème sombre uniquement ; light-dark() renvoie donc toujours la valeur sombre */
:root {
  color-scheme: dark;
  --bg: light-dark(#ffffff, #0d1117);
  --surface: light-dark(#f6f8fa, #161b22);
  --text: light-dark(#1f2328, #e6edf3);
  --muted: light-dark(#59636e, #9198a1);
  --border: light-dark(#d1d9e0, #30363d);
  --accent: light-dark(#016fb9, #5cb3f0);
  --accent-soft: light-dark(#e6f1fa, #10283b);
  --on-accent: light-dark(#ffffff, #0d1117);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --space: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --radius: 12px;
  --max: 88rem;

  /* Élévation : chaque niveau superpose une ombre de contact nette et une diffusion douce, teintées de bleu.
     En sombre, une ombre se voit peu : le relief vient surtout du liseré clair en haut des surfaces. */
  --shadow-tint: light-dark(rgb(1 45 90 / 0.08), rgb(0 0 0 / 0.45));
  --shadow-1: 0 1px 2px var(--shadow-tint), 0 2px 6px -2px var(--shadow-tint);
  --shadow-2: 0 1px 2px var(--shadow-tint), 0 6px 14px -4px var(--shadow-tint), 0 18px 36px -12px var(--shadow-tint);
  --shadow-3: 0 2px 4px var(--shadow-tint), 0 12px 24px -6px var(--shadow-tint), 0 32px 64px -16px var(--shadow-tint);
  --highlight: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.06));
  --glow: light-dark(color-mix(in srgb, #016fb9 10%, transparent), color-mix(in srgb, #5cb3f0 16%, transparent));
}

/* Valeurs animables (transition d'une variable) : intensité du reflet sous le curseur, angle du badge */
@property --spot {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  /* Grain très léger (noise.svg, quelques centaines d'octets) pour casser l'aspect trop lisse du fond */
  background: url("noise.svg") var(--bg);
  color: var(--text);
  font: var(--step-0) / 1.6 var(--font);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  &:hover { text-decoration-thickness: 2px; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * clamp(1rem, 4vw, 3rem), var(--max));
  margin-inline: auto;
}

.muted { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  &:focus { top: 1rem; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px) saturate(1.4);
  border-bottom: 1px solid transparent;

  @media (prefers-reduced-transparency: reduce) { background: var(--bg); }
}

/* Le header prend une bordure et une ombre dès qu'on défile, en CSS seul (sans support : bordure fixe).
   Sa hauteur ne change pas, pour ne pas décaler la page. */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-lift linear both;
    animation-timeline: scroll();
    animation-range: 0 6rem;
  }
}

@supports not (animation-timeline: scroll()) {
  .site-header { border-bottom-color: var(--border); }
}

@keyframes header-lift {
  to {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-2);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space);
  min-height: 3.5rem;
  @media (max-width: 30rem) { gap: 0.5rem; }
}

.logo {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  color: var(--muted);
  &:hover { color: var(--text); }
  margin-right: auto;
  flex-shrink: 0;
  @media (max-width: 30rem) { width: 2rem; }
}

/* Sur un écran étroit, le menu défile de côté plutôt que d'élargir la page */
nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

nav ul {
  display: flex;
  gap: clamp(0.625rem, 2vw, 1.5rem);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  @media (max-width: 30rem) { font-size: 0.78rem; }
  &:hover { color: var(--text); }
}

/* Bascule FR / EN : discrète, à droite du menu */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.75rem/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  &:hover { color: var(--text); border-color: var(--accent); }
  &[hidden] { display: none; }
  @media (max-width: 30rem) { padding: 0.25rem 0.4rem; svg { display: none; } }
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  gap: 2rem 3rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  /* Le portrait qui pivote peut déborder sur la marge, jamais au point de faire défiler la page */
  overflow-x: clip;
  overflow-clip-margin: 1rem;

  /* Texte resserré à gauche, le portrait prend le reste */
  /* Grand écran : le texte reste aligné sur la colonne du site, le portrait va jusqu'au bord droit de l'écran */
  @media (width >= 56rem) {
    width: 100%;
    grid-template-columns: max(clamp(1rem, 4vw, 3rem), (100% - var(--max)) / 2) minmax(0, 30rem) 1fr;
    column-gap: 0;
    overflow-clip-margin: 0px;
    .hero-text { grid-column: 2; }
    .ascii { grid-column: 3; margin-left: 3rem; }
  }
}

/* Portrait ASCII : du texte, donc net à toutes les tailles et sans image à charger.
   portrait3d.js le remplace par le portrait WebGL (classe is-3d) ; sans JS, le <pre> incliné reste affiché. */
.ascii {
  position: relative;
  margin: 0;
  padding-bottom: 1.5rem;
  justify-self: center;
  color: var(--accent);
  perspective: 900px;
  isolation: isolate;

  /* Halo bleu fondu dans le fond, derrière le buste */
  &::before {
    content: "";
    position: absolute;
    inset: -5% -10%;
    z-index: -1;
    background: radial-gradient(closest-side, var(--glow), transparent);
    pointer-events: none;
  }

  pre {
    margin: 0;
    font: clamp(5px, 1.35vw, 9px) / 1 var(--mono);
    letter-spacing: 0.05em;
    /* Téléphone et tablette : le buste prend toute la largeur (60 colonnes de 0,64em) */
    @media (width < 56rem) { font-size: min((100vw - 2rem) / 38.5, 12px); }
    user-select: none;
    transform: rotateY(-14deg) rotateX(4deg);
    text-shadow:
      1px 1px 0 color-mix(in srgb, var(--accent) 50%, transparent),
      2px 2px 0 color-mix(in srgb, var(--accent) 28%, transparent),
      3px 3px 0 color-mix(in srgb, var(--accent) 12%, transparent);
  }

  &.is-3d pre { visibility: hidden; }
  /* Avec JS, le portrait texte reste caché pendant le chargement du modèle 3D (sinon il s'affiche quelques
     secondes avant le buste à la première visite) ; portrait3d.js remet la classe no-3d si la 3D n'est pas possible */
  @media (scripting: enabled) {
    &:not(.no-3d) pre { visibility: hidden; }
  }

  /* En 3D, le cadre occupe toute la colonne pour un buste plus grand */
  @media (width >= 56rem) {
    &.is-3d { justify-self: stretch; display: grid; place-items: center; min-height: 34rem; }
  }

  /* Un clic sur le portrait change d'effet */
  &.is-3d { cursor: pointer; }
  &.is-3d:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 1rem;
  }

  canvas {
    position: absolute;
    left: 50%;
    top: calc(50% - 0.75rem);
    translate: -50% -50%;
    pointer-events: none;
  }

  /* L'apparition grésille une seule fois au chargement */
  @media (prefers-reduced-motion: no-preference) {
    animation: holo-on 0.9s steps(1) both;
  }
}

@keyframes holo-on {
  0% { opacity: 0; }
  12% { opacity: 0.7; }
  20% { opacity: 0.15; }
  32% { opacity: 0.9; }
  40% { opacity: 0.4; }
  55%, 100% { opacity: 1; }
}

.eyebrow {
  font: 600 0.9rem var(--mono);
  color: var(--accent);
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--step-3);
  letter-spacing: -0.03em;
  margin-block: 0.5rem;
}

.stack-line {
  font: var(--step-1) var(--mono);
  color: var(--muted);
}

.lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
  @media (width < 30rem) { font-size: 1.0625rem; margin-top: 1rem; }
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  /* Relief : dégradé à peine visible, liseré clair en haut, ombre de contact */
  background: linear-gradient(light-dark(#ffffff, #1c232c), var(--surface));
  box-shadow: var(--highlight), var(--shadow-1);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, translate 0.2s, scale 0.1s;
  &:hover { border-color: var(--accent); translate: 0 -2px; }
  /* Enfoncé au clic */
  &:active {
    translate: 0 0;
    scale: 0.97;
    box-shadow: inset 0 2px 4px var(--shadow-tint);
  }
}

.btn-primary {
  background: linear-gradient(color-mix(in srgb, var(--accent) 82%, white), var(--accent));
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), var(--shadow-1), 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent);
  &:hover { background: linear-gradient(color-mix(in srgb, var(--accent) 88%, white), color-mix(in srgb, var(--accent) 90%, var(--text))); }
}

/* Sections */
.section {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
}

h2 {
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Second halo, à gauche des projets : c'est lui qu'on devine à travers le projet ouvert, en verre dépoli */
#projets {
  position: relative;
  isolation: isolate;
  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 4rem;
    left: 0;
    width: min(42rem, 90%);
    height: 32rem;
    background: radial-gradient(closest-side, var(--glow), transparent);
    pointer-events: none;
  }
}

/* Projets : chaque projet est affiché en entier, image ou vidéo à gauche, texte à droite (empilés sur mobile) */
.project-list {
  display: grid;
  gap: 0.75rem;
  /* Rayons concentriques : le coin de la carte = celui de la vignette + la marge qui les sépare */
  --pad: 1rem;
  @media (width >= 56rem) { --pad: 1.5rem; gap: 1rem; }
  --thumb-radius: 6px;
  --card-radius: calc(var(--thumb-radius) + var(--pad));

  /* Chaque <li> porte deux calques au-dessus de la carte : l'ombre de survol (on n'anime que son opacité,
     pas l'ombre elle-même) et le reflet qui suit le curseur sur la bordure (--x, --y posés par main.js). */
  > li {
    position: relative;
    --x: 50%;
    --y: 50%;

    &::before, &::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: var(--card-radius);
      pointer-events: none;
    }
    &::before {
      z-index: -1;
      box-shadow: var(--shadow-2);
      opacity: 0;
    }
    /* Bordure seule : le dégradé n'est visible que dans l'anneau de 1px laissé par le masque */
    &::after {
      padding: 1px;
      background: radial-gradient(16rem circle at var(--x) var(--y),
        color-mix(in srgb, var(--accent) calc(var(--spot) * 100%), transparent), transparent 70%);
      mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    }
  }
}

@media (hover: hover) and (pointer: fine) {
  .project-list > li:hover {
    --spot: 1;
    &::before { opacity: 1; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-list > li {
    transition: --spot 0.3s;
    &::before { transition: opacity 0.25s ease; }
  }
}

.project {
  /* Largeur de l'image : pleine largeur sur mobile, colonne de gauche ailleurs */
  --thumb: 100%;
  @media (width >= 40rem) { --thumb: 16rem; }
  @media (width >= 56rem) { --thumb: 24rem; }
  @media (width >= 72rem) { --thumb: 32rem; }

  --card-top: light-dark(#ffffff, #1a2029);
  --card-bottom: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "thumb" "title" "pitch" "tags" "body";
  align-content: start;
  gap: 0.6rem 1.5rem;
  padding: var(--pad);
  background: linear-gradient(var(--card-top), var(--card-bottom));
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--highlight), var(--shadow-1);
  transition: border-color 0.2s;
  &:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }

  /* Texte calé sur la hauteur de l'image : le titre s'aligne sur son bord haut, les liens sur son bord bas */
  @media (width >= 40rem) {
    grid-template-columns: var(--thumb) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "thumb title"
      "thumb pitch"
      "thumb tags"
      "thumb body";
    column-gap: 2rem;
  }
  @media (width >= 56rem) { column-gap: clamp(2.5rem, 4vw, 4rem); }

  h3 {
    grid-area: title;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    font-size: var(--step-1);
  }
}

/* L'en-tête (image, titre, phrase, stack) n'a pas de boîte : ses éléments se placent dans la grille de la carte */
.project-head { display: contents; }

/* Contraste élevé : ombres et dégradés disparaissent, la bordure système de la carte prend le relais */
@media (forced-colors: active) {
  .project-list > li::after, .project-list > li::before { display: none; }
}

.project-thumb {
  grid-area: thumb;
  align-self: start;
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* Contour dessiné par-dessus l'image (outline) et non autour (border) : l'image garde exactement la largeur
     prévue dans sizes, sans rééchantillonnage qui la rendrait floue */
  outline: 1px solid var(--border);
  outline-offset: -1px;
  border-radius: var(--thumb-radius);
  background: var(--bg);

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Image accompagnée d'une capture de l'app mobile, posée en téléphone sur le coin bas droit (Ronde, VineCore) */
.project-media {
  grid-area: thumb;
  align-self: start;
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  > .project-thumb { grid-area: auto; }
}

.project-phone {
  position: absolute;
  right: -3%;
  bottom: -1.5rem;
  width: 24%;
  height: auto;
  border: 3px solid #0b0e13;
  border-radius: 12px;
  outline: 1px solid var(--border);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5);
  @media (width < 40rem) { right: 4%; width: 26%; }
}

.project-pitch {
  grid-area: pitch;
  color: var(--muted);
}

.project .tags { grid-area: tags; }

.project-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.6rem;
  .links { margin-top: auto; }
}

.badge {
  padding: 0.15rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-soft) padding-box;
  color: var(--accent);
  font: 600 0.8rem var(--mono);
}

/* « Projet phare » : bordure en dégradé conique ; le fond plein couvre l'intérieur, le dégradé ne reste visible
   que sur le bord */
.badge-phare {
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    conic-gradient(from var(--angle), var(--accent), transparent 35%, transparent 65%, var(--accent)) border-box;
}

/* Le dégradé tourne lentement, seulement quand le badge est à l'écran (classe posée par main.js) */
@media (prefers-reduced-motion: no-preference) {
  .badge-phare.is-visible { animation: badge-turn 6s linear infinite; }
}

@keyframes badge-turn {
  to { --angle: 360deg; }
}

.points {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);

  li {
    padding-left: 1.2rem;
    position: relative;
    &::before {
      content: "→";
      position: absolute;
      left: 0;
      color: var(--accent);
    }
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;

  > * {
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: 0.8rem var(--mono);
    color: var(--muted);
  }
}

.links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  &.muted { font-weight: 400; font-size: 0.9rem; }

  /* Soulignement fin, qui s'épaissit de gauche à droite au survol */
  a {
    text-decoration: none;
    background:
      linear-gradient(currentColor 0 0) 0 100% / 0 2px no-repeat,
      linear-gradient(color-mix(in srgb, currentColor 40%, transparent) 0 0) 0 100% / 100% 1px no-repeat;
    padding-bottom: 2px;
    &:hover { background-size: 100% 2px, 100% 1px; }
    @media (prefers-reduced-motion: no-preference) { transition: background-size 0.3s ease; }
    @media (forced-colors: active) { text-decoration: underline; }
  }
}

/* Parcours */
/* Mesures (dépliant sous la carte de Ronde) : trois cartes avant/après. Les barres sont des SVG (largeur en attribut, la CSP interdit les styles en ligne). */
.measure-intro {
  max-width: 60rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--space);
}

.measure {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--highlight), var(--shadow-1);

  h4 { font-size: var(--step-0); }
  .measure-sub { font: 600 0.8rem var(--mono); color: var(--accent); }
  p:last-child { color: var(--muted); font-size: 0.92rem; }

  dl {
    display: grid;
    gap: 0.5rem;
    margin-block: 0.75rem;
  }
  dl div {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    align-items: center;
    gap: 0.75rem;
  }
  dt { color: var(--muted); font-size: 0.9rem; }
  dd {
    display: grid;
    grid-template-columns: 1fr 5.5rem;
    align-items: center;
    gap: 0.75rem;
    font: 600 0.95rem var(--mono);
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
}

.bar {
  width: 100%;
  height: 0.6rem;
  border-radius: 999px;
  fill: var(--border);
  .fill { fill: var(--muted); }
  &.after .fill { fill: var(--accent); }
}

/* Dépliant sous un projet (mesures de Ronde) : pleine largeur de la carte, HTML natif sans JS */
.project-more {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);

  summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    list-style: none;
    &::-webkit-details-marker { display: none; }
    &::before {
      content: "▸";
      transition: rotate 0.2s;
    }
  }
  &[open] summary::before { rotate: 90deg; }

  /* Ouverture fluide : la hauteur passe de 0 à auto (navigateurs récents) ; ailleurs, ouverture instantanée */
  &::details-content {
    block-size: 0;
    overflow-y: clip;
    opacity: 0;
  }
  &[open]::details-content {
    block-size: auto;
    opacity: 1;
    padding-top: 1.25rem;
  }
  @media (prefers-reduced-motion: no-preference) {
    interpolate-size: allow-keywords;
    &::details-content {
      transition: block-size 0.4s ease, opacity 0.3s ease, padding-top 0.4s ease, content-visibility 0.4s allow-discrete;
    }
  }
  .measure-notes { margin-block: 1.25rem 0.75rem; }
}

.measure-notes { margin-block: 1.5rem 1rem; }

.timeline {
  display: grid;
  gap: 1.75rem;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;

  li {
    position: relative;
    display: grid;
    gap: 0.25rem;
    &::before {
      content: "";
      position: absolute;
      left: calc(-1.5rem - 6px);
      top: 0.45rem;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--bg);
      border: 2px solid var(--accent);
    }
  }

  h3 { font-size: var(--step-0); }
  p:not(.when) { color: var(--muted); }

  @media (width >= 48rem) {
    li { grid-template-columns: 12rem 1fr; gap: 1.5rem; }
  }
}

.when {
  font: 0.9rem var(--mono);
  color: var(--accent);
  padding-top: 0.15rem;
}

/* Compétences */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem var(--space);

  dt {
    font-weight: 600;
    margin-bottom: 0.6rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* Apparition au scroll, CSS seul, ignorée si non supportée ou si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .timeline li, .skills > div {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  @keyframes reveal {
    from { opacity: 0; translate: 0 1.5rem; }
  }
}

/* Sous-titre de la liste « Autres projets » */
.subhead {
  font: 600 var(--step-0) var(--mono);
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

/* Autres projets : une ligne par projet, nom cliquable puis une phrase */
.others {
  display: grid;
  gap: 0.6rem;
  color: var(--muted);

  li {
    padding-left: 1.2rem;
    position: relative;
    &::before {
      content: "→";
      position: absolute;
      left: 0;
      color: var(--accent);
    }
  }
  a { font-weight: 600; }
}

