/* ============================================================
   Styles des modèles de CV.
   Chaque modèle a une classe racine (.tpl-xxx) qui définit tout.
   Pour ajouter un modèle : ajouter un nouveau bloc .tpl-monModele.
   ============================================================ */

/* Défauts partagés (peuvent être écrasés par chaque modèle) */
.cv-page * { box-sizing: border-box; }
.cv-page h1, .cv-page h2, .cv-page h3, .cv-page p, .cv-page ul {
  margin: 0;
  padding: 0;
}
.cv-page ul { list-style: none; }

/* Listes à puces générées depuis les textareas (descriptions, résumé) */
.cv-page .cv-bullets {
  list-style: none;
  padding-left: 0;
  margin: 3pt 0 0;
}
.cv-page .cv-bullets li {
  position: relative;
  padding-left: 12pt;
  margin: 0 0 2pt;
  line-height: 1.5;
}
.cv-page .cv-bullets li::before {
  content: "•";
  position: absolute;
  left: 2pt;
  top: 0;
  color: currentColor;
  line-height: 1.5;
}

/* Paragraphes (profil / résumé) — texte courant, sans puces */
.cv-page .cv-para {
  margin: 3pt 0 0;
  line-height: 1.5;
}
.cv-page .cv-para + .cv-para {
  margin-top: 4pt;
}

/* ============================================================
   MODÈLE : CLASSIQUE
   Sobre, une colonne, noir/gris, style CV traditionnel.
   ============================================================ */
.tpl-classique {
  color: #1f2937;
  font-family: 'Inter', 'Georgia', serif;
}
.tpl-classique .cv-head {
  text-align: center;
  padding-bottom: 14pt;
  border-bottom: 1.5pt solid #1f2937;
  margin-bottom: 14pt;
}
.tpl-classique .cv-head h1 {
  font-size: 22pt;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
}
.tpl-classique .cv-role {
  font-size: 11pt;
  color: #4b5563;
  margin-top: 3pt;
  font-weight: 500;
}
.tpl-classique .cv-contact {
  font-size: 9.5pt;
  color: #6b7280;
  margin-top: 6pt;
}
.tpl-classique .cv-section { margin-bottom: 12pt; }
.tpl-classique .cv-section h2 {
  font-size: 11pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  margin-bottom: 6pt;
  padding-bottom: 3pt;
  border-bottom: 0.5pt solid #d1d5db;
}
.tpl-classique .cv-item { margin-bottom: 8pt; }
.tpl-classique .cv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12pt;
}
.tpl-classique .cv-item h3 {
  font-size: 10.5pt;
  font-weight: 700;
  color: #111827;
}
.tpl-classique .cv-item-sub {
  font-size: 9.5pt;
  color: #4b5563;
  font-style: italic;
}
.tpl-classique .cv-dates {
  font-size: 9pt;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}
.tpl-classique .cv-desc {
  font-size: 9.5pt;
  color: #374151;
  margin-top: 3pt;
  line-height: 1.5;
}
.tpl-classique .cv-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3pt 18pt;
  font-size: 9.5pt;
  color: #374151;
}
.tpl-classique .cv-tags li {
  position: relative;
  padding-left: 10pt;
  line-height: 1.5;
}
.tpl-classique .cv-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6pt;
  width: 3pt;
  height: 3pt;
  border-radius: 50%;
  background: #1f2937;
}
.tpl-classique .cv-list-inline li {
  display: inline-block;
  margin-right: 12pt;
  font-size: 9.5pt;
}

/* ============================================================
   MODÈLE : MODERNE
   Barre latérale gauche gradient indigo/violet, 2 colonnes.
   ============================================================ */
.tpl-moderne {
  display: grid;
  grid-template-columns: 65mm 1fr;
  padding: 0;
  color: #1f2937;
  overflow: hidden;
}
.tpl-moderne .cv-sidebar {
  background: linear-gradient(160deg, #6366f1, #8b5cf6);
  color: #ffffff;
  padding: 18mm 10mm;
}
.tpl-moderne .cv-avatar {
  width: 55pt;
  height: 55pt;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2pt solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16pt;
  margin: 0 auto 14pt;
  letter-spacing: 0.05em;
}
.tpl-moderne .cv-side-block { margin-bottom: 14pt; }
.tpl-moderne .cv-side-block h2 {
  font-size: 10pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6pt;
  padding-bottom: 3pt;
  border-bottom: 0.5pt solid rgba(255,255,255,0.35);
}
.tpl-moderne .cv-side-block p {
  font-size: 9pt;
  margin-bottom: 3pt;
  opacity: 0.95;
  word-break: break-word;
}
.tpl-moderne .cv-side-block ul li {
  font-size: 9pt;
  padding: 2pt 0;
  opacity: 0.95;
  display: flex;
  justify-content: space-between;
  gap: 8pt;
}
.tpl-moderne .cv-side-block ul li span {
  font-size: 8pt;
  opacity: 0.75;
}
.tpl-moderne .cv-main { padding: 18mm 12mm; }
.tpl-moderne .cv-head { margin-bottom: 14pt; }
.tpl-moderne .cv-head h1 {
  font-size: 22pt;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}
.tpl-moderne .cv-role {
  font-size: 11pt;
  font-weight: 600;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 3pt;
}
.tpl-moderne .cv-section { margin-bottom: 12pt; }
.tpl-moderne .cv-section h2 {
  font-size: 11pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  margin-bottom: 6pt;
}
.tpl-moderne .cv-item {
  margin-bottom: 8pt;
  padding-left: 8pt;
  border-left: 2pt solid #e0e7ff;
}
.tpl-moderne .cv-item .cv-dates {
  font-size: 8.5pt;
  font-weight: 700;
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tpl-moderne .cv-item h3 {
  font-size: 10.5pt;
  font-weight: 700;
  color: #111827;
  margin-top: 2pt;
}
.tpl-moderne .cv-item-sub {
  font-size: 9.5pt;
  color: #6b7280;
  font-weight: 500;
}
.tpl-moderne .cv-desc {
  font-size: 9.5pt;
  color: #374151;
  margin-top: 3pt;
  line-height: 1.5;
}

/* ============================================================
   MODÈLE : MINIMALISTE
   Beaucoup d'espace blanc, typographie fine.
   ============================================================ */
.tpl-minimaliste {
  color: #111827;
  font-weight: 400;
  padding: 25mm 22mm;
}
.tpl-minimaliste .cv-head {
  margin-bottom: 20pt;
}
.tpl-minimaliste .cv-head h1 {
  font-size: 26pt;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #111827;
}
.tpl-minimaliste .cv-role {
  font-size: 11pt;
  font-weight: 500;
  color: #6b7280;
  margin-top: 4pt;
}
.tpl-minimaliste .cv-contact {
  font-size: 9pt;
  color: #9ca3af;
  margin-top: 8pt;
  letter-spacing: 0.03em;
}
.tpl-minimaliste .cv-lead {
  font-size: 11pt;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 18pt;
  padding-bottom: 14pt;
  border-bottom: 0.5pt solid #f3f4f6;
}
.tpl-minimaliste .cv-section { margin-bottom: 16pt; }
.tpl-minimaliste .cv-section h2 {
  font-size: 9pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9ca3af;
  margin-bottom: 10pt;
}
.tpl-minimaliste .cv-item { margin-bottom: 10pt; }
.tpl-minimaliste .cv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12pt;
}
.tpl-minimaliste .cv-item h3 {
  font-size: 10.5pt;
  font-weight: 600;
  color: #111827;
}
.tpl-minimaliste .cv-item-sub {
  font-weight: 400;
  color: #9ca3af;
}
.tpl-minimaliste .cv-dates {
  font-size: 9pt;
  color: #9ca3af;
  font-weight: 400;
  white-space: nowrap;
}
.tpl-minimaliste .cv-desc {
  font-size: 10pt;
  color: #4b5563;
  margin-top: 3pt;
  line-height: 1.6;
}
.tpl-minimaliste .cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20pt;
}
.tpl-minimaliste .cv-list li {
  font-size: 10pt;
  color: #4b5563;
  padding: 2pt 0;
}

/* ============================================================
   MODÈLE : ÉLÉGANT
   Noir & or, sérif de titres, style consulting.
   ============================================================ */
.tpl-elegant {
  color: #1a1a1a;
  font-family: 'Inter', 'Times New Roman', serif;
}
.tpl-elegant .cv-head {
  text-align: center;
  padding-bottom: 16pt;
  margin-bottom: 16pt;
  border-bottom: 2pt double #b8860b;
}
.tpl-elegant .cv-mono {
  font-size: 8pt;
  letter-spacing: 0.4em;
  color: #b8860b;
  font-weight: 700;
  margin-bottom: 6pt;
}
.tpl-elegant .cv-head h1 {
  font-size: 24pt;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  font-family: 'Georgia', 'Times New Roman', serif;
}
.tpl-elegant .cv-role {
  font-size: 11pt;
  color: #4b5563;
  margin-top: 4pt;
  font-style: italic;
}
.tpl-elegant .cv-contact {
  font-size: 9pt;
  color: #6b7280;
  margin-top: 8pt;
  letter-spacing: 0.05em;
}
.tpl-elegant .cv-section { margin-bottom: 14pt; }
.tpl-elegant .cv-section h2 {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #b8860b;
  margin-bottom: 8pt;
  font-family: 'Georgia', serif;
}
.tpl-elegant .cv-item {
  margin-bottom: 10pt;
  padding-left: 10pt;
  border-left: 2pt solid #f3d576;
}
.tpl-elegant .cv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12pt;
}
.tpl-elegant .cv-item h3 {
  font-size: 11pt;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Georgia', serif;
}
.tpl-elegant .cv-item-sub {
  font-size: 9.5pt;
  color: #4b5563;
  font-style: italic;
}
.tpl-elegant .cv-dates {
  font-size: 9pt;
  color: #b8860b;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tpl-elegant .cv-desc {
  font-size: 9.5pt;
  color: #374151;
  margin-top: 3pt;
  line-height: 1.55;
}
.tpl-elegant .cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16pt;
}
.tpl-elegant .cv-list li {
  font-size: 9.5pt;
  color: #374151;
  padding: 2pt 0;
  padding-left: 8pt;
  position: relative;
}
.tpl-elegant .cv-list li::before {
  content: "◆";
  color: #b8860b;
  position: absolute;
  left: 0;
  font-size: 6pt;
  top: 4pt;
}

/* ============================================================
   MODÈLE : CRÉATIF
   Accents violets, emoji sur les titres.
   ============================================================ */
.tpl-creatif {
  color: #1f2937;
  padding: 15mm 15mm 15mm 0;
  position: relative;
}
.tpl-creatif::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8mm;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
}
.tpl-creatif > * { margin-left: 18mm; }
.tpl-creatif .cv-head {
  padding-bottom: 12pt;
  margin-bottom: 14pt;
}
.tpl-creatif .cv-head h1 {
  font-size: 24pt;
  font-weight: 900;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.tpl-creatif .cv-role {
  font-size: 11pt;
  color: #4b5563;
  font-weight: 600;
  margin-top: 3pt;
}
.tpl-creatif .cv-contact {
  font-size: 9pt;
  color: #6b7280;
  margin-top: 8pt;
  display: flex;
  flex-wrap: wrap;
  gap: 10pt;
}
.tpl-creatif .cv-section { margin-bottom: 14pt; }
.tpl-creatif .cv-section h2 {
  font-size: 12pt;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 8pt;
  display: flex;
  align-items: center;
  gap: 6pt;
}
.tpl-creatif .cv-emoji {
  display: inline-block;
  font-size: 14pt;
}
.tpl-creatif .cv-item {
  margin-bottom: 9pt;
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
  padding: 8pt 10pt;
  border-radius: 6pt;
}
.tpl-creatif .cv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10pt;
}
.tpl-creatif .cv-item h3 {
  font-size: 10.5pt;
  font-weight: 700;
  color: #111827;
}
.tpl-creatif .cv-item-sub {
  font-size: 9.5pt;
  color: #6b7280;
}
.tpl-creatif .cv-dates {
  font-size: 8.5pt;
  color: #ffffff;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  padding: 2pt 6pt;
  border-radius: 20pt;
  font-weight: 700;
  white-space: nowrap;
}
.tpl-creatif .cv-desc {
  font-size: 9.5pt;
  color: #374151;
  margin-top: 3pt;
  line-height: 1.5;
}
.tpl-creatif .cv-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3pt 18pt;
  font-size: 9.5pt;
  color: #4b5563;
  font-weight: 500;
}
.tpl-creatif .cv-tags li {
  position: relative;
  padding-left: 12pt;
  line-height: 1.5;
}
.tpl-creatif .cv-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5pt;
  width: 5pt;
  height: 5pt;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
}
.tpl-creatif .cv-list li {
  font-size: 9.5pt;
  color: #4b5563;
  padding: 2pt 0;
}
.tpl-creatif .cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14pt;
}
