/* ==========================================================================
   cv.css — mise en page A4 du CV (impression / export PDF via Ctrl+P)
   Chargé uniquement avec media="print".
   ========================================================================== */

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

html,
body {
    background: #fff !important;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* On masque tout le site, sauf le sprite d'icônes et le modèle de CV */
body > *:not(#cv-template):not(.svg-sprite) {
    display: none !important;
}

#cv-template {
    display: block !important;
    width: 210mm;
    margin: 0;
    padding: 0;
    background: #fff;
}

.cv-container {
    display: flex;
    flex-direction: column;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    background: #fff;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    letter-spacing: 0;
    box-sizing: border-box;
}

.cv-container *,
.cv-container *::before,
.cv-container *::after {
    box-sizing: border-box;
    -webkit-text-fill-color: initial;
    letter-spacing: 0;
}

.cv-container .icon {
    width: 13px;
    height: 13px;
}

/* ----------------------------------------------------------------- En-tête */
.cv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6mm 10mm;
    background: #0f172a !important;
    color: #fff !important;
}

.cv-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv-header-left img {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    object-fit: cover;
}

.cv-header h1 {
    margin: 0;
    font-size: 21pt;
    font-weight: 700;
    line-height: 1.15;
    color: #fff !important;
}

.cv-header h2 {
    margin: 4px 0 0;
    font-size: 10.5pt;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1 !important;
}

.cv-header-right {
    font-size: 8.8pt;
    color: #cbd5e1 !important;
    text-align: right;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 3px;
}

/* -------------------------------------------------------------------- Corps */
.cv-body {
    display: flex;
    flex: 1;
    gap: 12px;
    padding: 6mm 10mm;
}

.cv-col-left {
    width: 32%;
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
}

.cv-col-right {
    width: 68%;
}

.cv-section {
    margin-bottom: 10px;
}

.cv-section h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    padding-bottom: 3px;
    border-bottom: 2px solid #3b82f6 !important;
    font-size: 10.5pt;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f172a !important;
}

.cv-section h3 .icon {
    color: #3b82f6 !important;
}

.cv-profile-text {
    margin: 0;
    font-size: 9.3pt;
    line-height: 1.4;
    color: #475569 !important;
    text-align: left;
}

.cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cv-tag {
    padding: 3px 6px;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    background: #eff6ff !important;
    font-size: 8.3pt;
    font-weight: 500;
    line-height: 1.2;
    color: #1e40af !important;
}

.cv-list-simple {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-list-simple li {
    margin-bottom: 3px;
    font-size: 9.3pt;
    color: #334155 !important;
}

.cv-list-simple strong {
    color: #0f172a !important;
}

.cv-qr {
    margin-top: 22px;
    text-align: center;
}

.cv-qr img {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.cv-qr p {
    margin: 6px 0 0;
    font-size: 8.3pt;
    color: #64748b !important;
}

/* ---------------------------------------------------------------- Timeline */
.cv-job {
    margin-bottom: 8px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.cv-job-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.cv-job-header h4 {
    margin: 0;
    font-size: 10.3pt;
    font-weight: 700;
    color: #1e293b !important;
}

.cv-date {
    flex: none;
    font-size: 8.8pt;
    font-style: italic;
    color: #64748b !important;
}

.cv-company {
    margin-bottom: 3px;
    font-size: 9.3pt;
    font-weight: 600;
    color: #3b82f6 !important;
}

.cv-job-desc {
    margin: 0 0 4px;
    font-size: 9.2pt;
    font-style: italic;
    color: #475569 !important;
}

.cv-job-tasks {
    margin: 0;
    padding-left: 15px;
    list-style: disc;
}

.cv-job-tasks li {
    margin-bottom: 2px;
    font-size: 8.8pt;
    line-height: 1.3;
    color: #334155 !important;
}
