/* ==========================================================================
   Impression / export PDF : CV d'une page au style « geek »
   (chargée avec media="print", après toutes les autres feuilles)
   ========================================================================== */

@page {
  size: A4;
  margin: 11mm 12mm;
}

/* ---- Thème clair forcé, sans fond ni ombre ---- */
:root,
:root[data-theme] {
  --color-bg: #fff;
  --color-fg: #000;
  --color-muted: #555;
  --color-line: #ccc;
  --color-card: #fff;
  --color-accent: #000;
}

html,
body {
  background: #fff !important;
}

* {
  color: #000 !important;
  background: transparent !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

body {
  font:
    7.9pt/1.32 "Geist",
    Arial,
    sans-serif;
}

main {
  max-width: none;
  padding: 0;
}

/* ---- Éléments propres à l'écran ---- */
nav,
footer,
.hud,
.scroll-progress,
.view-portfolio,
.links,
.btn,
.xcode,
.app-store,
.location,
.experience-section,
.contact-section,
.lock-button,
.lockscreen-date,
.notification--job,
.notification-icon,
.notification b,
.home-screen,
.home-indicator,
.skill-visual,
.skill-count,
.build-timeline,
h2 .section-index {
  display: none !important;
}

.topbar {
  animation: none;
}

.reveal {
  opacity: 1 !important;
  translate: none !important;
}

/* ---- Mise en page ---- */
.hero {
  display: block;
  padding: 0;
}

.tile {
  overflow: visible;
  border-radius: 0;
}

section {
  padding: 5px 0 0;
}

h2 {
  margin: 0 0 4px;
  padding-bottom: 2px;
  border-bottom: 1px dashed #000;
  font:
    700 8.4pt "Geist Mono",
    monospace;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

h2::before {
  content: "## ";
  color: #999 !important;
}

h2 span::after {
  content: none;
}

/* ---- En-tête : rôle, nom, profil, contact ---- */
.lockscreen {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
}

.lockscreen > .mono {
  display: block;
  color: #666 !important;
  font:
    500 7.4pt "Geist Mono",
    monospace;
  letter-spacing: 0.04em;
}

.lockscreen > .mono::before {
  content: "// ";
}

.lockscreen h1 {
  margin: 3px 0 4px;
  font:
    800 21pt/1 "Geist Mono",
    monospace;
  letter-spacing: -0.05em;
  text-indent: 0;
  opacity: 1 !important;
  transform: none !important;
}

.name-part {
  display: inline;
}

.name-part + .name-part::before {
  content: " ";
}

.name-part--surname {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-indent: 0;
  opacity: 1;
}

.notifications {
  display: block;
  max-width: none;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
}

.notification {
  display: block;
  padding: 0;
  border-radius: 0;
}

.notification p {
  opacity: 1;
}

.notification .lead {
  margin: 2px 0 3px;
  color: #333 !important;
  font-size: 8.2pt;
}

.lead::before,
.lead::after {
  font-family: "Geist Mono", monospace;
  color: #999 !important;
}

.lead::before {
  content: "/* ";
}

.lead::after {
  content: " */";
}

.print-contact {
  display: block;
  margin: 0 0 3px;
  color: #444 !important;
  font:
    7.2pt "Geist Mono",
    monospace;
}

.print-contact::before {
  content: "$ contact  ";
  color: #999 !important;
}

/* ---- Compétences : « catégorie: [a, b, c] » ---- */
.skills-grid {
  display: block;
}

.skill-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  margin: 0 0 1px;
  padding: 0;
  overflow: visible;
  border: 0;
}

.skill-card h3 {
  display: block;
  margin: 0;
  color: #555 !important;
  font:
    500 7.4pt/1.5 "Geist Mono",
    monospace;
  letter-spacing: 0;
  text-transform: lowercase;
}

.skill-card h3::after {
  content: ":";
}

.chips {
  display: block !important;
}

.chips span {
  display: inline;
  padding: 0;
  border: 0;
  font-size: 8.2pt;
}

.chips span:not(:last-child)::after {
  content: ", ";
}

.skill-card .chips::before,
.skill-card .chips::after {
  font-family: "Geist Mono", monospace;
  color: #999 !important;
}

.skill-card .chips::before {
  content: "[";
}

.skill-card .chips::after {
  content: "]";
}

/* ---- Expériences (version texte) ---- */
.print-experience {
  display: block;
}

.print-job {
  margin: 0 0 2.5px;
  break-inside: avoid;
}

.print-job-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8.3pt;
}

.print-job-header b {
  font:
    700 8.6pt "Geist",
    Arial,
    sans-serif;
}

.print-job-dates {
  color: #444 !important;
  font:
    500 7.2pt "Geist Mono",
    monospace;
  white-space: nowrap;
}

.print-job-dates::before {
  content: "[";
}

.print-job-dates::after {
  content: "]";
}

.print-job ul {
  margin: 0;
  padding-left: 2px;
  font-size: 7.9pt;
  list-style: none;
}

.print-job li {
  margin: 0;
}

.print-job li::before {
  content: "› ";
  font-family: "Geist Mono", monospace;
  color: #999 !important;
}

.print-job small {
  display: block;
  color: #555 !important;
  font:
    6.9pt/1.4 "Geist Mono",
    monospace;
}

/* ---- Formation (version texte) ---- */
.education-print {
  display: block;
}

.education-entry {
  margin: 0 0 1px;
}

.education-years {
  display: inline-block;
  width: 96px;
  color: #444 !important;
  font:
    500 7.2pt "Geist Mono",
    monospace;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.education-entry h3 {
  display: inline;
  margin: 0;
  font:
    700 8.4pt Arial,
    sans-serif;
  letter-spacing: -0.03em;
}

.education-entry p {
  display: inline;
  margin: 0;
  font-size: 8pt;
}

.education-entry p::before {
  content: " — ";
}

/* ---- Pied de page ---- */
.print-footer {
  display: block;
  margin: 10px 0 0;
  padding-top: 4px;
  border-top: 1px dashed #999 !important;
  color: #888 !important;
  font:
    7pt "Geist Mono",
    monospace;
}
