/* François Vasnier — CV / site personnel. Sans dépendance. */

:root {
  --ink:        #0c1a22;
  --ink-2:      #12242e;
  --paper:      #fbf8f4;
  --paper-2:    #f3eee6;
  --text:       #1b2a33;
  --text-soft:  #5a6b76;
  --line:       #e3dcd1;
  --gold:       #b8793a;
  --gold-soft:  #e8b06a;
  --on-ink:     #eef3f5;
  --on-ink-soft:#9fb3bd;

  --wrap: 1120px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(12,26,34,.05), 0 12px 28px -18px rgba(12,26,34,.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0;
}

a { color: inherit; }

p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--on-ink); padding: .75rem 1.1rem; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- barre haute ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.top.scrolled { border-bottom-color: var(--line); }

.top-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.sig {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.sig strong { font-weight: 700; }

.top-nav { display: flex; gap: 1.6rem; }
.top-nav a {
  font-size: .92rem; color: var(--text-soft); text-decoration: none;
  transition: color .18s ease;
}
.top-nav a:hover { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: .95rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--gold); }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 1.3rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #37a06a; box-shadow: 0 0 0 4px rgba(55,160,106,.16);
}

h1 { font-size: clamp(2.6rem, 6.8vw, 4.6rem); margin-bottom: 1.4rem; }
h1 em { font-style: italic; color: var(--gold); font-weight: 400; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--text-soft); max-width: 46ch; }

.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }

.hero-links {
  list-style: none; margin: 0; padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  font-size: .94rem;
}
.hero-links a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.hero-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.card-id {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card-id::after {
  content: ""; position: absolute; inset: auto -40% -55% auto;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,176,106,.22), transparent 70%);
}
.card-id .mono {
  font-family: Fraunces, Georgia, serif; font-size: 1.6rem; font-weight: 700;
  color: var(--gold-soft);
  width: 54px; height: 54px; border-radius: 12px;
  border: 1px solid rgba(232,176,106,.4);
  display: grid; place-items: center;
  margin-bottom: 1.6rem;
}
.card-id dl { margin: 0; display: grid; gap: 1.1rem; position: relative; }
.card-id dt {
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--on-ink-soft); margin-bottom: .22rem;
}
.card-id dd { margin: 0; font-size: .98rem; }

/* ---------- bandes ---------- */

.band { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--paper-2); }

.kicker {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem; font-weight: 600;
}
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; margin-bottom: 2.6rem; }
.sub { color: var(--text-soft); max-width: 55ch; margin-top: -1.8rem; margin-bottom: 2.6rem; }

.grid-4, .grid-3 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid-4 article, .grid-3 article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
}
.band.alt .grid-4 article, .band.alt .grid-3 article { background: var(--paper); }
.grid-4 h3, .grid-3 h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.grid-4 p { font-size: .95rem; color: var(--text-soft); margin: 0; }

/* ---------- frise ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline > li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.timeline > li:first-child { border-top: 0; padding-top: 0; }

.when {
  font-size: .9rem; color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  padding-top: .3rem;
}

.what h3 { font-size: 1.28rem; margin-bottom: .35rem; }
.what h3 .at { color: var(--gold); font-weight: 400; font-style: italic; }
.what .role {
  font-size: .86rem; letter-spacing: .03em; color: var(--text-soft);
  margin-bottom: .9rem;
}
.what p:not(.role) { color: var(--text); max-width: 62ch; }

.tags, .chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding: 0; }
.tags li, .chips li {
  font-size: .8rem; color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem;
  background: var(--paper);
}
.chips { margin-top: 0; }

/* ---------- contact ---------- */

.contact { background: var(--ink); color: var(--on-ink); border-top: 0; }
.contact .kicker { color: var(--gold-soft); }
.contact h2 { color: var(--on-ink); }
.contact .sub { color: var(--on-ink-soft); }

.contact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ct {
  display: block; text-decoration: none;
  border: 1px solid rgba(238,243,245,.16);
  border-radius: var(--r);
  padding: 1.4rem 1.4rem;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ct:hover {
  border-color: var(--gold-soft);
  background: rgba(232,176,106,.07);
  transform: translateY(-2px);
}
.ct-k {
  display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-ink-soft); margin-bottom: .45rem;
}
.ct-v { display: block; font-size: 1rem; color: var(--on-ink); overflow-wrap: anywhere; hyphens: none; }

/* ---------- pied ---------- */

.foot { background: var(--ink); color: var(--on-ink-soft); padding: 2rem 0 2.6rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; }
.foot p { margin: 0; }
.foot a { color: var(--gold-soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- apparition ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .timeline > li { grid-template-columns: 1fr; gap: .6rem; }
  .when { padding-top: 0; font-weight: 500; color: var(--gold); }
}

/* ---------- impression : le CV sur une feuille ---------- */

@media print {
  :root { --paper: #fff; --paper-2: #fff; }
  .top, .cta, .skip, .card-id::after { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .band, .hero { padding: 1rem 0; border-top: 1px solid #ccc; break-inside: avoid; }
  .contact, .foot, .card-id { background: #fff !important; color: #000 !important; }
  .contact h2, .ct-v, .card-id dd { color: #000 !important; }
  .contact .sub, .ct-k, .card-id dt, .foot { color: #444 !important; }
  .card-id .mono { color: #000 !important; border-color: #999; }
  .ct { border-color: #ccc; }
  .timeline > li { break-inside: avoid; }
  h1 { font-size: 26pt; }
  .band h2 { font-size: 15pt; margin-bottom: 1rem; }
  a { text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
