/* CV page — landing centrée, carte blanche, PDF intégré */
:root {
  --bg: #f3f4f6;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --accent: #0b57d0;
  --border: #e5e7eb;
  --card: #ffffff;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --fg: #e8e8e8;
    --muted: #9aa0a6;
    --accent: #8ab4f8;
    --border: #2a2d33;
    --card: #1a1d23;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

/* Barre supérieure */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}
.bar .name { font-weight: 700; font-size: 1.05rem; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn.big { padding: 0.7rem 1.4rem; font-size: 1rem; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* Carte centrée */
main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  justify-content: center;
}
.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}
.card-head h1 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}
.card-head .role { margin: 0; color: var(--muted); font-size: 1rem; }
.card-head .meta { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.card-head .meta a { color: var(--accent); text-decoration: none; }
.card-head .meta a:hover { text-decoration: underline; }

.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.25rem;
}

/* Visionneuse PDF : grande, cadre léger */
.pdf-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #525659;
}
.pdf-wrap object {
  display: block;
  width: 100%;
  height: min(78vh, 1000px);
}

/* Version web (cv.html, générée par Pandoc) */
.web { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.web h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.web h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  margin-top: 2rem;
}
.web h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.web a { color: var(--accent); }
.web ul { margin: 0.3rem 0; padding-left: 1.25rem; }
.web li { margin: 0.15rem 0; }
.web strong { font-weight: 650; }

@media print {
  .bar, .actions { display: none; }
  .card { box-shadow: none; border: none; }
  .pdf-wrap object { height: 100vh; }
}
