/* justpita.net — page CV. Couleurs et polices : /static/theme.css (commun avec jeux.justpita.net) */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--f-body);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(16px, 4vw); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; }
.eyebrow {
  font: 500 12px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- en-tête */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--f-display); color: var(--fg); text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.brand-mark i { width: 5px; height: 5px; border-radius: 1px; background: var(--line); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { background: var(--ok); }
.brand-mark i:nth-child(3) { background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--f-body);
  padding: 11px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); }

footer { border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--muted); }
footer code { font-family: var(--f-mono); }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

/* ---- en-tête : navigation */
header.top .wrap { flex-wrap: wrap; }
.nav { display: flex; gap: 18px; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

/* ---- profil (en-tête du tableau de bord) */
.profile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; padding-block: 36px 20px; }
.profile-id { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1 1 520px; }
.avatar { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); flex: none; }
.profile-text { display: grid; gap: 6px; min-width: 0; }
.profile h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.lead { margin: 0; max-width: 64ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- grille du tableau de bord */
section { scroll-margin-top: 72px; }
.kpis { margin-bottom: 14px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }

/* liste façon « équipements » */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.row-main { display: grid; gap: 3px; min-width: 0; }
.row-main strong { font-weight: 600; }
.row-main p { margin: 0; color: var(--muted); font-size: .9rem; }
.pill { font: 500 12px/1 var(--f-body); color: var(--muted); background: var(--sunken); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.row-link { font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.row-link:hover { text-decoration: underline; }

/* contact */
.links { list-style: none; margin: 0; padding: 6px 18px 4px; display: grid; }
.links li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.v, .links a { font: 500 14px/1.3 var(--f-body); word-break: break-all; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.qr { margin: 0; padding: 4px 18px 18px; display: grid; gap: 6px; justify-items: center; }
.qr img { display: block; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--line); }

/* compétences façon « réglages » */
.settings { margin: 0; }
.settings > div { display: grid; grid-template-columns: 180px 1fr; gap: 8px 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.settings > div:last-child { border-bottom: 0; }
.settings dt { font-weight: 600; }
.settings dd { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 10px; border-radius: 999px; color: var(--fg); }

#competences { margin-bottom: 14px; }

.legal { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 24px 8px; display: grid; gap: 8px; max-width: 75ch; }
.legal h2 { font-size: 1.05rem; }
.legal p { margin: 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profile { padding-block: 24px 14px; }
  .profile-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .avatar { width: 80px; height: 80px; }
  .nav { gap: 14px; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row .pill, .row .row-link { grid-column: 2; justify-self: start; }
  .settings > div { grid-template-columns: 1fr; }
}

/* ---- impression / export PDF : version CV sobre */
@media print {
  :root { --bg: #fff; --surface: #fff; --sunken: #f1f1f1; --fg: #000; --muted: #333; --line: #ccc; --accent: #0050b8; --shadow: none; color-scheme: light; }
  header.top { position: static; box-shadow: none; }
  header.top .nav, .actions, .qr, footer, .row-link, .kpis { display: none !important; }
  body { font-size: 11pt; }
  .profile { padding-block: 0 12px; }
  .dash-grid { grid-template-columns: 1fr; }
  .panel, .row, .settings > div { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---- parcours : frise chronologique (formation, expériences, certifications) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.step { position: relative; padding-left: 32px; }
.step::before { content: ""; position: absolute; left: 0; top: 20px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-sizing: border-box; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px 18px; display: grid; gap: 4px; }
.step-when { font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.step h3 { font-size: 1.05rem; }
.step-where { font-weight: 500; color: var(--accent); font-size: .95rem; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
@media print { .step-card { box-shadow: none; } }
