/* CV sheet: A4 in print (PDF source), paper on desktop, reflowed on mobile. */
@page { size: A4; margin: 0; }

.cv-toolbar {
  max-width: 210mm;
  margin: 28px auto 14px;
  padding: 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cv-label { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0; }

.sheet {
  --bar-bg: #EEF2F6;
  --bar-border: #D9E2EC;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Noto Sans", "Carlito", "Liberation Sans", var(--font);
  font-size: 9pt;
  line-height: 1.4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  width: 210mm;
  padding: 11mm 14.5mm 7mm 14.5mm;
}
.sheet * { box-sizing: border-box; margin: 0; padding: 0; }

.sheet header { text-align: center; margin-bottom: 10pt; }
.sheet .name { font-size: 18.5pt; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; line-height: 1.18; margin-bottom: 3.5pt; }
.sheet .title { font-size: 9.6pt; font-weight: 500; color: var(--navy); letter-spacing: 0.02em; margin-bottom: 3pt; }
.sheet .contact { font-size: 9.1pt; color: var(--muted); letter-spacing: 0.01em; }
.sheet .contact a { color: var(--navy); text-decoration: none; font-weight: 500; }

.sheet .section-bar {
  background: var(--bar-bg);
  border-top: 0.6pt solid var(--bar-border);
  border-bottom: 0.6pt solid var(--bar-border);
  text-align: center;
  padding: 3.5pt 0;
  margin: 11pt 0 8pt 0;
  font-size: 8.9pt;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}
.sheet .section-bar.first { margin-top: 0; }

.sheet .entry { display: grid; grid-template-columns: 23mm 1fr 17mm; column-gap: 2.8mm; align-items: start; margin-bottom: 8pt; }
.sheet .entry:last-child { margin-bottom: 0; }
.sheet .entry.compact { margin-bottom: 6pt; }
.sheet .entry.compact:last-child { margin-bottom: 0; }

.sheet .col-date { font-size: 8.8pt; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.38; padding-top: 0.3pt; }
.sheet .col-city { font-size: 8.8pt; font-weight: 600; color: var(--navy); text-align: right; line-height: 1.38; padding-top: 0.3pt; }
.sheet .col-city .city-line { display: block; }
.sheet .col-main { min-width: 0; }
.sheet .col-main.span-2 { grid-column: 2 / 4; }

.sheet .entry-head { font-size: 9.15pt; line-height: 1.36; margin-bottom: 2.2pt; }
.sheet .entry-head.single-line { margin-bottom: 0; }
.sheet .entity { font-weight: 700; color: var(--navy); }
.sheet .role { font-weight: 600; color: var(--ink); }
.sheet .degree { font-weight: 500; color: var(--ink); }
.sheet .entry-intro, .sheet .entry-desc { font-size: 8.75pt; line-height: 1.36; color: var(--ink); }
.sheet .entry-intro { margin-bottom: 2.5pt; }
.sheet .sub { font-size: 8.6pt; font-style: italic; color: var(--muted); margin: -1pt 0 2.4pt; }

.sheet .bullets { list-style: none; }
.sheet .bullets li { position: relative; padding-left: 9pt; font-size: 8.75pt; line-height: 1.36; color: var(--ink); margin-bottom: 1.4pt; }
.sheet .bullets li:last-child { margin-bottom: 0; }
.sheet .bullets li::before { content: "•"; position: absolute; left: 1pt; top: 0; color: var(--navy); font-weight: 700; opacity: 0.7; }
.sheet .lead { font-weight: 600; color: var(--ink); }

.sheet .lang { font-size: 8.8pt; line-height: 1.36; }
.sheet .lang b { font-weight: 600; color: var(--ink); }
.sheet .sep { color: #9FB0C2; margin: 0 6pt; }

@media screen {
  @media (min-width: 961px) { .cv-toolbar { max-width: calc(210mm * 1.2); padding: 0; } }
  .sheet {
    margin: 0 auto 56px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(27, 54, 93, 0.08);
    zoom: 1.2;
  }
  @media (max-width: 960px) { .sheet { zoom: 1; } }

  @media (max-width: 760px) {
    .cv-toolbar { margin-top: 20px; }
    .sheet {
      width: auto;
      margin: 0 0 40px;
      border: 0;
      border-top: 1px solid var(--line);
      box-shadow: none;
      padding: 22px 16px 28px;
      font-size: 14px;
    }
    .sheet .name { font-size: 26px; }
    .sheet .title { font-size: 15px; }
    .sheet .contact { font-size: 15px; }
    .sheet .section-bar { font-size: 13px; margin: 26px 0 14px; }
    .sheet .entry, .sheet .entry.compact { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; margin-bottom: 18px; }
    .sheet .col-date { grid-column: 1; grid-row: 1; }
    .sheet .col-city { grid-column: 2; grid-row: 1; }
    .sheet .col-city .city-line { display: inline; }
    .sheet .col-city .city-line + .city-line::before { content: " · "; color: #9FB0C2; }
    .sheet .col-main, .sheet .col-main.span-2 { grid-column: 1 / -1; grid-row: 2; }
    .sheet .col-date, .sheet .col-city { font-size: 13px; }
    .sheet .entry-head { font-size: 15px; margin-bottom: 4px; }
    .sheet .sub, .sheet .entry-intro, .sheet .entry-desc, .sheet .bullets li, .sheet .lang { font-size: 14px; line-height: 1.5; }
    .sheet .bullets li { padding-left: 14px; margin-bottom: 4px; }
  }
}

@media print {
  html, body { width: 210mm; background: #FFFFFF; margin: 0; }
  .site-header, .cv-toolbar, .site-footer { display: none !important; }
  .sheet { margin: 0; border: 0; box-shadow: none; zoom: 1; }
}

/* French runs longer than English: tighten vertical rhythm so the PDF stays on one A4 page. */
@media print {
  .sheet[lang="fr"] { padding-top: 9.5mm; padding-bottom: 5mm; }
  .sheet[lang="fr"] .section-bar { margin: 9pt 0 6.5pt; }
  .sheet[lang="fr"] .section-bar.first { margin-top: 0; }
  .sheet[lang="fr"] .entry { margin-bottom: 6.5pt; }
  .sheet[lang="fr"] .entry.compact { margin-bottom: 5pt; }
}
