/* ============================================================
   TEMPLATES — Styles pour les 19 modèles de CV
   Variables CSS injectées : --cv-color, --cv-spacing, --cv-font-size
   ============================================================ */

/* ============ BASE COMMUNE pour tous les templates ============ */

.cv-document * { box-sizing: border-box; }

.cv-document h1, .cv-document h2, .cv-document h3, .cv-document h4 {
    margin: 0;
    line-height: 1.2;
}
.cv-document p { margin: 0; }

.cv-photo {
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Skill dots (5 points) */
.cv-skill-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #d1d5db;
    margin-left: 3px;
}
.cv-skill-dot.filled { background: var(--cv-color); }

/* Skill bar linéaire */
.cv-skill-bar {
    width: 100%;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.cv-skill-bar-fill {
    height: 100%;
    background: var(--cv-color);
    border-radius: 3px;
}

.cv-side-skill { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-side-skill-label,
.cv-side-skill { font-size: .9em; }
.cv-side-skill > span { display:block; margin-bottom: 3px; }

.cv-side-lang {
    display: flex; justify-content: space-between;
    margin-bottom: calc(5px * var(--cv-spacing));
    font-size: .9em;
}
.cv-side-lang em { opacity: .75; font-style: normal; }

.cv-interests, .cv-interests-side {
    display: flex; flex-wrap: wrap; gap: 5px;
}
.cv-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cv-color) 12%, white);
    color: var(--cv-color);
    font-size: .85em;
    font-weight: 500;
}

.cv-list-bullet { padding-left: 18px; margin: 4px 0; }
.cv-list-bullet li { margin-bottom: 3px; font-size: .95em; }
.cv-list-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.cv-list-inline li { font-size: .92em; }
.cv-list-inline li::after { content: '·'; margin-left: 12px; color: #94a3b8; }
.cv-list-inline li:last-child::after { content: ''; }

/* ============================================================
   1. CLASSIQUE
   ============================================================ */
.cv-template-classic .cv-tpl-classic {
    padding: 18mm 16mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-classic .cv-header {
    text-align: center;
    padding-bottom: calc(10px * var(--cv-spacing));
    border-bottom: 2px solid var(--cv-color);
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-classic .cv-header h1 {
    font-size: 1.9em; font-weight: 700; color: #111827;
    letter-spacing: -0.02em;
}
.cv-template-classic .cv-subtitle {
    font-size: 1.05em;
    color: var(--cv-color);
    font-weight: 500;
    margin-top: 4px;
}
.cv-template-classic .cv-contacts {
    margin-top: 8px;
    font-size: .85em;
    color: #4b5563;
}
.cv-template-classic .cv-sep { margin: 0 8px; color: #cbd5e1; }
.cv-template-classic .cv-contacts i { color: var(--cv-color); margin-right: 4px; }

.cv-template-classic .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-classic .cv-section-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: calc(8px * var(--cv-spacing));
    display: flex; align-items: center; gap: 8px;
}
.cv-template-classic .cv-item { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-classic .cv-item-head {
    display: flex; justify-content: space-between; gap: 10px;
    align-items: baseline;
}
.cv-template-classic .cv-date {
    font-size: .85em; color: #6b7280; white-space: nowrap;
}
.cv-template-classic .cv-item-meta {
    font-size: .85em; color: #6b7280; font-style: italic; margin: 1px 0 3px;
}
.cv-template-classic .cv-item-desc {
    font-size: .9em; color: #374151; margin-top: 3px;
    white-space: pre-wrap;
}
.cv-template-classic .cv-skills-grid,
.cv-template-classic .cv-langs-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
}
.cv-template-classic .cv-skill-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .9em;
}
.cv-template-classic .cv-skill-row em { font-style: normal; opacity: .7; font-size: .9em; }
.cv-template-classic .cv-item-mini { font-size: .9em; margin-bottom: 4px; }

/* ============================================================
   2. MODERNE (sidebar bicolore gauche)
   ============================================================ */
.cv-template-modern .cv-tpl-modern {
    display: grid;
    grid-template-columns: 35% 1fr;
    height: 297mm;
    font-family: 'Poppins', sans-serif;
}
.cv-template-modern .cv-sidebar {
    background: var(--cv-color);
    color: white;
    padding: 14mm 8mm;
}
.cv-template-modern .cv-sidebar .cv-photo {
    margin: 0 auto 12px;
    border: 4px solid rgba(255,255,255,.3);
}
.cv-template-modern .cv-sidebar h1 {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.15;
}
.cv-template-modern .cv-sidebar .cv-subtitle {
    text-align: center;
    font-size: .95em;
    opacity: .9;
    margin: 4px 0 16px;
}
.cv-template-modern .cv-side-section {
    margin-top: calc(14px * var(--cv-spacing));
}
.cv-template-modern .cv-side-section h3 {
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255,255,255,.3);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.cv-template-modern .cv-side-section p {
    font-size: .85em;
    margin-bottom: 5px;
    word-break: break-word;
}
.cv-template-modern .cv-side-section i { width: 14px; opacity: .9; }
.cv-template-modern .cv-side-skill { color: white; }
.cv-template-modern .cv-side-skill .cv-skill-bar { background: rgba(255,255,255,.25); }
.cv-template-modern .cv-side-skill .cv-skill-bar-fill { background: white; }
.cv-template-modern .cv-interests-side span {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 4px 4px 0;
    font-size: .8em;
}

.cv-template-modern .cv-main {
    padding: 14mm 12mm;
}
.cv-template-modern .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-modern .cv-section-title {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: calc(10px * var(--cv-spacing));
    padding-bottom: 4px;
    border-bottom: 3px solid var(--cv-color);
    display: inline-block;
}
.cv-template-modern .cv-tline-item {
    position: relative;
    padding-left: 18px;
    margin-bottom: calc(10px * var(--cv-spacing));
    border-left: 2px solid #e5e7eb;
}
.cv-template-modern .cv-tline-dot {
    position: absolute;
    left: -6px; top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--cv-color);
}
.cv-template-modern .cv-tline-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.cv-template-modern .cv-date { font-size: .85em; color: #6b7280; }
.cv-template-modern .cv-item-meta { font-size: .85em; color: #6b7280; margin: 1px 0 3px; }
.cv-template-modern .cv-item-desc { font-size: .9em; color: #374151; white-space: pre-wrap; }

/* ============================================================
   3. MINIMALISTE
   ============================================================ */
.cv-template-minimal .cv-tpl-minimal {
    padding: 22mm 20mm;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}
.cv-template-minimal .cv-header {
    margin-bottom: calc(18px * var(--cv-spacing));
}
.cv-template-minimal .cv-header h1 {
    font-size: 2em;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.cv-template-minimal .cv-header p { font-size: 1em; color: #6b7280; margin-top: 4px; }
.cv-template-minimal .cv-contacts { font-size: .85em; color: #6b7280; margin-top: 8px; }
.cv-template-minimal section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-minimal h2 {
    font-size: .85em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: calc(8px * var(--cv-spacing));
}
.cv-template-minimal .cv-item { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-minimal .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-minimal .cv-item-head span { font-size: .85em; color: #6b7280; }
.cv-template-minimal .cv-item p { font-size: .9em; color: #4b5563; margin-top: 3px; }
.cv-template-minimal .cv-summary { font-size: 1em; color: #4b5563; line-height: 1.6; }
.cv-template-minimal section p { font-size: .9em; color: #4b5563; }

/* ============================================================
   4. CREATIF
   ============================================================ */
.cv-template-creative .cv-tpl-creative {
    font-family: 'Montserrat', sans-serif;
}
.cv-template-creative .cv-header {
    background: linear-gradient(135deg, var(--cv-color), color-mix(in srgb, var(--cv-color) 70%, black));
    color: white;
    padding: 14mm 14mm 10mm;
    display: flex; align-items: center; gap: 16px;
}
.cv-template-creative .cv-header .cv-photo {
    border: 4px solid rgba(255,255,255,.4);
}
.cv-template-creative .cv-header h1 {
    font-size: 1.9em; font-weight: 800;
    letter-spacing: -0.01em;
}
.cv-template-creative .cv-subtitle {
    font-size: 1.05em; opacity: .95; margin: 4px 0 8px;
}
.cv-template-creative .cv-contacts {
    display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82em;
}
.cv-template-creative .cv-contacts span { display: inline-flex; align-items: center; gap: 5px; }
.cv-template-creative .cv-contacts i { opacity: .85; }

.cv-template-creative .cv-body {
    display: grid; grid-template-columns: 1.5fr 1fr;
    padding: 10mm 12mm;
    gap: 14px;
}
.cv-template-creative .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-creative .cv-section-title {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color); text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.cv-template-creative .cv-section-title::after {
    content:''; flex: 1; height: 2px;
    background: color-mix(in srgb, var(--cv-color) 30%, white);
}
.cv-template-creative .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-creative .cv-item-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.cv-template-creative .cv-company { font-size: .88em; color: #6b7280; }
.cv-template-creative .cv-date-badge {
    background: color-mix(in srgb, var(--cv-color) 12%, white);
    color: var(--cv-color);
    padding: 2px 8px; border-radius: 4px;
    font-size: .78em; font-weight: 600; white-space: nowrap;
}
.cv-template-creative .cv-item-meta { font-size: .82em; color: #6b7280; font-style: italic; }
.cv-template-creative .cv-item-desc { font-size: .88em; margin-top: 4px; white-space: pre-wrap; }
.cv-template-creative .cv-item-mini { font-size: .88em; margin-bottom: 6px; }
.cv-template-creative .cv-item-mini .cv-date { color: #6b7280; font-size: .9em; }

/* ============================================================
   5. ELEGANT (Serif)
   ============================================================ */
.cv-template-elegant .cv-tpl-elegant {
    padding: 20mm 18mm;
    font-family: 'Lora', serif;
    color: #1f2937;
}
.cv-template-elegant .cv-header { text-align: center; margin-bottom: calc(16px * var(--cv-spacing)); }
.cv-template-elegant .cv-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4em; font-weight: 600;
    letter-spacing: 0.04em;
}
.cv-template-elegant .cv-divider {
    width: 60px; height: 2px;
    background: var(--cv-color);
    margin: 8px auto;
}
.cv-template-elegant .cv-subtitle {
    font-style: italic; font-size: 1em; color: #6b7280; margin-bottom: 8px;
}
.cv-template-elegant .cv-contacts { font-size: .85em; color: #4b5563; }
.cv-template-elegant .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-elegant h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em; font-weight: 600;
    color: var(--cv-color);
    text-align: center;
    margin-bottom: calc(10px * var(--cv-spacing));
    position: relative;
}
.cv-template-elegant h2::before,
.cv-template-elegant h2::after {
    content:''; display: inline-block;
    width: 30px; height: 1px;
    background: var(--cv-color);
    vertical-align: middle;
    margin: 0 10px;
    opacity: .5;
}
.cv-template-elegant .cv-item { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-elegant .cv-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-template-elegant .cv-item-head strong { font-size: 1em; }
.cv-template-elegant .cv-date { font-size: .85em; color: #6b7280; font-style: italic; }
.cv-template-elegant .cv-company { font-size: .9em; color: #6b7280; display: block; margin: 1px 0 3px; }
.cv-template-elegant .cv-item p { font-size: .9em; margin-top: 4px; white-space: pre-wrap; }
.cv-template-elegant .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-elegant .cv-half { margin-bottom: 0; }

/* ============================================================
   6. TECH (Developer)
   ============================================================ */
.cv-template-tech .cv-tpl-tech {
    padding: 16mm 14mm;
    font-family: 'JetBrains Mono', monospace;
    background: #fafafa;
    color: #1f2937;
}
.cv-template-tech .cv-header { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-tech .cv-prompt { font-size: .85em; color: #6b7280; margin-bottom: 4px; }
.cv-template-tech .cv-cursor { color: var(--cv-color); font-weight: 700; }
.cv-template-tech .cv-cmd { color: #1f2937; }
.cv-template-tech .cv-header h1 {
    font-size: 1.8em; font-weight: 700;
    color: var(--cv-color);
}
.cv-template-tech .cv-subtitle { color: #6b7280; font-size: .95em; margin: 3px 0 8px; }
.cv-template-tech .cv-contacts {
    display: flex; flex-wrap: wrap; gap: 6px 14px;
    font-size: .82em; color: #4b5563;
}
.cv-template-tech .cv-contacts i { color: var(--cv-color); margin-right: 4px; }
.cv-template-tech .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-tech h2 {
    font-size: 1em; color: var(--cv-color);
    font-weight: 700;
    margin-bottom: calc(8px * var(--cv-spacing));
    padding-bottom: 3px;
    border-bottom: 1px dashed color-mix(in srgb, var(--cv-color) 50%, transparent);
}
.cv-template-tech .cv-item { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-tech .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-tech .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-tech .cv-company { font-size: .85em; color: #4b5563; background: #f1f5f9; padding: 1px 6px; border-radius: 3px; display: inline-block; margin: 2px 0; }
.cv-template-tech .cv-item-desc { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-tech .cv-tech-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.cv-template-tech .cv-tech-tags span { background: color-mix(in srgb, var(--cv-color) 14%, white); color: var(--cv-color); padding: 1px 7px; border-radius: 3px; font-size: .78em; }
.cv-template-tech .cv-tech-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-template-tech .cv-stack-item {
    background: white; border: 1px solid color-mix(in srgb, var(--cv-color) 40%, white);
    color: var(--cv-color);
    padding: 3px 10px; border-radius: 4px; font-size: .82em;
}
.cv-template-tech .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-tech .cv-half { margin-bottom: 0; }
.cv-template-tech .cv-item-mini { font-size: .88em; margin-bottom: 5px; }

/* ============================================================
   7. EXECUTIVE (Corporate sobre)
   ============================================================ */
.cv-template-executive .cv-tpl-executive {
    padding: 18mm 18mm;
    font-family: 'Source Sans 3', sans-serif;
    color: #1f2937;
}
.cv-template-executive .cv-header {
    display: flex; justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px double var(--cv-color);
    padding-bottom: 12px;
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-executive .cv-name-block h1 {
    font-size: 2em; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-color);
}
.cv-template-executive .cv-name-block .cv-subtitle {
    font-size: 1em; color: #4b5563;
    margin-top: 3px;
}
.cv-template-executive .cv-header .cv-contacts {
    font-size: .82em; color: #4b5563; text-align: right;
}
.cv-template-executive .cv-header .cv-contacts div { margin-bottom: 2px; }
.cv-template-executive .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-executive h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: calc(8px * var(--cv-spacing));
    padding-bottom: 3px;
    border-bottom: 1px solid #cbd5e1;
}
.cv-template-executive .cv-item-grid {
    display: grid; grid-template-columns: 90px 1fr; gap: 14px;
    margin-bottom: calc(8px * var(--cv-spacing));
}
.cv-template-executive .cv-date-col { font-size: .82em; color: #6b7280; padding-top: 1px; }
.cv-template-executive .cv-content-col strong { font-size: 1em; }
.cv-template-executive .cv-company { font-size: .9em; color: #4b5563; font-style: italic; margin: 1px 0 3px; }
.cv-template-executive .cv-item-desc { font-size: .88em; white-space: pre-wrap; }
.cv-template-executive .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-executive .cv-half { margin-bottom: 0; }
.cv-template-executive section p { font-size: .92em; }

/* ============================================================
   8. INFOGRAPHIE (Cards)
   ============================================================ */
.cv-template-infographic .cv-tpl-infographic {
    padding: 12mm 12mm;
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
}
.cv-template-infographic .cv-header {
    display: flex; align-items: center; gap: 14px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 6px solid var(--cv-color);
    margin-bottom: 10px;
}
.cv-template-infographic .cv-header h1 {
    font-size: 1.6em; font-weight: 700;
    color: #1f2937;
}
.cv-template-infographic .cv-subtitle {
    color: var(--cv-color); font-weight: 600; font-size: .95em; margin-top: 2px;
}
.cv-template-infographic .cv-contact-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    margin-bottom: 10px;
}
.cv-template-infographic .cv-contact-strip div {
    background: white;
    padding: 7px 10px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 6px;
    font-size: .78em; color: #4b5563;
    overflow: hidden;
}
.cv-template-infographic .cv-contact-strip i {
    color: var(--cv-color);
    width: 14px; flex-shrink: 0;
}
.cv-template-infographic .cv-contact-strip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-template-infographic .cv-card {
    background: white;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.cv-template-infographic .cv-card h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.cv-template-infographic .cv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-template-infographic .cv-grid-2 .cv-card { margin-bottom: 0; }
.cv-template-infographic .cv-item { margin-bottom: 7px; }
.cv-template-infographic .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-infographic .cv-date-pill {
    background: color-mix(in srgb, var(--cv-color) 12%, white);
    color: var(--cv-color);
    padding: 2px 8px; border-radius: 999px;
    font-size: .75em; font-weight: 600; white-space: nowrap;
}
.cv-template-infographic .cv-company { font-size: .85em; color: #6b7280; margin: 1px 0 3px; }
.cv-template-infographic .cv-item-desc { font-size: .85em; white-space: pre-wrap; }
.cv-template-infographic .cv-item-mini { font-size: .87em; margin-bottom: 5px; }
.cv-template-infographic .cv-item-mini .cv-date { color: #6b7280; font-size: .9em; }

/* ============================================================
   9. ACADEMIQUE
   ============================================================ */
.cv-template-academic .cv-tpl-academic {
    padding: 18mm 18mm;
    font-family: 'Merriweather', serif;
    color: #1f2937;
}
.cv-template-academic .cv-header { text-align: center; margin-bottom: calc(16px * var(--cv-spacing)); }
.cv-template-academic .cv-header h1 {
    font-size: 1.8em; font-weight: 700; letter-spacing: 0.02em;
}
.cv-template-academic .cv-contacts {
    font-size: .85em; color: #6b7280; margin-top: 6px;
}
.cv-template-academic .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-academic h2 {
    font-size: 1.05em; font-weight: 700;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 3px;
    margin-bottom: calc(8px * var(--cv-spacing));
}
.cv-template-academic .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-academic .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-academic .cv-date { font-size: .85em; color: #6b7280; font-style: italic; }
.cv-template-academic em { display: block; font-size: .92em; color: #4b5563; margin: 1px 0 3px; }
.cv-template-academic p { font-size: .9em; }

/* ============================================================
   10. DARK SIDE
   ============================================================ */
.cv-template-darkside .cv-tpl-darkside {
    display: grid;
    grid-template-columns: 38% 1fr;
    height: 297mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-darkside .cv-sidebar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14mm 9mm;
}
.cv-template-darkside .cv-sidebar .cv-photo {
    margin: 0 auto 12px;
    border: 3px solid var(--cv-color);
}
.cv-template-darkside .cv-sidebar h1 {
    text-align: center; font-size: 1.4em; font-weight: 700;
    color: white; line-height: 1.15;
}
.cv-template-darkside .cv-sidebar .cv-subtitle {
    text-align: center;
    color: var(--cv-color); font-size: .9em;
    font-weight: 500;
    margin: 4px 0 14px;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.cv-template-darkside .cv-side-section { margin-top: calc(14px * var(--cv-spacing)); }
.cv-template-darkside .cv-side-section h3 {
    font-size: .9em;
    color: var(--cv-color);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #334155;
}
.cv-template-darkside .cv-side-section p {
    font-size: .82em; margin-bottom: 5px; word-break: break-word;
}
.cv-template-darkside .cv-side-section p i { color: var(--cv-color); width: 14px; margin-right: 4px; }
.cv-template-darkside .cv-side-skill { color: #e2e8f0; }
.cv-template-darkside .cv-side-skill .cv-skill-bar { background: #334155; }
.cv-template-darkside .cv-side-skill .cv-skill-bar-fill { background: var(--cv-color); }
.cv-template-darkside .cv-side-lang em { color: var(--cv-color); }
.cv-template-darkside .cv-interests-side span {
    background: #1e293b; padding: 3px 8px; border-radius: 4px;
    margin: 0 4px 4px 0; font-size: .8em; display: inline-block;
}

.cv-template-darkside .cv-main {
    padding: 14mm 12mm;
    background: white;
}
.cv-template-darkside .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-darkside h2 {
    font-size: 1.1em; font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    padding-left: 12px;
    position: relative;
}
.cv-template-darkside h2::before {
    content:''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 4px; background: var(--cv-color);
}
.cv-template-darkside .cv-item { margin-bottom: calc(9px * var(--cv-spacing)); }
.cv-template-darkside .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cv-template-darkside .cv-date { font-size: .82em; color: #6b7280; white-space: nowrap; }
.cv-template-darkside .cv-company { font-size: .85em; color: #6b7280; margin-top: 1px; }
.cv-template-darkside .cv-item-desc { font-size: .88em; margin-top: 4px; white-space: pre-wrap; }
.cv-template-darkside .cv-main p { font-size: .9em; }

/* ============================================================
   11. COLOR BAR
   ============================================================ */
.cv-template-colorbar .cv-tpl-colorbar {
    display: grid; grid-template-columns: 12mm 1fr;
    height: 297mm;
    font-family: 'Raleway', sans-serif;
}
.cv-template-colorbar .cv-leftbar { background: var(--cv-color); }
.cv-template-colorbar .cv-content { padding: 16mm 14mm; }
.cv-template-colorbar .cv-header { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-colorbar .cv-header h1 {
    font-size: 2em; font-weight: 800;
    color: var(--cv-color);
}
.cv-template-colorbar .cv-subtitle {
    font-size: 1em; color: #4b5563; font-weight: 500;
    margin: 3px 0 8px;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.cv-template-colorbar .cv-contacts { font-size: .85em; color: #4b5563; }
.cv-template-colorbar .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-colorbar h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.cv-template-colorbar .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-colorbar .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-colorbar .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-colorbar .cv-item p { font-size: .9em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-colorbar .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-colorbar .cv-half { margin-bottom: 0; }

/* ============================================================
   12. TIMELINE
   ============================================================ */
.cv-template-timeline .cv-tpl-timeline {
    padding: 16mm 14mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-timeline .cv-header {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cv-color);
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-timeline .cv-header h1 { font-size: 1.7em; font-weight: 800; color: #1f2937; }
.cv-template-timeline .cv-subtitle { color: var(--cv-color); font-weight: 500; font-size: 1em; }
.cv-template-timeline .cv-contacts { font-size: .82em; color: #6b7280; margin-top: 4px; }
.cv-template-timeline .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-timeline h2 {
    font-size: 1.1em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: calc(10px * var(--cv-spacing));
    display: flex; align-items: center; gap: 8px;
}
.cv-template-timeline .cv-timeline { position: relative; padding-left: 100px; }
.cv-template-timeline .cv-timeline::before {
    content:''; position: absolute;
    left: 92px; top: 4px; bottom: 0;
    width: 2px; background: color-mix(in srgb, var(--cv-color) 35%, white);
}
.cv-template-timeline .cv-tline-item {
    position: relative;
    margin-bottom: calc(10px * var(--cv-spacing));
}
.cv-template-timeline .cv-tline-date {
    position: absolute;
    left: -100px; top: 2px;
    width: 85px; text-align: right;
    font-size: .8em; color: #6b7280; font-weight: 500;
}
.cv-template-timeline .cv-tline-marker {
    position: absolute;
    left: -14px; top: 5px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--cv-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--cv-color);
}
.cv-template-timeline .cv-tline-content strong { font-size: 1em; }
.cv-template-timeline .cv-tline-content .cv-company { font-size: .88em; color: #6b7280; margin: 1px 0 3px; }
.cv-template-timeline .cv-tline-content p { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-timeline .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-timeline .cv-half { margin-bottom: 0; }

/* ============================================================
   13. SPLIT (50/50)
   ============================================================ */
.cv-template-split .cv-tpl-split {
    display: grid; grid-template-columns: 1fr 1.5fr;
    height: 297mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-split .cv-side {
    background: color-mix(in srgb, var(--cv-color) 8%, white);
    padding: 14mm 10mm;
    border-right: 4px solid var(--cv-color);
}
.cv-template-split .cv-side-top { text-align: center; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--cv-color) 30%, white); margin-bottom: 12px; }
.cv-template-split .cv-side-top .cv-photo { margin: 0 auto 10px; border: 3px solid var(--cv-color); }
.cv-template-split .cv-side-top h1 { font-size: 1.3em; font-weight: 700; color: #1f2937; line-height: 1.15; }
.cv-template-split .cv-side-top .cv-subtitle { font-size: .9em; color: var(--cv-color); font-weight: 500; margin-top: 4px; }
.cv-template-split .cv-side-section { margin-bottom: 14px; }
.cv-template-split .cv-side-section h3 {
    font-size: .9em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.cv-template-split .cv-side-section p { font-size: .82em; color: #4b5563; margin-bottom: 3px; word-break: break-word; }
.cv-template-split .cv-interests-side span { display: inline-block; background: white; padding: 3px 8px; border-radius: 4px; margin: 0 3px 3px 0; font-size: .78em; }

.cv-template-split .cv-main { padding: 14mm 12mm; background: white; }
.cv-template-split .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-split h2 {
    font-size: 1.1em; font-weight: 700;
    color: #1f2937;
    margin-bottom: calc(8px * var(--cv-spacing));
    padding-bottom: 3px;
    border-bottom: 2px solid var(--cv-color);
}
.cv-template-split .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-split .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-split .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-split .cv-company { font-size: .88em; color: var(--cv-color); font-style: normal; }
.cv-template-split .cv-item p { font-size: .9em; white-space: pre-wrap; margin-top: 3px; }

/* ============================================================
   14. MONOCHROME (N&B strict)
   ============================================================ */
.cv-template-mono .cv-tpl-mono {
    padding: 20mm 18mm;
    font-family: 'Inter', sans-serif;
    color: #000;
}
.cv-template-mono .cv-header { text-align: center; margin-bottom: calc(16px * var(--cv-spacing)); padding-bottom: 10px; border-bottom: 3px solid #000; }
.cv-template-mono .cv-header h1 {
    font-size: 2em; font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cv-template-mono .cv-subtitle { font-size: 1em; color: #000; margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 300; }
.cv-template-mono .cv-contacts { font-size: .82em; color: #000; margin-top: 8px; }
.cv-template-mono .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-mono h2 {
    font-size: 1em; font-weight: 900;
    letter-spacing: 0.15em;
    padding-bottom: 3px;
    border-bottom: 1px solid #000;
    margin-bottom: calc(8px * var(--cv-spacing));
}
.cv-template-mono .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-mono .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 700; }
.cv-template-mono .cv-item-head span { font-weight: 400; font-size: .85em; }
.cv-template-mono em { font-style: italic; font-size: .9em; }
.cv-template-mono p { font-size: .9em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-mono .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-mono .cv-half { margin-bottom: 0; }
.cv-template-mono .cv-list-bullet li { font-size: .88em; }

/* ============================================================
   15. COMPACT (dense 2 cols)
   ============================================================ */
.cv-template-compact .cv-tpl-compact {
    padding: 12mm 12mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-compact .cv-header {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid var(--cv-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.cv-template-compact .cv-header h1 { font-size: 1.5em; font-weight: 800; }
.cv-template-compact .cv-subtitle { color: var(--cv-color); font-size: .95em; font-weight: 500; }
.cv-template-compact .cv-contacts { font-size: .78em; color: #6b7280; margin-top: 4px; line-height: 1.5; }
.cv-template-compact .cv-summary { font-size: .9em; color: #4b5563; margin-bottom: 10px; }
.cv-template-compact .cv-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.cv-template-compact .cv-section { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-compact h2 {
    font-size: .92em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 3px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}
.cv-template-compact .cv-item { margin-bottom: 6px; }
.cv-template-compact .cv-item-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cv-template-compact .cv-date { font-size: .78em; color: #6b7280; }
.cv-template-compact .cv-company { font-size: .85em; color: #6b7280; font-style: italic; }
.cv-template-compact .cv-item-desc { font-size: .85em; white-space: pre-wrap; }
.cv-template-compact .cv-item-mini { font-size: .85em; margin-bottom: 5px; }
.cv-template-compact .cv-item-mini .cv-date { color: #6b7280; }

/* ============================================================
   16. GRADIENT
   ============================================================ */
.cv-template-gradient .cv-tpl-gradient {
    font-family: 'Poppins', sans-serif;
}
.cv-template-gradient .cv-header {
    position: relative;
    padding: 14mm 14mm 10mm;
    color: white;
    overflow: hidden;
}
.cv-template-gradient .cv-header-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        var(--cv-color),
        color-mix(in srgb, var(--cv-color) 60%, #8b5cf6));
    z-index: 0;
}
.cv-template-gradient .cv-header-bg::after {
    content:''; position: absolute; right: -60px; bottom: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.cv-template-gradient .cv-header-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 16px;
}
.cv-template-gradient .cv-header .cv-photo { border: 4px solid rgba(255,255,255,.4); }
.cv-template-gradient .cv-header h1 { font-size: 1.8em; font-weight: 800; }
.cv-template-gradient .cv-subtitle { font-size: 1em; opacity: .95; margin: 3px 0 8px; }
.cv-template-gradient .cv-contacts { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: .82em; }
.cv-template-gradient .cv-contacts span { display: inline-flex; align-items: center; gap: 5px; }
.cv-template-gradient .cv-body { padding: 12mm 14mm; }
.cv-template-gradient .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-gradient h2 {
    font-size: 1.05em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid color-mix(in srgb, var(--cv-color) 30%, white);
}
.cv-template-gradient .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-gradient .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-gradient .cv-at { color: var(--cv-color); font-weight: 400; }
.cv-template-gradient .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-gradient .cv-item-desc { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-gradient .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-gradient .cv-half { margin-bottom: 0; }

/* ============================================================
   17. BANNER
   ============================================================ */
.cv-template-banner .cv-tpl-banner {
    font-family: 'Montserrat', sans-serif;
}
.cv-template-banner .cv-banner {
    background: var(--cv-color);
    color: white;
    padding: 14mm 14mm 12mm;
    position: relative;
}
.cv-template-banner .cv-banner::after {
    content:''; position: absolute; left:0; right:0; bottom: -14px;
    height: 28px;
    background: var(--cv-color);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    width: 70px; left: 50%; transform: translateX(-50%);
}
.cv-template-banner .cv-banner-inner { text-align: center; }
.cv-template-banner .cv-banner h1 { font-size: 2.2em; font-weight: 800; letter-spacing: 0.02em; }
.cv-template-banner .cv-banner p { font-size: 1em; opacity: .95; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; }
.cv-template-banner .cv-contact-strip {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 6px 16px;
    background: white;
    padding: 14px 14mm;
    font-size: .82em; color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}
.cv-template-banner .cv-contact-strip div { display: inline-flex; align-items: center; gap: 5px; }
.cv-template-banner .cv-contact-strip i { color: var(--cv-color); }
.cv-template-banner .cv-body { padding: 12mm 14mm; }
.cv-template-banner .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-banner h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--cv-color);
}
.cv-template-banner .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-banner .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-banner .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-banner .cv-company { font-size: .88em; color: #6b7280; }
.cv-template-banner .cv-item-desc { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-banner .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-banner .cv-half { margin-bottom: 0; }

/* ============================================================
   18. ICONIC (bulles d'icônes)
   ============================================================ */
.cv-template-iconic .cv-tpl-iconic {
    padding: 14mm 14mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-iconic .cv-header {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px dotted color-mix(in srgb, var(--cv-color) 50%, white);
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-iconic .cv-header .cv-photo { border: 3px solid var(--cv-color); }
.cv-template-iconic .cv-header h1 { font-size: 1.7em; font-weight: 700; color: #1f2937; }
.cv-template-iconic .cv-subtitle { font-size: 1em; color: var(--cv-color); font-weight: 500; margin: 3px 0 6px; }
.cv-template-iconic .cv-contacts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82em; color: #4b5563; }
.cv-template-iconic .cv-contacts span { display: inline-flex; align-items: center; gap: 4px; }
.cv-template-iconic .cv-contacts i { color: var(--cv-color); }
.cv-template-iconic .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-iconic h2 {
    font-size: 1.1em; font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.cv-template-iconic .cv-icon-bubble {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--cv-color);
    color: white;
    font-size: .8em;
}
.cv-template-iconic .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); padding-left: 40px; }
.cv-template-iconic .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-iconic .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-iconic .cv-company { font-size: .88em; color: #6b7280; }
.cv-template-iconic .cv-item-desc { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-iconic .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-iconic .cv-half { margin-bottom: 0; }
.cv-template-iconic .cv-half .cv-side-skill,
.cv-template-iconic .cv-half .cv-side-lang { padding-left: 40px; }

/* ============================================================
   19. LUXE
   ============================================================ */
.cv-template-luxe .cv-tpl-luxe {
    padding: 20mm 18mm;
    font-family: 'Cormorant Garamond', serif;
    color: #1f2937;
}
.cv-template-luxe .cv-header {
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-luxe .cv-ornament {
    font-size: 1.4em;
    color: var(--cv-color);
    margin-bottom: 5px;
}
.cv-template-luxe .cv-header h1 {
    font-size: 2.6em; font-weight: 500;
    letter-spacing: 0.08em;
    color: #1f2937;
}
.cv-template-luxe .cv-subtitle {
    font-size: 1.05em; font-style: italic;
    color: var(--cv-color);
    margin: 4px 0 8px;
    letter-spacing: 0.05em;
}
.cv-template-luxe .cv-ornament-line {
    width: 80px; margin: 8px auto;
    height: 1px;
    background: var(--cv-color);
    position: relative;
}
.cv-template-luxe .cv-ornament-line::before {
    content:'◆'; position: absolute;
    left: 50%; top: 50%; transform: translate(-50%,-50%);
    background: white; padding: 0 6px;
    color: var(--cv-color); font-size: .7em;
}
.cv-template-luxe .cv-contacts { font-size: .9em; color: #4b5563; margin-top: 8px; }
.cv-template-luxe .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-luxe h2 {
    font-size: 1.3em; font-weight: 600;
    color: var(--cv-color);
    text-align: center;
    margin-bottom: calc(10px * var(--cv-spacing));
    letter-spacing: 0.06em;
    font-style: italic;
}
.cv-template-luxe .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); text-align: center; }
.cv-template-luxe .cv-item-head { display: flex; justify-content: center; gap: 14px; align-items: baseline; }
.cv-template-luxe .cv-item-head strong { font-size: 1.05em; font-weight: 600; }
.cv-template-luxe .cv-date { font-size: .9em; color: #6b7280; font-style: italic; }
.cv-template-luxe .cv-company { font-size: .95em; color: var(--cv-color); font-style: italic; }
.cv-template-luxe .cv-item p { font-size: .95em; margin-top: 4px; text-align: center; }
.cv-template-luxe .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-template-luxe .cv-half { margin-bottom: 0; text-align: center; }
.cv-template-luxe .cv-list-elegant { font-size: .95em; color: #4b5563; line-height: 1.8; }

/* ============================================================
   FIN — Tous les templates
   ============================================================ */
