/* vincent-chabot.com — reproduction de la variante A du design Claude Design */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons ---------- */
:root {
  --bg: #f3f1ec;
  --ink: #151513;
  --line: #dcd8cf;
  --border: #bdb8ad;
  --muted: #4f4e49;
  --faint: #706d66;       /* design : #7a776f (3,96:1), foncé pour atteindre 4,5:1 */
  --card: #f7f5f1;
  --shot: #e6e2d9;
  --chip: #ebe8e0;
  --chip-ink: #3a3935;
  --green: #2f9e5b;

  --d-line: #34332f;
  --d-muted: #a09d94;
  --d-text: #c9c6bd;
  --d-faint: #8f8c84;
  --d-chip-border: #45433e;
  --d-chip-ink: #e4e1d8;

  /* Repli hexadécimal des couleurs oklch du design */
  --accent: #c73700;        /* oklch(0.55 0.19 38) */
  --accent-hover: #c73700;  /* design : oklch(0.6 0.19 38), foncé pour le contraste */
  --accent-block: #d24100;  /* oklch(0.58 0.19 38) */
  --accent-light: #f68a4f;  /* oklch(0.74 0.15 48) */

  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", serif;
  --gutter: clamp(20px, 4vw, 48px);
  --focus: var(--ink);
}
@supports (color: oklch(0 0 0)) {
  :root {
    --accent: oklch(0.55 0.19 38);
    --accent-hover: oklch(0.55 0.19 38);
    --accent-block: oklch(0.58 0.19 38);
    --accent-light: oklch(0.74 0.15 48);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 0.875rem;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wrap { max-width: 1240px; margin: 0 auto; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 241, 236, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; }
.nav {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  font-size: 0.875rem; flex-wrap: wrap; justify-content: flex-end;
}
.nav ul { display: contents; }
.nav .nav-contact { font-weight: 500; }
/* Zone de clic agrandie (WCAG 2.5.8) sans décaler la mise en page : padding compensé par une marge négative. */
.nav li a { display: inline-block; padding: 6px; margin: -6px; }
.lang {
  display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px;
  font-family: var(--mono); font-size: 0.75rem;
}
.lang a { padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang a:hover { color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Héros ---------- */
.hero {
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.hero-text { display: flex; flex-direction: column; gap: 30px; }
.status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--muted);
}
.status-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
.hero h1 {
  font-weight: 500; font-size: clamp(2.75rem, 6.8vw, 6rem);
  line-height: .98; letter-spacing: -.035em; text-wrap: balance;
}
.hero h1 .serif { letter-spacing: -.01em; color: var(--accent); }
.hero-sub {
  max-width: 560px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: var(--muted); text-wrap: pretty;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 15px 24px; border-radius: 999px; font-weight: 500; font-size: 0.9375rem; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.portrait {
  position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 580px;
  border-radius: 20px; overflow: hidden; background: var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.whoami {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(21, 21, 19, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--bg); border-radius: 14px; padding: 14px 16px;
  font-family: var(--mono); font-size: 0.78125rem; line-height: 1.7;
}
.whoami .prompt { color: var(--d-muted); }

/* ---------- Chiffres ---------- */
.stats { border-top: 1px solid var(--line); }
.stats ul {
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.stats li { padding: 28px 20px 32px 0; display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-size: clamp(2.125rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* ---------- Titres de section ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-title {
  font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.75rem);
  letter-spacing: -.03em; line-height: 1.02; text-wrap: balance;
}
.section-num { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

/* ---------- IA (bloc sombre) ---------- */
.ai { background: var(--ink); color: var(--bg); --focus: #fff; }
.ai .wrap {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  display: flex; flex-direction: column; gap: 56px;
}
.ai .section-title { max-width: 780px; }
.ai .section-title .serif { color: var(--accent-light); }
.ai .section-num { color: var(--d-muted); }
.ai-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1px; background: var(--d-line); border: 1px solid var(--d-line);
  border-radius: 20px; overflow: hidden;
}
.ai-card { background: var(--ink); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.ai-card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-light); }
.ai-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.ai-card p { font-size: 1rem; line-height: 1.6; color: var(--d-text); text-wrap: pretty; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tags li {
  font-family: var(--mono); font-size: 0.75rem; padding: 5px 10px;
  border: 1px solid var(--d-chip-border); border-radius: 999px; color: var(--d-chip-ink);
}

/* ---------- Projets ---------- */
.projects {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  display: flex; flex-direction: column; gap: 48px;
}
.projects .section-title { max-width: 760px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--card); color: var(--ink);
}
.card:hover { border-color: var(--ink); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: inherit; }
.card-link:focus-visible { outline: none; }
.card-shot {
  width: 100%; height: auto; aspect-ratio: 1200 / 630;
  border-bottom: 1px solid var(--line); background-color: var(--shot);
  object-fit: cover; object-position: top center;
}
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 1.625rem; font-weight: 500; letter-spacing: -.02em; }
.card-domain { font-family: var(--mono); font-size: 0.78125rem; color: var(--accent); }
.card-kind { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.card p { font-size: 1rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chips li {
  font-family: var(--mono); font-size: 0.75rem; padding: 4px 9px;
  background: var(--chip); border-radius: 999px; color: var(--chip-ink);
}

/* ---------- Parcours ---------- */
.path { border-top: 1px solid var(--line); }
.path .wrap {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px;
}
.path-head { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; align-self: start; }
.path-list { display: flex; flex-direction: column; }
.path-list li {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.path-years { font-family: var(--mono); font-size: 0.8125rem; color: var(--faint); padding-top: 5px; }
.path-body { display: flex; flex-direction: column; gap: 8px; }
.path-title { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.path-title h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.015em; }
.path-role { font-size: 0.875rem; color: var(--accent); }
.path-body p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; overflow-wrap: anywhere; }
/* Police agrandie sur petit écran : l'année passe au-dessus du texte (en em pour suivre le réglage du navigateur). */
@media (max-width: 19.99em) {
  .path-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .path-years { padding-top: 0; }
}

/* ---------- Compétences ---------- */
.stack { padding: 0 var(--gutter) clamp(72px, 10vw, 128px); }
.stack dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 28px; padding-top: 36px; border-top: 1px solid var(--ink);
}
.stack dl > div { display: flex; flex-direction: column; gap: 8px; }
.stack dt { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.stack dd { font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact { padding: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); --focus: #fff; }
.contact-box {
  max-width: 1240px; margin: 0 auto;
  background: var(--accent-block); color: #fff; border-radius: 28px;
  padding: clamp(48px, 8vw, 104px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; gap: 36px;
}
.contact-box .section-num { color: #fff; }
.contact h2 {
  font-weight: 500; font-size: clamp(2.5rem, 6.6vw, 6rem);
  letter-spacing: -.04em; line-height: .98; max-width: 980px; text-wrap: balance;
}
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-lg { padding: 17px 28px; border-radius: 999px; font-weight: 500; font-size: 1rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border: 1px solid #fff; color: #fff; }
.btn-dark:hover, .btn-outline:hover { background: #fff; color: var(--ink); }
.contact-status { font-size: 0.9375rem; }

/* ---------- Pied de page ---------- */
.site-footer {
  max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--muted); font-family: var(--mono);
}
.site-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }

/* ---------- Pages simples (mentions légales, 404) ---------- */
.page {
  max-width: 760px; margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(72px, 10vw, 128px);
  display: flex; flex-direction: column; gap: 40px;
}
.page h1 { font-weight: 500; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page section { display: flex; flex-direction: column; gap: 10px; }
.page h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.015em; }
.page p, .page address { font-size: 1rem; line-height: 1.6; color: var(--muted); font-style: normal; }
.page p a, .page address a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Préférences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
}
