/* Styles dédiés à la page CV — s'appuie sur main.css (variables, .content, .card-*) */

.content-cv {
  min-height: 720px;
}
.content-cv .card-intro {
  font-size: 0.9rem;
  color: var(--site-gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Header infos perso */
.cv-header {
  margin-bottom: 2rem;
}
.cv-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.cv-photo {
  display: none; /* visible uniquement à l'impression */
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--site-cyan);
  flex-shrink: 0;
}
.cv-header-text {
  flex: 1;
  min-width: 0;
}
.cv-header .cv-name {
  margin-bottom: 0.25rem;
}
.cv-header .cv-title {
  margin-bottom: 0;
}
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--site-links-border);
  border-bottom: 1px solid var(--site-links-border);
  font-size: 0.7rem;
  color: var(--site-cyan);
}
.cv-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cv-contact-icon {
  opacity: 0.9;
}
.cv-contact-icon.cv-icon-linkedin,
.cv-contact-icon.cv-icon-svg {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.cv-contact-icon.cv-icon-linkedin svg,
.cv-contact-icon.cv-icon-svg svg {
  display: block;
  width: 14px;
  height: 14px;
}

/* Description */
.cv-description {
  font-size: 0.9rem;
  color: var(--site-gray);
  line-height: 1.6;
  margin: 0;
}

/* Sections CV */
.cv-section {
  margin-bottom: 2.25rem;
}
.cv-section-title {
  font-size: 0.7rem;
  color: var(--site-magenta);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--site-links-border);
}

/* Bloc employeur — pas de bordure gauche (uniquement sur .cv-job) */
.cv-employer {
  margin-bottom: 2rem;
  padding-left: 0;
  border-left: none;
}
.cv-employer:last-child {
  margin-bottom: 0;
}
.cv-employer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cv-employer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--site-cyan);
  letter-spacing: 0.02em;
}
.cv-employer-duration {
  font-size: 0.75rem;
  color: var(--site-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Bloc des postes — bordure gauche continue pour tout l'employeur */
.cv-employer-jobs {
  padding-left: 1rem;
  border-left: 3px solid var(--site-cyan);
}
/* Poste + dates */
.cv-job {
  margin-bottom: 1.25rem;
}
.cv-job:last-child {
  margin-bottom: 0;
}
.cv-job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.cv-job-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--site-cyan);
  letter-spacing: 0.03em;
}
.cv-job-dates {
  font-size: 0.75rem;
  color: var(--site-magenta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cv-job-desc {
  font-size: 0.875rem;
  color: var(--site-gray);
  line-height: 1.6;
  margin: 0;
  padding-left: 0;
}
.cv-job-desc ul {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  margin: 0.5em 0 0 0;
  padding-left: 1.5em;
  list-style-type: disc;
}
.cv-job-desc li {
  margin-bottom: 0.25em;
}
.cv-job-desc li:last-child {
  margin-bottom: 0;
}

/* Tags expertises */
.cv-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
}
.cv-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--site-cyan);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--site-teal);
  background: rgba(17, 85, 85, 0.15);
}
body.palette-2 .cv-tag {
  border-color: var(--site-cyan);
  background: rgba(85, 255, 255, 0.08);
}

/* Compétences techniques */
.cv-skills {
  font-size: 0.875rem;
  color: var(--site-gray);
  line-height: 1.7;
  margin: 0;
}
.cv-skills strong,
.cv-section .cv-skills {
  color: var(--site-gray);
}

/* Formation */
.cv-formation {
  font-size: 0.875rem;
  color: var(--site-gray);
  line-height: 1.6;
  margin: 0;
  padding-left: 0;
}

/* ——— Mobile ——— */
@media (max-width: 768px) {
  .cv-employer {
    border-left: none;
    padding-left: 0;
  }
  .cv-employer-jobs {
    border-left: none;
    padding-left: 0;
  }
}

/* ——— Impression ——— */
/* Fond blanc. Texte de paragraphe en noir ; titres et cadre gardent leurs couleurs. Cadre avec petite marge. */
@page {
  size: A4;
  margin: 0cm;
}
@media print {
  #game-background {
    display: none !important;
  }
  html {
    font-size: 14px;
  }
  html, body {
    margin: 0;
    padding: 0;
    background: #fff !important;
    min-height: 100%;
  }
  .card-header,
  .card-footer {
    display: none !important;
  }
  .content {
    width: calc(100%);
    max-width: calc(100%);
    min-height: 29.7cm; /* hauteur A4 : le bas du bloc touche le bas de la page */
    box-sizing: border-box;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .card-inner {
    padding: 1.35rem 1.85rem;
  }
  .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  .card-subtitle {
    font-size: 1rem;
    color: #bb11bb !important;
    margin-bottom: 0.85rem;
  }
  .cv-header {
    margin-bottom: 1.5rem;
  }
  .cv-header-inner {
    margin-bottom: 0.75rem;
  }
  .cv-photo {
    display: block !important;
    visibility: visible !important;
    border-color: #115555;
  }
  .cv-contact {
    padding: 0.5rem 0;
    border-color: #333;
    color: #000;
    font-size: 0.75rem;
  }
  .cv-description {
    font-size: 0.8rem;
    color: #000 !important;
    line-height: 1.55;
    margin: 0;
  }
  .content-cv .card-intro {
    font-size: 0.85rem;
    color: #000 !important;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }
  .cv-section {
    margin-bottom: 1.85rem;
  }
  .cv-section-title {
    font-size: 0.7rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.5rem;
  }
  .cv-employer {
    margin-bottom: 1.8rem;
    padding-left: 0;
    border-left: none;
  }
  .cv-employer-header {
    margin-bottom: 0.65rem;
  }
  .cv-employer-name {
    font-size: 1.05rem;
  }
  .cv-employer-duration {
    font-size: 0.7rem;
  }
  .cv-employer-jobs {
    padding-left: 0.85rem;
    border-left: 2px solid var(--site-cyan);
  }
  .cv-job {
    margin-bottom: 0.95rem;
  }
  .cv-job-head {
    margin-bottom: 0.3rem;
  }
  .cv-job-title {
    font-size: 0.9rem;
  }
  .cv-job-dates {
    font-size: 0.7rem;
  }
  .cv-job-desc {
    font-size: 0.8rem;
    color: #000 !important;
    line-height: 1.55;
  }
  .cv-job-desc ul {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0.5em 0 0 0;
    padding-left: 1.5em;
    list-style-type: disc;
  }
  .cv-job-desc li {
    margin-bottom: 0.25em;
  }
  .cv-job-desc li:last-child {
    margin-bottom: 0;
  }
  .cv-formation {
    font-size: 0.8rem;
    color: #000 !important;
    line-height: 1.55;
  }
  .cv-tags {
    gap: 0.4rem 0.85rem;
  }
  .cv-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  .cv-skills,
  .cv-skills strong,
  .cv-section .cv-skills {
    font-size: 0.8rem;
    color: #000 !important;
  }
}
