/* alexandre-vasseur.com — même système graphique qu'alvatech.fr : blanc, Instrument Sans,
   filets fins, accent ambre, pied de page noir. Référence : alvatech/public/css/site.css. */
:root {
  --bg: #FFFFFF; --ink: #121417; --ink-2: #5A606B; --line: #E3E5E9; --line-2: #C8CCD3;
  --amber: #D97706; --amber-ink: #9A4D00; --amber-light: #F4B14A;
  --f: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans-latin-wght.woff2') format('woff2'); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--f); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.wrap { max-width: 1240px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }

/* ——— Marque : le nom, avec le point ambre du logo Alvatech ——— */
.brand { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand::after { content: '.'; color: var(--amber); }

/* ——— Navigation ——— */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.top nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.top nav a { text-decoration: none; color: var(--ink-2); transition: color 160ms ease; }
@media (max-width: 720px) { .top .wrap { height: 68px; } .top nav { gap: 16px; font-size: 16px; } }
/* Écran étroit : le lien Projets est déjà dans le hero, on garde Parcours et Contact. */
@media (max-width: 480px) { .top nav a:first-child { display: none; } }

/* ——— Hero avec ruban ——— */
.hero { position: relative; overflow: hidden; min-height: calc(92svh - 80px); display: grid; align-content: start; }
@media (max-width: 720px) { .hero { min-height: calc(92svh - 68px); } }
.hero canvas, .hero-still, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Téléphone : rendu fixe du ruban en image, three.js n'est pas chargé. */
.hero-still { display: none; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 699px) { .hero-still { display: block; } .hero canvas { display: none; } }
.hero canvas, .hero-still { -webkit-mask-image: linear-gradient(#000 72%, transparent 100%); mask-image: linear-gradient(#000 72%, transparent 100%); }
.hero-fallback { display: none; background: radial-gradient(55% 45% at 80% 75%, rgba(217, 119, 6, .2), transparent 70%); }
.hero.no-gl .hero-fallback { display: block; }
.hero.no-gl canvas, .hero.no-gl .hero-still { display: none; }
.hero .claim { position: relative; z-index: 1; width: 100%; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 26vh, 260px); display: grid; gap: clamp(28px, 4vw, 44px); }
.hero h1 { font-size: clamp(42px, 7.2vw, 96px); line-height: 0.98; letter-spacing: -0.035em; max-width: 13ch; }
.intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; max-width: 60ch; }
.intro img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.intro p { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); }
.intro p a { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .intro { gap: 14px; } .intro img { width: 48px; height: 48px; } }

/* ——— Lien d'action ——— */
.link { display: inline-block; font-size: 17px; font-weight: 500; text-decoration: none; padding-bottom: 10px;
  border-bottom: 2px solid var(--amber); transition: border-color 160ms ease, color 160ms ease; }
.links { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: baseline; }

/* ——— Sections ——— */
.section { border-top: 1px solid var(--line); }
/* Pas de filet juste sous le ruban : la première section suit le hero sans trait. */
.hero + main > .section:first-child { border-top: 0; }
.section > .wrap { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 28px; }
.section h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.split { display: grid; gap: 36px; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; } }
.split .side p { margin-top: 18px; color: var(--ink-2); max-width: 36ch; }
.side .link { margin-top: 24px; }

/* ——— Projets ——— */
.projects { display: grid; }
.project { border-top: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.project:first-child { border-top: 0; padding-top: 0; }
.project:last-child { border-bottom: 1px solid var(--line); }
.project h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.1; }
.project h3 a { text-decoration: none; }
.project .what { font-size: 15px; font-weight: 500; color: var(--amber-ink); }
.project p { color: var(--ink-2); max-width: 60ch; }
.project .link { justify-self: start; margin-top: 6px; }
.shots { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 640px) { .shots { grid-template-columns: 1fr 1fr; } }
.shots figure { display: grid; gap: 8px; }
.shots img { display: block; width: 100%; }
.shots figcaption { font-size: 14px; color: var(--ink-2); }

/* ——— Parcours ——— */
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { border-top: 1px solid var(--line); padding: 22px 0; display: grid; gap: 6px 24px; }
.cv li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .cv li { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.2fr); } }
.cv .yr { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cv h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.cv .org { color: var(--ink-2); }
.cv p { color: var(--ink-2); }

/* ——— Outils, archive ——— */
.tools { display: grid; gap: 10px; max-width: 60ch; }
.tools p { color: var(--ink-2); }
.tools p strong { color: var(--ink); font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; }
@media (min-width: 640px) { .list a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: baseline; } }
.list strong { font-weight: 500; font-size: 19px; letter-spacing: -0.015em; }
.list span { color: var(--ink-2); }

/* ——— Pied de page noir ——— */
footer.end { background: var(--ink); color: #FFFFFF; }
footer.end .wrap { padding-block: clamp(56px, 8vw, 104px) 28px; display: grid; gap: 28px; }
footer.end h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; max-width: 18ch; }
footer.end .links { gap: 14px 32px; }
footer.end .link { border-color: #FFFFFF; }
footer.end .coords { display: grid; gap: 4px; color: #A6ABB5; }
footer.end .coords a { color: #FFFFFF; text-decoration: none; }
footer.end .sign { margin-top: clamp(24px, 6vw, 72px); font-size: clamp(44px, 9vw, 128px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-decoration: none; }
footer.end .sign::after { content: '.'; color: var(--amber); }
footer.end .foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid #2C3038; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #A6ABB5; }
footer.end a:focus-visible { outline-color: var(--amber-light); }

/* ——— Survol, uniquement avec une souris ——— */
@media (hover: hover) and (pointer: fine) {
  .top nav a:hover, .project h3 a:hover, .list a:hover strong, .intro p a:hover { color: var(--amber-ink); }
  .link:hover { color: var(--amber-ink); border-color: var(--amber-ink); }
  footer.end .link:hover { color: var(--amber-light); border-color: var(--amber-light); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
