/* ============================================================
   TEMPLATES PARTIE 2 — Modèles 20 à 38
   ============================================================ */

/* ============================================================
   20. MAGAZINE
   ============================================================ */
.cv-template-magazine .cv-tpl-magazine {
    padding: 18mm 16mm;
    font-family: 'Playfair Display', serif;
    color: #1f2937;
}
.cv-template-magazine .cv-header { text-align: center; margin-bottom: calc(16px * var(--cv-spacing)); }
.cv-template-magazine .cv-mag-label {
    font-family: 'Inter', sans-serif;
    font-size: .7em;
    letter-spacing: 0.3em;
    color: var(--cv-color);
    margin-bottom: 4px;
}
.cv-template-magazine .cv-header h1 {
    font-size: 3em; font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.cv-template-magazine .cv-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1em; font-style: italic;
    color: #6b7280; margin-top: 6px;
}
.cv-template-magazine .cv-mag-line {
    width: 80px; height: 3px;
    background: var(--cv-color);
    margin: 10px auto;
}
.cv-template-magazine .cv-contacts {
    font-family: 'Inter', sans-serif;
    font-size: .82em; color: #6b7280;
    letter-spacing: 0.05em;
}
.cv-template-magazine .cv-lead p {
    font-size: 1.15em;
    font-style: italic;
    color: #4b5563;
    text-align: center;
    line-height: 1.5;
    border-left: 3px solid var(--cv-color);
    border-right: 3px solid var(--cv-color);
    padding: 6px 14px;
    margin-bottom: 14px;
}
.cv-template-magazine .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); font-family: 'Inter', sans-serif; }
.cv-template-magazine h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em; font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex; align-items: baseline; gap: 8px;
}
.cv-template-magazine .cv-num {
    font-size: 1.5em;
    color: var(--cv-color);
    font-weight: 900;
    line-height: 1;
}
.cv-template-magazine .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-magazine .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-magazine .cv-date { font-size: .82em; color: #6b7280; font-style: italic; }
.cv-template-magazine em { font-size: .9em; color: #6b7280; }
.cv-template-magazine p { font-size: .9em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-magazine .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-magazine .cv-half { margin-bottom: 0; }

/* ============================================================
   21. HEXAGONAL
   ============================================================ */
.cv-template-hexagonal .cv-tpl-hexagonal {
    padding: 16mm 14mm;
    font-family: 'Poppins', sans-serif;
}
.cv-template-hexagonal .cv-header {
    text-align: center;
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-hexagonal .cv-hex-photo {
    width: 100px; height: 100px;
    margin: 0 auto 10px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--cv-color);
    display: grid; place-items: center;
    color: white; font-size: 2em;
    overflow: hidden;
}
.cv-template-hexagonal .cv-hex-photo > div {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}
.cv-template-hexagonal .cv-header h1 {
    font-size: 1.8em; font-weight: 700;
    color: var(--cv-color);
}
.cv-template-hexagonal .cv-subtitle { font-size: 1em; color: #4b5563; margin: 3px 0 8px; }
.cv-template-hexagonal .cv-contacts {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 4px 14px; font-size: .82em; color: #6b7280;
}
.cv-template-hexagonal .cv-contacts span { display: inline-flex; align-items: center; gap: 4px; }
.cv-template-hexagonal .cv-contacts i { color: var(--cv-color); }
.cv-template-hexagonal .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-hexagonal .cv-section-title {
    font-size: 1.05em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.cv-template-hexagonal .cv-section-title::after {
    content:''; flex: 1; height: 1px;
    background: color-mix(in srgb, var(--cv-color) 30%, white);
}
.cv-template-hexagonal .cv-item {
    display: flex; gap: 12px;
    margin-bottom: calc(8px * var(--cv-spacing));
}
.cv-template-hexagonal .cv-hex-marker {
    width: 14px; height: 14px;
    background: var(--cv-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
    margin-top: 4px;
}
.cv-template-hexagonal .cv-item-content { flex: 1; }
.cv-template-hexagonal .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-hexagonal .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-hexagonal em { font-size: .88em; color: #6b7280; }
.cv-template-hexagonal p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-hexagonal h2 { font-size: 1em; color: var(--cv-color); font-weight: 700; margin-bottom: 8px; }
.cv-template-hexagonal .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-hexagonal .cv-half { margin-bottom: 0; }

/* ============================================================
   22. ASYMETRIQUE
   ============================================================ */
.cv-template-asymmetric .cv-tpl-asymmetric {
    position: relative;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}
.cv-template-asymmetric .cv-asym-bg {
    position: absolute; top: 0; right: 0;
    width: 60%; height: 50mm;
    background: var(--cv-color);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}
.cv-template-asymmetric .cv-header {
    position: relative; z-index: 1;
    padding: 14mm 14mm 8mm;
    display: flex; align-items: center; gap: 14px;
    color: white;
}
.cv-template-asymmetric .cv-header .cv-photo { border: 4px solid rgba(255,255,255,.5); }
.cv-template-asymmetric .cv-header h1 { font-size: 1.9em; font-weight: 800; }
.cv-template-asymmetric .cv-subtitle { font-size: 1em; opacity: .95; margin: 3px 0 6px; }
.cv-template-asymmetric .cv-contacts { font-size: .82em; opacity: .9; }
.cv-template-asymmetric .cv-body { padding: 8mm 14mm 14mm; position: relative; z-index: 1; }
.cv-template-asymmetric .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-asymmetric h2 {
    font-size: 1.05em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 4px solid var(--cv-color);
}
.cv-template-asymmetric .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-asymmetric .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-asymmetric .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-asymmetric em { font-size: .88em; color: #6b7280; font-style: italic; }
.cv-template-asymmetric p { font-size: .9em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-asymmetric .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-asymmetric .cv-half { margin-bottom: 0; }

/* ============================================================
   23. PASTEL
   ============================================================ */
.cv-template-pastel .cv-tpl-pastel {
    padding: 14mm 14mm;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cv-color) 5%, white), white);
}
.cv-template-pastel .cv-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px;
}
.cv-template-pastel .cv-header .cv-photo { border: 4px solid color-mix(in srgb, var(--cv-color) 30%, white); }
.cv-template-pastel .cv-header h1 { font-size: 1.8em; font-weight: 700; color: #374151; }
.cv-template-pastel .cv-subtitle { font-size: 1em; color: var(--cv-color); font-weight: 500; }
.cv-template-pastel .cv-contact-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 12px;
}
.cv-template-pastel .cv-contact-strip div {
    background: color-mix(in srgb, var(--cv-color) 8%, white);
    padding: 8px 10px; border-radius: 16px;
    display: flex; align-items: center; gap: 6px;
    font-size: .78em; color: #4b5563;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.cv-template-pastel .cv-contact-strip i { color: var(--cv-color); flex-shrink: 0; }
.cv-template-pastel .cv-card {
    background: white;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cv-template-pastel .cv-card-summary { background: color-mix(in srgb, var(--cv-color) 10%, white); }
.cv-template-pastel .cv-card h2 {
    font-size: 1.05em; font-weight: 600;
    color: var(--cv-color);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.cv-template-pastel .cv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-template-pastel .cv-grid-2 .cv-card { margin-bottom: 0; }
.cv-template-pastel .cv-item { margin-bottom: 7px; }
.cv-template-pastel .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-pastel .cv-date-pill {
    background: color-mix(in srgb, var(--cv-color) 20%, white);
    color: var(--cv-color);
    padding: 2px 10px; border-radius: 999px;
    font-size: .75em; font-weight: 600; white-space: nowrap;
}
.cv-template-pastel em { font-size: .85em; color: #6b7280; }
.cv-template-pastel p { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-pastel .cv-item-mini { font-size: .87em; margin-bottom: 5px; }

/* ============================================================
   24. NEON
   ============================================================ */
.cv-template-neon .cv-tpl-neon {
    padding: 16mm 14mm;
    font-family: 'JetBrains Mono', monospace;
    background: #0a0a14;
    color: #e2e8f0;
    height: 297mm;
}
.cv-template-neon .cv-header {
    margin-bottom: calc(14px * var(--cv-spacing));
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--cv-color);
}
.cv-template-neon .cv-neon-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--cv-color);
    color: var(--cv-color);
    font-size: .75em;
    letter-spacing: 0.2em;
    margin-bottom: 6px;
    text-shadow: 0 0 8px var(--cv-color);
}
.cv-template-neon .cv-header h1 {
    font-size: 2em; font-weight: 700;
    color: var(--cv-color);
    text-shadow: 0 0 12px color-mix(in srgb, var(--cv-color) 70%, transparent);
    letter-spacing: 0.05em;
}
.cv-template-neon .cv-subtitle { color: #94a3b8; font-size: .95em; margin: 4px 0 8px; }
.cv-template-neon .cv-contacts {
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    font-size: .82em; color: #94a3b8;
}
.cv-template-neon .cv-contacts span { color: #cbd5e1; }
.cv-template-neon .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-neon h2 {
    font-size: 1em; color: var(--cv-color);
    font-weight: 700; letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-shadow: 0 0 6px color-mix(in srgb, var(--cv-color) 50%, transparent);
}
.cv-template-neon .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-neon .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-neon .cv-item-head strong { color: #f8fafc; }
.cv-template-neon .cv-date { font-size: .82em; color: var(--cv-color); }
.cv-template-neon em { font-size: .88em; color: #94a3b8; }
.cv-template-neon p { font-size: .88em; color: #cbd5e1; white-space: pre-wrap; margin-top: 3px; }
.cv-template-neon .cv-tech-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-template-neon .cv-stack-item {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--cv-color);
    color: var(--cv-color);
    padding: 3px 10px; border-radius: 3px; font-size: .82em;
    box-shadow: 0 0 6px color-mix(in srgb, var(--cv-color) 30%, transparent) inset;
}
.cv-template-neon .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-neon .cv-half { margin-bottom: 0; }
.cv-template-neon .cv-side-lang em { color: var(--cv-color); }

/* ============================================================
   25. ID CARD
   ============================================================ */
.cv-template-idcard .cv-tpl-idcard {
    padding: 16mm 14mm;
    font-family: 'Source Sans 3', sans-serif;
}
.cv-template-idcard .cv-id-header {
    border: 2px solid var(--cv-color);
    margin-bottom: calc(14px * var(--cv-spacing));
}
.cv-template-idcard .cv-id-band {
    background: var(--cv-color);
    color: white;
    padding: 6px 14px;
    font-weight: 700; letter-spacing: 0.2em;
    font-size: .85em;
}
.cv-template-idcard .cv-id-content {
    display: flex; gap: 14px;
    padding: 12px 14px;
    align-items: center;
}
.cv-template-idcard .cv-id-content .cv-photo {
    border-radius: 0;
    border: 2px solid var(--cv-color);
}
.cv-template-idcard .cv-id-info { flex: 1; }
.cv-template-idcard .cv-id-info table { width: 100%; font-size: .85em; }
.cv-template-idcard .cv-id-info td { padding: 1px 0; }
.cv-template-idcard .cv-id-lbl {
    font-weight: 700; color: var(--cv-color);
    letter-spacing: 0.08em;
    width: 100px;
    font-size: .88em;
}
.cv-template-idcard .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-idcard h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--cv-color);
}
.cv-template-idcard .cv-item { margin-bottom: calc(7px * var(--cv-spacing)); }
.cv-template-idcard .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-idcard .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-idcard p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-idcard .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-idcard .cv-half { margin-bottom: 0; }
.cv-template-idcard .cv-list-bullet li { font-size: .88em; }

/* ============================================================
   26. VINTAGE
   ============================================================ */
.cv-template-vintage .cv-tpl-vintage {
    padding: 18mm 18mm;
    font-family: 'Cormorant Garamond', serif;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--cv-color) 8%, white), white),
        white;
    color: #3f3a36;
}
.cv-template-vintage .cv-header { text-align: center; margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-vintage .cv-vintage-frame {
    display: inline-block;
    padding: 14px 24px;
    border-top: 3px double var(--cv-color);
    border-bottom: 3px double var(--cv-color);
}
.cv-template-vintage .cv-vintage-frame h1 {
    font-size: 2.6em; font-weight: 600;
    letter-spacing: 0.12em;
    color: #3f3a36;
}
.cv-template-vintage .cv-subtitle {
    font-size: 1.05em; font-style: italic;
    color: var(--cv-color);
    margin-top: 4px;
    letter-spacing: 0.05em;
}
.cv-template-vintage .cv-contacts { font-size: .9em; color: #6b7280; margin-top: 10px; }
.cv-template-vintage .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-vintage h2 {
    font-size: 1.4em; font-weight: 600;
    color: var(--cv-color);
    text-align: center;
    margin-bottom: 8px;
    font-style: italic;
    letter-spacing: 0.05em;
}
.cv-template-vintage .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); text-align: center; }
.cv-template-vintage .cv-item-head { display: flex; justify-content: center; gap: 14px; align-items: baseline; }
.cv-template-vintage .cv-item-head strong { font-size: 1.05em; font-weight: 600; }
.cv-template-vintage .cv-date { font-size: .9em; color: #6b7280; font-style: italic; }
.cv-template-vintage em { font-size: .95em; color: var(--cv-color); font-style: italic; display: block; }
.cv-template-vintage p { font-size: .95em; margin-top: 3px; }
.cv-template-vintage .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-vintage .cv-half { margin-bottom: 0; text-align: center; }
.cv-template-vintage .cv-half p { font-size: 1em; }

/* ============================================================
   27. GEOMETRIQUE
   ============================================================ */
.cv-template-geometric .cv-tpl-geometric {
    font-family: 'Montserrat', sans-serif;
}
.cv-template-geometric .cv-header {
    position: relative;
    padding: 14mm 14mm;
    background: color-mix(in srgb, var(--cv-color) 10%, white);
    overflow: hidden;
    margin-bottom: 10mm;
}
.cv-template-geometric .cv-geo-shape {
    position: absolute;
    background: var(--cv-color);
    opacity: .2;
}
.cv-template-geometric .cv-geo-1 {
    width: 80px; height: 80px;
    top: -20px; right: 20px;
    border-radius: 50%;
}
.cv-template-geometric .cv-geo-2 {
    width: 60px; height: 60px;
    bottom: -20px; right: 100px;
    transform: rotate(45deg);
}
.cv-template-geometric .cv-geo-3 {
    width: 100px; height: 100px;
    top: 20px; right: 100px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cv-template-geometric .cv-header-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 14px;
}
.cv-template-geometric .cv-header h1 { font-size: 1.9em; font-weight: 800; color: #1f2937; }
.cv-template-geometric .cv-subtitle { color: var(--cv-color); font-weight: 600; margin: 3px 0 6px; }
.cv-template-geometric .cv-contacts { font-size: .82em; color: #4b5563; }
.cv-template-geometric .cv-body { padding: 0 14mm 14mm; }
.cv-template-geometric .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-geometric h2 {
    font-size: 1.1em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.cv-template-geometric .cv-geo-icon { color: var(--cv-color); font-size: 1.2em; }
.cv-template-geometric .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-geometric .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-geometric .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-geometric em { font-size: .88em; color: #6b7280; font-style: italic; }
.cv-template-geometric p { font-size: .88em; white-space: pre-wrap; margin-top: 3px; }
.cv-template-geometric .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-geometric .cv-half { margin-bottom: 0; }

/* ============================================================
   28. MARBLE
   ============================================================ */
.cv-template-marble .cv-tpl-marble {
    font-family: 'Cormorant Garamond', serif;
    color: #1f2937;
}
.cv-template-marble .cv-header {
    position: relative;
    padding: 18mm 14mm 14mm;
    text-align: center;
    color: white;
    overflow: hidden;
}
.cv-template-marble .cv-marble-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.2), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.15), transparent 40%),
        linear-gradient(135deg, var(--cv-color), color-mix(in srgb, var(--cv-color) 50%, #1e293b));
}
.cv-template-marble .cv-marble-content { position: relative; z-index: 1; }
.cv-template-marble .cv-marble-content .cv-photo {
    margin: 0 auto 10px;
    border: 3px solid rgba(255,255,255,.5);
}
.cv-template-marble .cv-marble-content h1 {
    font-size: 2.4em; font-weight: 600;
    letter-spacing: 0.06em;
}
.cv-template-marble .cv-subtitle {
    font-size: 1.1em; font-style: italic;
    opacity: .95; margin: 4px 0 8px;
}
.cv-template-marble .cv-contacts {
    font-family: 'Inter', sans-serif;
    font-size: .85em; opacity: .9;
}
.cv-template-marble .cv-body { padding: 14mm 14mm; }
.cv-template-marble .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-marble h2 {
    font-size: 1.5em; font-weight: 600;
    color: var(--cv-color);
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}
.cv-template-marble .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); text-align: center; }
.cv-template-marble .cv-item-head { display: flex; justify-content: center; gap: 16px; align-items: baseline; }
.cv-template-marble .cv-item-head strong { font-size: 1.1em; font-weight: 600; }
.cv-template-marble .cv-date { font-size: .9em; color: #6b7280; font-style: italic; }
.cv-template-marble em { font-size: .95em; color: var(--cv-color); display: block; font-style: italic; }
.cv-template-marble p { font-size: .95em; margin-top: 3px; }
.cv-template-marble .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-template-marble .cv-half { margin-bottom: 0; text-align: center; }
.cv-template-marble .cv-list-elegant { font-size: .95em; line-height: 1.8; }

/* ============================================================
   29. CARDS
   ============================================================ */
.cv-template-cards .cv-tpl-cards {
    padding: 12mm 12mm;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
}
.cv-template-cards .cv-header {
    display: flex; align-items: center; gap: 14px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    margin-bottom: 10px;
    border-left: 6px solid var(--cv-color);
}
.cv-template-cards .cv-header h1 { font-size: 1.7em; font-weight: 700; color: #1f2937; }
.cv-template-cards .cv-subtitle { color: var(--cv-color); font-weight: 600; font-size: 1em; }
.cv-template-cards .cv-contacts { font-size: .8em; color: #6b7280; margin-top: 3px; }
.cv-template-cards .cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.cv-template-cards .cv-card {
    background: white;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cv-template-cards .cv-card-wide { grid-column: span 3; }
.cv-template-cards .cv-card h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid color-mix(in srgb, var(--cv-color) 20%, white);
}
.cv-template-cards .cv-item { margin-bottom: 7px; }
.cv-template-cards .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-cards .cv-date { font-size: .8em; color: #6b7280; }
.cv-template-cards em { font-size: .85em; color: #6b7280; }
.cv-template-cards p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-cards .cv-item-mini { font-size: .85em; margin-bottom: 5px; }
.cv-template-cards .cv-item-mini .cv-date { color: #6b7280; }

/* ============================================================
   30. RIBBON
   ============================================================ */
.cv-template-ribbon .cv-tpl-ribbon {
    display: grid;
    grid-template-columns: 60mm 1fr;
    height: 297mm;
    font-family: 'Raleway', sans-serif;
}
.cv-template-ribbon .cv-ribbon-side {
    background: var(--cv-color);
    color: white;
    padding: 16mm 8mm;
}
.cv-template-ribbon .cv-ribbon-name {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,.4);
}
.cv-template-ribbon .cv-ribbon-first {
    font-size: 1.3em; font-weight: 300;
    letter-spacing: 0.15em;
}
.cv-template-ribbon .cv-ribbon-last {
    font-size: 1.6em; font-weight: 800;
    letter-spacing: 0.1em;
}
.cv-template-ribbon .cv-ribbon-title {
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: .9;
    margin-bottom: 16px;
}
.cv-template-ribbon .cv-ribbon-contacts p {
    font-size: .82em;
    margin-bottom: 5px;
    word-break: break-word;
}
.cv-template-ribbon .cv-ribbon-contacts i { opacity: .8; margin-right: 4px; width: 14px; }
.cv-template-ribbon .cv-ribbon-main {
    padding: 14mm 12mm;
    background: white;
}
.cv-template-ribbon .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-ribbon h2 {
    font-size: 1.1em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--cv-color);
}
.cv-template-ribbon .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-ribbon .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-ribbon .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-ribbon em { font-size: .88em; color: #6b7280; }
.cv-template-ribbon p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-ribbon .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-ribbon .cv-half { margin-bottom: 0; }

/* ============================================================
   31. COVER
   ============================================================ */
.cv-template-cover .cv-tpl-cover {
    font-family: 'Inter', sans-serif;
}
.cv-template-cover .cv-cover {
    background: linear-gradient(135deg,
        var(--cv-color),
        color-mix(in srgb, var(--cv-color) 50%, #1e293b));
    color: white;
    padding: 24mm 14mm 18mm;
    text-align: center;
}
.cv-template-cover .cv-cover .cv-photo {
    margin: 0 auto 14px;
    border: 5px solid rgba(255,255,255,.4);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cv-template-cover .cv-cover h1 {
    font-size: 2.4em; font-weight: 800;
    letter-spacing: -0.01em;
}
.cv-template-cover .cv-subtitle {
    font-size: 1.15em; opacity: .95;
    margin-top: 6px;
}
.cv-template-cover .cv-cover-divider {
    width: 80px; height: 3px;
    background: white;
    margin: 12px auto;
    opacity: .8;
}
.cv-template-cover .cv-contacts {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 18px; font-size: .9em; opacity: .95;
}
.cv-template-cover .cv-contacts div { display: inline-flex; align-items: center; gap: 6px; }
.cv-template-cover .cv-body { padding: 12mm 14mm; }
.cv-template-cover .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-cover h2 {
    font-size: 1.1em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid color-mix(in srgb, var(--cv-color) 30%, white);
}
.cv-template-cover .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-cover .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-cover .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-cover em { font-size: .88em; color: #6b7280; font-style: italic; }
.cv-template-cover p { font-size: .9em; margin-top: 3px; white-space: pre-wrap; }

/* ============================================================
   32. RAINBOW (couleurs par section)
   ============================================================ */
.cv-template-rainbow .cv-tpl-rainbow {
    padding: 14mm 14mm;
    font-family: 'Poppins', sans-serif;
}
.cv-template-rainbow .cv-header {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 12px;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #0ea5e9, #8b5cf6) 1;
    margin-bottom: calc(12px * var(--cv-spacing));
}
.cv-template-rainbow .cv-header h1 { font-size: 1.8em; font-weight: 800; }
.cv-template-rainbow .cv-subtitle { font-size: 1em; color: #4b5563; margin: 3px 0 6px; }
.cv-template-rainbow .cv-contacts { font-size: .82em; color: #6b7280; }
.cv-template-rainbow .cv-section {
    margin-bottom: calc(10px * var(--cv-spacing));
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 5px solid;
}
.cv-template-rainbow .cv-c1 { background: #fef2f2; border-color: #ef4444; }
.cv-template-rainbow .cv-c1 h2 { color: #ef4444; }
.cv-template-rainbow .cv-c2 { background: #fffbeb; border-color: #f59e0b; }
.cv-template-rainbow .cv-c2 h2 { color: #f59e0b; }
.cv-template-rainbow .cv-c3 { background: #ecfdf5; border-color: #10b981; }
.cv-template-rainbow .cv-c3 h2 { color: #10b981; }
.cv-template-rainbow .cv-c4 { background: #eff6ff; border-color: #0ea5e9; }
.cv-template-rainbow .cv-c4 h2 { color: #0ea5e9; }
.cv-template-rainbow .cv-c5 { background: #f5f3ff; border-color: #8b5cf6; }
.cv-template-rainbow .cv-c5 h2 { color: #8b5cf6; }
.cv-template-rainbow h2 { font-size: 1em; font-weight: 700; margin-bottom: 6px; }
.cv-template-rainbow .cv-item { margin-bottom: 7px; }
.cv-template-rainbow .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-rainbow .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-rainbow em { font-size: .88em; color: #6b7280; }
.cv-template-rainbow p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-rainbow .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-template-rainbow .cv-half { margin-bottom: 0; }

/* ============================================================
   33. OUTLINE
   ============================================================ */
.cv-template-outline .cv-tpl-outline {
    padding: 16mm 14mm;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}
.cv-template-outline .cv-header { text-align: center; margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-outline .cv-outline-frame {
    display: inline-block;
    padding: 14px 26px;
    border: 2px solid var(--cv-color);
    border-radius: 4px;
}
.cv-template-outline .cv-outline-frame h1 {
    font-size: 1.9em; font-weight: 700;
    color: var(--cv-color);
    letter-spacing: 0.04em;
}
.cv-template-outline .cv-subtitle {
    font-size: 1em; color: #4b5563; margin-top: 3px;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.cv-template-outline .cv-contacts { font-size: .85em; color: #6b7280; margin-top: 10px; }
.cv-template-outline .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-outline h2 {
    font-size: 1.05em; font-weight: 700;
    color: var(--cv-color);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-align: center;
    padding: 4px 12px;
    border: 1px solid var(--cv-color);
    border-radius: 3px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}
.cv-template-outline .cv-outline-item {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 6px;
}
.cv-template-outline .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-outline .cv-date { font-size: .82em; color: var(--cv-color); font-weight: 500; }
.cv-template-outline em { font-size: .88em; color: #6b7280; }
.cv-template-outline p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-outline .cv-tag-outline {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--cv-color);
    color: var(--cv-color);
    border-radius: 3px;
    font-size: .82em;
    margin: 0 4px 4px 0;
}
.cv-template-outline .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-outline .cv-half { margin-bottom: 0; }

/* ============================================================
   34. DUOTONE
   ============================================================ */
.cv-template-duotone .cv-tpl-duotone {
    font-family: 'Montserrat', sans-serif;
}
.cv-template-duotone .cv-header {
    position: relative;
    padding: 14mm 14mm;
    overflow: hidden;
    color: white;
}
.cv-template-duotone .cv-duo-band-1 {
    position: absolute; inset: 0;
    background: var(--cv-color);
}
.cv-template-duotone .cv-duo-band-2 {
    position: absolute; top: 0; left: 50%; bottom: 0; right: 0;
    background: color-mix(in srgb, var(--cv-color) 60%, #1e293b);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}
.cv-template-duotone .cv-header-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 14px;
}
.cv-template-duotone .cv-header h1 { font-size: 1.9em; font-weight: 800; }
.cv-template-duotone .cv-subtitle { font-size: 1em; opacity: .95; margin: 3px 0 6px; }
.cv-template-duotone .cv-contacts { font-size: .82em; opacity: .9; }
.cv-template-duotone .cv-body { padding: 12mm 14mm; }
.cv-template-duotone .cv-section { margin-bottom: calc(12px * var(--cv-spacing)); }
.cv-template-duotone h2 {
    font-size: 1.05em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--cv-color);
}
.cv-template-duotone .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); }
.cv-template-duotone .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-duotone .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-duotone em { font-size: .88em; color: #6b7280; font-style: italic; }
.cv-template-duotone p { font-size: .9em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-duotone .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-duotone .cv-half { margin-bottom: 0; }

/* ============================================================
   35. NEWSPAPER
   ============================================================ */
.cv-template-newspaper .cv-tpl-newspaper {
    padding: 14mm 14mm;
    font-family: 'Merriweather', serif;
    color: #1f2937;
}
.cv-template-newspaper .cv-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px double #1f2937;
    margin-bottom: calc(12px * var(--cv-spacing));
}
.cv-template-newspaper .cv-news-top {
    font-size: .75em; font-family: 'Inter', sans-serif;
    letter-spacing: 0.25em;
    color: #6b7280;
    margin-bottom: 4px;
}
.cv-template-newspaper .cv-header h1 {
    font-size: 3em; font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1;
}
.cv-template-newspaper .cv-subtitle {
    font-size: 1.05em; font-style: italic;
    color: #6b7280; margin: 4px 0;
}
.cv-template-newspaper .cv-news-bottom {
    font-family: 'Inter', sans-serif;
    font-size: .8em; color: #4b5563;
    margin-top: 6px;
}
.cv-template-newspaper .cv-news-lead p {
    text-align: justify;
    font-size: 1em;
    font-style: italic;
    column-count: 1;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #374151;
}
.cv-template-newspaper .cv-news-lead p::first-letter {
    font-size: 2.8em;
    float: left;
    line-height: .9;
    padding: 4px 6px 0 0;
    font-weight: 700;
    color: var(--cv-color);
}
.cv-template-newspaper .cv-news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-template-newspaper .cv-section { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-newspaper h2 {
    font-size: 1.1em; font-weight: 900;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.cv-template-newspaper .cv-item { margin-bottom: 7px; text-align: justify; }
.cv-template-newspaper em { font-size: .85em; color: #6b7280; font-style: italic; display: block; margin-top: 1px; }
.cv-template-newspaper p { font-size: .88em; margin-top: 3px; line-height: 1.5; }

/* ============================================================
   36. NEUMORPHIC
   ============================================================ */
.cv-template-neumorphic .cv-tpl-neumorphic {
    padding: 12mm 12mm;
    font-family: 'Inter', sans-serif;
    background: #e8ecf3;
}
.cv-template-neumorphic .cv-header {
    display: flex; align-items: center; gap: 14px;
    background: #e8ecf3;
    padding: 12px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow:
        8px 8px 16px rgba(163,177,198,.4),
        -8px -8px 16px rgba(255,255,255,.8);
}
.cv-template-neumorphic .cv-header h1 { font-size: 1.7em; font-weight: 700; color: #334155; }
.cv-template-neumorphic .cv-subtitle { color: var(--cv-color); font-weight: 600; font-size: 1em; }
.cv-template-neumorphic .cv-contact-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 10px;
}
.cv-template-neumorphic .cv-contact-strip div {
    background: #e8ecf3;
    padding: 8px 10px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 6px;
    font-size: .78em; color: #4b5563;
    box-shadow:
        inset 3px 3px 6px rgba(163,177,198,.4),
        inset -3px -3px 6px rgba(255,255,255,.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-template-neumorphic .cv-contact-strip i { color: var(--cv-color); flex-shrink: 0; }
.cv-template-neumorphic .cv-card {
    background: #e8ecf3;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow:
        6px 6px 12px rgba(163,177,198,.4),
        -6px -6px 12px rgba(255,255,255,.8);
}
.cv-template-neumorphic .cv-card h2 {
    font-size: 1em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
}
.cv-template-neumorphic .cv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-template-neumorphic .cv-grid-2 .cv-card { margin-bottom: 0; }
.cv-template-neumorphic .cv-item { margin-bottom: 7px; }
.cv-template-neumorphic .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-neumorphic .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-neumorphic em { font-size: .85em; color: #6b7280; }
.cv-template-neumorphic p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; color: #374151; }
.cv-template-neumorphic .cv-item-mini { font-size: .87em; margin-bottom: 5px; }

/* ============================================================
   37. MOSAIC (tuiles colorées)
   ============================================================ */
.cv-template-mosaic .cv-tpl-mosaic {
    padding: 12mm 12mm;
    font-family: 'Inter', sans-serif;
}
.cv-template-mosaic .cv-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 6px;
    margin-bottom: 12px;
}
.cv-template-mosaic .cv-mosaic-tile {
    padding: 14px;
    border-radius: 8px;
    overflow: hidden;
}
.cv-template-mosaic .cv-tile-name {
    background: var(--cv-color);
    color: white;
}
.cv-template-mosaic .cv-tile-name h1 { font-size: 1.4em; font-weight: 800; line-height: 1.1; }
.cv-template-mosaic .cv-tile-name .cv-subtitle { font-size: .9em; opacity: .9; margin-top: 3px; }
.cv-template-mosaic .cv-tile-photo {
    background: color-mix(in srgb, var(--cv-color) 20%, white);
    display: grid; place-items: center;
    color: var(--cv-color);
    font-size: 2em;
}
.cv-template-mosaic .cv-tile-photo .cv-photo { width: 70px !important; height: 70px !important; }
.cv-template-mosaic .cv-tile-contact {
    background: #f1f5f9;
    color: #1f2937;
    font-size: .75em;
}
.cv-template-mosaic .cv-tile-contact p { margin-bottom: 3px; word-break: break-word; }
.cv-template-mosaic .cv-tile-contact i { color: var(--cv-color); margin-right: 4px; }
.cv-template-mosaic .cv-section { margin-bottom: calc(10px * var(--cv-spacing)); }
.cv-template-mosaic h2 {
    font-size: 1.05em; font-weight: 700;
    color: var(--cv-color);
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--cv-color);
}
.cv-template-mosaic .cv-item { margin-bottom: 7px; }
.cv-template-mosaic .cv-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-template-mosaic .cv-date { font-size: .82em; color: #6b7280; }
.cv-template-mosaic em { font-size: .88em; color: #6b7280; }
.cv-template-mosaic p { font-size: .88em; margin-top: 3px; white-space: pre-wrap; }
.cv-template-mosaic .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-template-mosaic .cv-half { margin-bottom: 0; }

/* ============================================================
   38. ART DECO
   ============================================================ */
.cv-template-artdeco .cv-tpl-artdeco {
    padding: 18mm 18mm;
    font-family: 'Cormorant Garamond', serif;
    color: #1f2937;
    background:
        linear-gradient(to bottom, white, color-mix(in srgb, var(--cv-color) 4%, white));
}
.cv-template-artdeco .cv-header { text-align: center; margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-artdeco .cv-deco-top,
.cv-template-artdeco .cv-deco-bottom {
    font-size: 1.3em;
    color: var(--cv-color);
    letter-spacing: 1em;
    margin-bottom: 6px;
}
.cv-template-artdeco .cv-deco-bottom { margin: 10px 0 0; padding-right: 0; }
.cv-template-artdeco .cv-header h1 {
    font-size: 2.5em; font-weight: 600;
    letter-spacing: 0.12em;
}
.cv-template-artdeco .cv-subtitle {
    font-size: 1.1em; font-style: italic;
    color: var(--cv-color);
    margin-top: 4px;
    letter-spacing: 0.06em;
}
.cv-template-artdeco .cv-deco-line {
    width: 100px; margin: 10px auto;
    height: 2px;
    background: var(--cv-color);
    position: relative;
}
.cv-template-artdeco .cv-deco-line::before,
.cv-template-artdeco .cv-deco-line::after {
    content:'◆';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: var(--cv-color);
    background: white;
    padding: 0 4px;
    font-size: .7em;
}
.cv-template-artdeco .cv-deco-line::before { left: -8px; }
.cv-template-artdeco .cv-deco-line::after { right: -8px; }
.cv-template-artdeco .cv-contacts { font-size: .9em; color: #4b5563; margin-top: 10px; }
.cv-template-artdeco .cv-section { margin-bottom: calc(14px * var(--cv-spacing)); }
.cv-template-artdeco 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.08em;
}
.cv-template-artdeco .cv-item { margin-bottom: calc(8px * var(--cv-spacing)); text-align: center; }
.cv-template-artdeco .cv-item-head { display: flex; justify-content: center; gap: 14px; align-items: baseline; }
.cv-template-artdeco .cv-item-head strong { font-size: 1.05em; font-weight: 600; }
.cv-template-artdeco .cv-date { font-size: .9em; color: #6b7280; font-style: italic; }
.cv-template-artdeco em { font-size: .95em; color: var(--cv-color); font-style: italic; display: block; }
.cv-template-artdeco p { font-size: .92em; margin-top: 3px; }
.cv-template-artdeco .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-template-artdeco .cv-half { margin-bottom: 0; text-align: center; }
.cv-template-artdeco .cv-list-elegant { font-size: .95em; line-height: 1.7; }

/* ============================================================
   FIN — Templates 20 à 38
   ============================================================ */
