/* ================================================================
   CV Rina Andriantsoavina — Two-column layout + Print A4
   ================================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  color: #1a1a1a;
  background: #e0e0e0;
  padding: 2rem;
}

/* ─── BOUTON PDF ─────────────────────────────────────────── */
.btn-pdf {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  padding: 0.6rem 1.5rem;
  background: #2c2c2c;
  color: #fff;
  border: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-pdf:hover { background: #1a1a1a; }

/* ─── PAGE A4 ────────────────────────────────────────────── */
.page {
  background: linear-gradient(to right, #2c2c2c 68mm, #fff 68mm);
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  display: flex;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ─── SIDEBAR (gauche) ───────────────────────────────────── */
.sidebar {
  width: 68mm;
  background: transparent;
  color: #fff;
  padding: 10mm 8mm;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 9mm;
}

.cv-photo {
  width: 34mm;
  height: 34mm;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  display: block;
  margin: 0 auto 3mm;
}

.cv-name {
  font-size: 14pt;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

.cv-title {
  font-size: 10pt;
  font-weight: normal;
  text-align: center;
  color: rgba(255,255,255,0.85);
  margin-top: 2mm;
}

/* Sidebar section title */
.sb-section-title {
  font-size: 10pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2pt;
  margin-bottom: 5pt;
  color: #fff;
}

.sb-contact-item {
  font-size: 9.5pt;
  line-height: 2;
  color: rgba(255,255,255,0.9);
  word-break: break-all;
}

.sb-contact-item a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.sb-about {
  font-size: 9.5pt;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

/* ─── MAIN (droite) ──────────────────────────────────────── */
.main {
  flex: 1;
  padding: 10mm 8mm;
  display: flex;
  flex-direction: column;
  gap: 6mm;
}

/* Main section title */
.cv-section-title {
  font-size: 10pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2c2c2c;
  border-bottom: 2px solid #2c2c2c;
  padding-bottom: 2pt;
  margin-bottom: 4pt;
}

/* ─── PROFIL ─────────────────────────────────────────────── */
.cv-intro {
  font-size: 9.5pt;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

/* ─── COMPÉTENCES ────────────────────────────────────────── */
.comp-grid {
  display: grid;
  grid-template-columns: 90pt 1fr;
  gap: 3pt 0;
}

.comp-label {
  font-size: 10pt;
  font-weight: bold;
}

.comp-value {
  font-size: 10pt;
}

/* ─── EXPÉRIENCES ────────────────────────────────────────── */
.exp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 6mm;
}

.exp-block {
  margin-bottom: 8pt;
}

.exp-header {
  margin-bottom: 2pt;
}

.exp-date {
  font-size: 10pt;
  color: #2c2c2c;
  font-style: italic;
}

.exp-role {
  font-weight: bold;
  font-size: 10pt;
}

.exp-company {
  font-size: 9.5pt;
  color: #555;
  margin-bottom: 2pt;
}

.exp-sub {
  font-size: 9pt;
  font-style: italic;
  color: #333;
  margin: 6pt 0 3pt;
}

.exp-list {
  list-style: none;
  padding: 0;
}

.exp-list li {
  font-size: 9pt;
  line-height: 1.5;
  padding-left: 8pt;
  position: relative;
  margin-bottom: 3pt;
}

.exp-list li::before {
  content: '';
}

.exp-list li strong {
  font-weight: bold;
  display: block;
}

.exp-desc {
  display: block;
  padding-left: 8pt;
  color: #444;
  font-size: 8.5pt;
  line-height: 1.45;
  position: relative;
}

.exp-desc::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* ─── FORMATION ──────────────────────────────────────────── */
.formation-item {
  margin-bottom: 4pt;
}

.formation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.formation-school {
  font-weight: bold;
  font-size: 10pt;
}

.formation-date {
  font-size: 10pt;
  color: #2c2c2c;
  font-style: italic;
}

.formation-desc {
  font-size: 9.5pt;
  color: #333;
  margin-top: 1pt;
}

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .page {
    width: 100%;
    min-height: auto;
    box-shadow: none;
    margin: 0;
  }

  .btn-pdf { display: none; }

  @page {
    size: A4;
    margin: 0;
  }
}
