﻿/* =========================================================
   ÉDITEUR DE CV — DESIGN
   ========================================================= */

/* --- Polices pour PDF --- */
@font-face {
    font-family: 'CenturyGothic';
    src: local('Century Gothic'), local('CenturyGothic'), local('AppleGothic');
    font-weight: normal;
    font-style: normal;
}

/* --- Barre de sections horizontale --- */
.editor-sections-bar {
    max-width: var(--container);
    margin: 0 auto 1rem;
    width: min(100% - 2rem, var(--container));
    overflow-x: auto;
}

.section-list-horizontal {
    display: flex;
    gap: 0.4rem;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    min-width: fit-content;
}

.section-list-horizontal button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--muted);
    transition: all 250ms ease;
    white-space: nowrap;
    position: relative;
}

.section-list-horizontal button .section-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.5; }
.section-list-horizontal button .section-check { opacity: 0; width: 14px; height: 14px; color: #22c55e; flex-shrink: 0; transition: opacity 200ms ease; }
.section-list-horizontal button.filled .section-check { opacity: 1; }
.section-list-horizontal button .section-badge { font-size: 0.6rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; transition: all 250ms ease; }
.section-list-horizontal button:hover { background: var(--primary-soft); color: var(--primary); border-color: rgba(255, 127, 0, 0.1); }
.section-list-horizontal button.active { background: var(--primary-soft); color: var(--primary); border-color: rgba(255, 127, 0, 0.25); box-shadow: 0 4px 12px rgba(255, 127, 0, 0.1); }
.section-list-horizontal button.active .section-icon { opacity: 1; }

/* --- Layout principal (2 colonnes égales) --- */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 75vh;
    padding-bottom: 2rem;
}

/* --- Upload photo --- */
.photo-upload-wrapper { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.photo-upload-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 200ms ease; }
.photo-upload-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.photo-upload-btn svg { color: var(--primary); }

/* --- Formulaire --- */
.editor-form { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.editor-form section { display: none; }
.editor-form section.active-section { display: block; animation: fadeInSection 300ms ease both; }
@keyframes fadeInSection { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }
.section-header-left { display: flex; align-items: center; gap: 0.65rem; }
.section-header-left svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.section-header-left h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.section-header .section-count { font-size: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.form-grid { display: grid; gap: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: grid; gap: 0.3rem; }
.field.full-width { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.field label .required { color: #ef4444; font-size: 0.75rem; }
.field label .label-hint { font-weight: 400; font-size: 0.72rem; opacity: 0.6; }

.editor-field, .editor-textarea, .editor-select { width: 100%; min-height: 44px; padding: 0.65rem 0.85rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.88rem; outline: none; transition: all 220ms ease; font-family: inherit; }
.editor-field:hover, .editor-textarea:hover, .editor-select:hover { border-color: rgba(255, 127, 0, 0.25); }
.editor-field:focus, .editor-textarea:focus, .editor-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.editor-field::placeholder, .editor-textarea::placeholder { color: var(--muted); opacity: 0.5; }
.editor-textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.field-hint { font-size: 0.7rem; color: var(--muted); opacity: 0.6; margin-top: 0.1rem; }

/* --- Entrées dynamiques --- */
.dynamic-entry { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 0.75rem; padding: 0.85rem 0.85rem 0.75rem; transition: all 220ms ease; position: relative; overflow: hidden; }
.dynamic-entry::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--primary-gradient); opacity: 0; transition: opacity 220ms ease; }
.dynamic-entry:hover { border-color: rgba(255, 127, 0, 0.2); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16, 22, 47, 0.04); }
.dynamic-entry:hover::before { opacity: 0.6; }
.dynamic-entry-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.dynamic-entry-title { font-size: 0.82rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.dynamic-entry-title .entry-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 0.7rem; font-weight: 700; }
.dynamic-entry .entry-actions { display: flex; gap: 0.3rem; }
.dynamic-entry .entry-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--muted); cursor: pointer; transition: all 180ms ease; }
.dynamic-entry .entry-btn.remove-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.dynamic-entry .entry-btn.move-up:hover, .dynamic-entry .entry-btn.move-down:hover { background: var(--surface-2); color: var(--text); }
.dynamic-entry .entry-btn svg { width: 15px; height: 15px; }
.dynamic-entry .form-row { margin-bottom: 0.4rem; }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.65rem; border-radius: 12px; border: 2px dashed var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 220ms ease; margin-top: 0.35rem; }
.add-btn svg { width: 18px; height: 18px; transition: transform 220ms ease; }
.add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.add-btn:hover svg { transform: rotate(90deg); }

/* =============================================================
   PRÉVISUALISATION — TEMPLATE EXACT (modèle décrit)
   ============================================================= */
.editor-preview {
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    position: sticky;
    top: 5.5rem;
    align-self: start;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
}

.preview-header-left { display: flex; align-items: center; gap: 0.5rem; }
.preview-header-left svg { width: 18px; height: 18px; color: var(--primary); }
.preview-header-left h3 { margin: 0; font-size: 0.85rem; font-weight: 700; }
.preview-header .preview-actions { display: flex; gap: 0.3rem; }
.preview-header .preview-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--muted); cursor: pointer; transition: all 180ms ease; }
.preview-header .preview-btn:hover { background: var(--surface-2); color: var(--primary); }
.preview-header .preview-btn svg { width: 16px; height: 16px; }
.preview-header .preview-btn-back { color: var(--primary); background: var(--primary-soft); }
.preview-header .preview-btn-back:hover { background: rgba(255, 127, 0, 0.16); color: var(--primary); }

/* --- Canvas A4-like --- */
.preview-canvas {
    min-height: 700px;
    border-radius: 0;
    border: 1px solid #ddd;
    background: #fff;
    position: relative;
}

/* ========================================
   LAYOUT 2 COLONNES DU CV
   ======================================== */
.cv-template {
    display: flex;
    width: 100%;
    min-height: 700px;
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
    color: #222;
    line-height: 1.4;
    position: relative;
}

/* --- COLONNE GAUCHE 31% --- */
.cv-left {
    background: #fff;
    padding: 28px 16px;
    width: 31%;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Photo — 145px, ronde, PAS de bordure */
.cv-photo-wrapper {
    text-align: center;
    margin-bottom: 12px;
}

.cv-photo {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: none;
}

.cv-photo-placeholder {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

/* Titres colonne gauche */
.cv-left-title {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 14px 0 8px;
}

/* Compétences & Langues — barres */
.cv-skill-item, .cv-language-item {
    margin-bottom: 18px;
}

.cv-skill-name, .cv-language-name {
    font-size: 10px;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.5;
}

.cv-skill-bar, .cv-language-bar {
    height: 6px;
    background: #ddd;
    border-radius: 0;
    overflow: hidden;
}

.cv-skill-fill, .cv-language-fill {
    height: 100%;
    background: #1D5A72;
    border-radius: 0;
    transition: width 300ms ease;
}

/* Centres d'intérêt — carrés bleus */
.cv-interest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #222;
    margin-bottom: 4px;
}

.cv-interest-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #1D5A72;
    flex-shrink: 0;
    border-radius: 0;
}

/* --- LIGNE VERTICALE CENTRALE (timeline) --- */
.cv-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31%;
    width: 0;
    pointer-events: none;
    z-index: 2;
}

.cv-separator-line {
    position: absolute;
    top: 15px;
    bottom: 20px;
    left: -2px;
    border-left: 4px solid #DEDEDE;
}

.cv-separator-dots {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 16px;
}

.cv-separator-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1D5A72;
    background-clip: content-box;
    box-sizing: border-box;
    border: 3px solid #DEDEDE;
    box-shadow: 0 0 0 1.5px #DEDEDE, inset 0 0 0 3px #1D5A72;
}

/* --- COLONNE DROITE 69% --- */
.cv-right {
    background: #fff;
    padding: 28px 32px 28px 24px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* En-tête — Nom */
.cv-header-name {
    font-size: 30px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 2px;
    line-height: 1.05;
}

/* Profession */
.cv-header-title {
    font-size: 12px;
    font-weight: 400;
    color: #1D5A72;
    margin: 0 0 12px;
}

/* Coordonnées — 4 lignes avec icônes */
.cv-contact-list {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.cv-contact-item svg {
    width: 16px;
    height: 16px;
    color: #1D5A72;
    flex-shrink: 0;
}

/* Titres sections colonne droite */
.cv-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #1D5A72;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 18px 0 10px;
}

.cv-section-title:first-of-type {
    margin-top: 10px;
}

/* Profil — paragraphe justifié */
.cv-profile-text {
    font-size: 10px;
    color: #222;
    line-height: 1.5;
    margin: 0 0 4px;
    text-align: justify;
}

/* Items formation/expérience */
.cv-item {
    margin-bottom: 18px;
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.cv-item-left {
    flex: 1;
    min-width: 0;
}

.cv-item-title {
    font-size: 10px;
    font-weight: 700;
    color: #222;
    display: block;
}

.cv-item-date {
    font-size: 10px;
    color: #A0A0A0;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.cv-item-sub {
    font-size: 10px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.cv-item-desc {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}

/* --- Actions en bas --- */
.editor-actions-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: var(--container); margin: 1rem auto 0; width: min(100% - 2rem, var(--container)); }
.editor-actions-bottom .action-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --- Toast --- */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: grid; gap: 0.5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 0.85rem; font-weight: 600; pointer-events: auto; animation: toastIn 300ms ease both; max-width: 360px; }
.toast.success { border-color: rgba(34,197,94,0.3); background: linear-gradient(135deg, #f0fdf4, #fafbfe); }
.toast.error { border-color: rgba(239,68,68,0.3); background: linear-gradient(135deg, #fef2f2, #fafbfe); }
.toast.info { border-color: rgba(59,130,246,0.3); background: linear-gradient(135deg, #eff6ff, #fafbfe); }
html[data-theme="dark"] .toast.success { background: linear-gradient(135deg, #052e16, #131b24); }
html[data-theme="dark"] .toast.error { background: linear-gradient(135deg, #450a0a, #131b24); }
html[data-theme="dark"] .toast.info { background: linear-gradient(135deg, #172554, #131b24); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success svg { color: #22c55e; }
.toast.error svg { color: #ef4444; }
.toast.info svg { color: #3b82f6; }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(100%) scale(0.9); } }

/* --- Responsive --- */
@media (max-width: 1200px) { .editor-layout { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1024px) { .editor-layout { grid-template-columns: 1fr; } .editor-preview { position: static; } .form-row { grid-template-columns: 1fr; } .section-list-horizontal { flex-wrap: wrap; } }
@media (max-width: 640px) {
    .editor-sections-bar {
        width: min(100% - 1rem, var(--container));
        margin-bottom: 0.75rem;
        position: sticky;
        top: 4.2rem;
        z-index: 20;
    }

    .section-list-horizontal {
        gap: 0.3rem;
        padding: 0.3rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .section-list-horizontal::-webkit-scrollbar {
        display: none;
    }

    .section-list-horizontal button {
        font-size: 0.68rem;
        padding: 0.45rem 0.55rem;
        flex-shrink: 0;
        min-height: 38px;
    }

    .editor-layout {
        width: min(100% - 1rem, var(--container));
        gap: 0.75rem;
        padding-bottom: 1.25rem;
    }

    .editor-form {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .section-header {
        align-items: flex-start;
        gap: 0.6rem;
    }

    .section-header-left {
        min-width: 0;
    }

    .section-header-left h2 {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .editor-field,
    .editor-textarea,
    .editor-select {
        min-height: 46px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .photo-upload-wrapper,
    .photo-upload-btn {
        width: 100%;
    }

    .photo-upload-btn,
    .add-btn {
        min-height: 44px;
    }

    .dynamic-entry {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .dynamic-entry-header {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dynamic-entry .entry-actions {
        flex-shrink: 0;
    }

    .editor-preview {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .preview-header {
        align-items: flex-start;
        gap: 0.5rem;
        flex-direction: column;
    }

    .preview-header .preview-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .preview-canvas {
        min-height: 0;
        overflow-x: auto;
        border-radius: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .cv-template {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        transform-origin: top left;
    }

    .cv-left {
        width: 100% !important;
        padding: 16px 12px !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .cv-photo-wrapper {
        margin-bottom: 6px;
        width: 100%;
    }

    .cv-photo,
    .cv-photo-placeholder {
        width: 80px;
        height: 80px;
    }

    .cv-photo-placeholder {
        font-size: 2rem;
    }

    .cv-left-title {
        font-size: 10px;
        margin: 8px 0 4px;
        width: 100%;
        text-align: center;
    }

    .cv-skill-item,
    .cv-language-item {
        margin-bottom: 10px;
    }

    .cv-skill-name,
    .cv-language-name {
        font-size: 9px;
    }

    .cv-skill-bar,
    .cv-language-bar {
        height: 4px;
    }

    .cv-interest-item {
        font-size: 9px;
    }

    .cv-right {
        padding: 14px 12px !important;
    }

    .cv-header-name {
        font-size: 20px;
    }

    .cv-header-title {
        font-size: 10px;
        margin: 0 0 8px;
    }

    .cv-contact-item {
        font-size: 10px;
    }

    .cv-contact-item svg {
        width: 14px;
        height: 14px;
    }

    .cv-section-title {
        font-size: 10px;
        margin: 12px 0 6px;
    }

    .cv-profile-text {
        font-size: 9px;
    }

    .cv-item {
        margin-bottom: 12px;
    }

    .cv-item-title {
        font-size: 9px;
    }

    .cv-item-date {
        font-size: 9px;
    }

    .cv-item-sub {
        font-size: 9px;
    }

    .cv-item-desc {
        font-size: 9px;
    }

    .cv-separator {
        display: none;
    }

    .editor-actions-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-actions-bottom .action-group {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .editor-sections-bar {
        top: 3.9rem;
    }

    .section-list-horizontal button {
        font-size: 0.64rem;
        padding: 0.4rem 0.5rem;
    }
}

/* ========================================
   STYLES D'IMPRESSION POUR PDF (html2pdf.js)
   ======================================== */

/* Conteneur d'impression hors écran */
#pdf-print-container {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Forcer le rendu exact des couleurs pour html2canvas */
#cv-template-clone * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

#cv-template-clone {
    background: #ffffff !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif !important;
}

#cv-template-clone .cv-left {
    background: #ffffff !important;
    padding: 28px 16px !important;
    width: 31% !important;
    flex-shrink: 0 !important;
}

#cv-template-clone .cv-right {
    background: #ffffff !important;
    padding: 28px 32px 28px 24px !important;
    flex: 1 !important;
}

#cv-template-clone .cv-separator {
    position: absolute !important;
    left: 31% !important;
    top: 0 !important;
    bottom: 0 !important;
}

#cv-template-clone .cv-separator-line {
    position: absolute !important;
    border-left: 4px solid #DEDEDE !important;
}

#cv-template-clone .cv-separator-dot {
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #1D5A72 !important;
    border: 3px solid #DEDEDE !important;
    box-shadow: 0 0 0 1.5px #DEDEDE, inset 0 0 0 3px #1D5A72 !important;
}

#cv-template-clone .cv-photo {
    width: 145px !important;
    height: 145px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: none !important;
}

#cv-template-clone .cv-photo-placeholder {
    width: 145px !important;
    height: 145px !important;
    border-radius: 50% !important;
    background: #ddd !important;
}

#cv-template-clone .cv-header-name {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #222 !important;
    text-transform: uppercase !important;
}

#cv-template-clone .cv-header-title {
    font-size: 12px !important;
    color: #1D5A72 !important;
}

#cv-template-clone .cv-section-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1D5A72 !important;
    text-transform: uppercase !important;
}

#cv-template-clone .cv-item-title,
#cv-template-clone .cv-skill-name,
#cv-template-clone .cv-language-name {
    font-size: 10px !important;
    color: #222 !important;
}

#cv-template-clone .cv-item-sub,
#cv-template-clone .cv-item-desc,
#cv-template-clone .cv-profile-text {
    font-size: 10px !important;
    color: #666 !important;
}

#cv-template-clone .cv-item-date {
    font-size: 10px !important;
    color: #A0A0A0 !important;
}

#cv-template-clone .cv-contact-item {
    font-size: 12px !important;
    color: #666 !important;
}

#cv-template-clone .cv-skill-bar,
#cv-template-clone .cv-language-bar {
    height: 6px !important;
    background: #ddd !important;
}

#cv-template-clone .cv-skill-fill,
#cv-template-clone .cv-language-fill {
    height: 100% !important;
    background: #1D5A72 !important;
}

#cv-template-clone .cv-interest-item {
    font-size: 10px !important;
    color: #222 !important;
}

#cv-template-clone .cv-interest-item::before {
    content: '' !important;
    width: 10px !important;
    height: 10px !important;
    background: #1D5A72 !important;
}

#cv-template-clone .cv-left-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #222 !important;
    text-transform: uppercase !important;
}

/* Styles d'impression natifs (fallback) */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body * {
        visibility: hidden;
    }
    
    #cv-template-clone,
    #cv-template-clone * {
        visibility: visible;
    }
    
    #cv-template-clone {
        position: absolute;
        left: 0;
        top: 0;
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        overflow: hidden !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        background: #ffffff !important;
    }
}
