/* ── Variables CSS (copiées depuis main.css pour Puppeteer) ── */
:root {
  --ink:        #0c0f1a;
  --ink-2:      #141826;
  --ink-3:      #1c2237;
  --ink-4:      #252d47;
  --gold:       #c8922a;
  --gold-lt:    #e8b84b;
  --gold-dim:   rgba(200,146,42,.18);
  --gold-pale:  rgba(200,146,42,.07);
  --white:      #ffffff;
  --muted:      rgba(255,255,255,.38);
  --muted-2:    rgba(255,255,255,.18);
  --border:     rgba(255,255,255,.1);
  --border-2:   rgba(255,255,255,.06);
  --red:        #f87171;
  --r:          8px;
  --r2:         14px;
  --sh2:        0 8px 40px rgba(0,0,0,.5);
  --purple:     #6c3fc5;
  --purple-lt:  rgba(108,63,197,.18);
  --text:       rgba(255,255,255,.85);
}

.cv-paper { width: 794px; min-height: 1122px; background: #fff; font-family: 'Epilogue', Arial, sans-serif; font-size: 10.5pt; color: #111; line-height: 1.5; }
.cv-paper.rtl { direction: rtl; text-align: right; }
.cv-proj-link { font-size: 8pt; color: #555; font-style: normal; white-space: nowrap; flex-shrink: 0; }

/* Classic */
.cv-classic .cv-header { background: #0b1628; color: #fff; padding: 26px 34px 20px; }
.cv-classic .cv-header-row { display: flex; align-items: center; gap: 14px; }
.cv-classic .cv-photo { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,.28); }
.cv-classic .cv-name { font-size: 24pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #fff; line-height: 1.1; margin-bottom: 2px; }
.cv-classic .cv-jobtitle { font-size: 10pt; color: rgba(255,255,255,.82); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.cv-classic .cv-contacts { display: flex; flex-wrap: wrap; gap: 5px 18px; font-size: 8.5pt; color: rgba(255,255,255,.8); }
.cv-classic .cv-contact-item { display: flex; align-items: center; gap: 4px; }
.cv-classic .cv-body { padding: 22px 34px; }
.cv-classic .cv-section { margin-bottom: 22px; }
.cv-classic .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #0b1628; padding-bottom: 5px; border-bottom: 2px solid #c8922a; margin-bottom: 12px; }
.cv-classic .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; }
.cv-classic .cv-entry { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f0ede8; }
.cv-classic .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-classic .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-classic .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-classic .cv-entry-date { font-size: 7.5pt; color: #999; font-style: italic; white-space: nowrap; margin-top: 2px; }
.cv-classic .cv-entry-org { font-size: 8.5pt; color: #777; font-weight: 500; margin-bottom: 5px; }
.cv-classic .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-classic .cv-tags-wrap { display: flex; flex-wrap: wrap; gap: 0; }
.cv-classic .cv-tag { font-size: 9pt; color: #333; font-weight: 400; background: none; border: none; padding: 0; }
.cv-classic .cv-tag::after { content: " · "; color: #c8922a; font-weight: 700; margin: 0 2px; }
.cv-classic .cv-tag:last-child::after { content: ""; }
/* Soft skills & interests — inline bullets, no background */
.cv-classic .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-classic .cv-bullet { font-size: 9pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none !important; border: none !important; padding: 0; }
.cv-classic .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }
.cv-classic .cv-lang-wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cv-classic .cv-lang-item { font-size: 9pt; color: #333; }
.cv-classic .cv-lang-level { font-size: 8.5pt; color: inherit; margin-left: 4px; font-weight: 500; }

/* Modern */
.cv-modern-layout { display: flex; }
.cv-modern-layout .cv-sidebar { width: 255px; min-height: 1122px; background: #0b1628; color: #fff; padding: 32px 24px; flex-shrink: 0; }
.cv-modern-layout .cv-photo { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; object-position: center top; display: block; margin: 0 auto 18px; box-shadow: 0 6px 22px rgba(0,0,0,.32); }
.cv-modern-layout .cv-name { font-size: 20pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #fff; line-height: 1.15; margin-bottom: 5px; text-align: center; }
.cv-modern-layout .cv-jobtitle { font-size: 9pt; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; font-weight: 600; text-align: center; }
.cv-modern-layout .cv-sb-section { margin-bottom: 20px; }
.cv-modern-layout .cv-sb-title { font-size: 7.5pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c8922a; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(200,146,42,.3); }
.cv-modern-layout .cv-contact-item { display: flex; align-items: center; gap: 5px; font-size: 8.5pt; color: rgba(255,255,255,.7); margin-bottom: 6px; word-break: break-word; }
.cv-modern-layout .cv-sb-skill-list { list-style: none; margin: 0; padding: 0; }
.cv-modern-layout .cv-sb-skill { font-size: 8.5pt; color: rgba(255,255,255,.8); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cv-modern-layout .cv-sb-bullet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.cv-modern-layout .cv-sb-bullet { font-size: 8.5pt; color: rgba(255,255,255,.8); display: flex; align-items: baseline; gap: 4px; }
.cv-modern-layout .cv-sb-bullet::before { content: "•"; color: var(--cv-accent, rgba(255,255,255,.9)); font-weight: 700; flex-shrink: 0; }
.cv-modern-layout .cv-lang-item { display: flex; justify-content: space-between; font-size: 8.5pt; color: rgba(255,255,255,.8); padding: 3px 0; }
.cv-modern-layout .cv-lang-level { color: rgba(255,255,255,.55); }
.cv-modern-layout .cv-main { flex: 1; padding: 30px 28px; }
.cv-modern-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; margin-bottom: 20px; }
.cv-modern-layout .cv-section { margin-bottom: 22px; }
.cv-modern-layout .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0b1628; padding-bottom: 5px; border-bottom: 2px solid #c8922a; margin-bottom: 12px; }
.cv-modern-layout .cv-entry { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0ede8; }
.cv-modern-layout .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-modern-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-modern-layout .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-modern-layout .cv-entry-date { font-size: 7.5pt; color: #999; font-style: italic; white-space: nowrap; margin-top: 2px; }
.cv-modern-layout .cv-entry-org { font-size: 8.5pt; color: #777; font-weight: 500; margin: 0 0 5px; }
.cv-modern-layout .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }

/* Minimal */
.cv-minimal-layout { padding: 40px 46px; }
.cv-minimal-layout .cv-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 3px solid #0b1628; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.cv-minimal-layout .cv-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.cv-minimal-layout .cv-name { font-size: 27pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #0b1628; line-height: 1.1; margin-bottom: 3px; }
.cv-minimal-layout .cv-jobtitle { font-size: 9.5pt; color: #555; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.cv-minimal-layout .cv-contacts { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 8.5pt; color: #555; }
.cv-minimal-layout .cv-section { margin-bottom: 24px; }
.cv-minimal-layout .cv-section-title { font-size: 7.5pt; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #555; margin-bottom: 12px; }
.cv-minimal-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; }
.cv-minimal-layout .cv-entry { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #edeae5; }
.cv-minimal-layout .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-minimal-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-minimal-layout .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-minimal-layout .cv-entry-date { font-size: 7.5pt; color: #bbb; margin-top: 2px; }
.cv-minimal-layout .cv-entry-org { font-size: 8.5pt; color: #888; margin: 0 0 5px; }
.cv-minimal-layout .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-minimal-layout .cv-tags-wrap { display: flex; flex-wrap: wrap; gap: 0; }
.cv-minimal-layout .cv-tag { font-size: 9pt; color: #444; background: none; border: none; padding: 0; }
.cv-minimal-layout .cv-tag::after { content: " · "; color: #999; font-weight: 600; margin: 0 2px; }
.cv-minimal-layout .cv-tag:last-child::after { content: ""; }
.cv-minimal-layout .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-minimal-layout .cv-bullet { font-size: 9pt; color: #444; display: flex; align-items: baseline; gap: 5px; background: none !important; border: none !important; padding: 0; }
.cv-minimal-layout .cv-bullet::before { content: "•"; color: var(--cv-accent, #555); font-weight: 700; flex-shrink: 0; }
.cv-minimal-layout .cv-lang-wrap { display: flex; flex-wrap: wrap; gap: 7px 22px; }
.cv-minimal-layout .cv-lang-item { font-size: 9pt; color: #333; }
.cv-minimal-layout .cv-lang-level { font-size: 8.5pt; color: #777; margin-left: 4px; }

/* Executive */
.cv-executive { padding: 44px 50px; }
.cv-executive .cv-header { text-align: center; margin-bottom: 6px; padding-bottom: 14px; border-bottom: 3px solid #0b1628; position: relative; }
.cv-executive .cv-header::after { content: ''; display: block; width: 60px; height: 2px; background: #c8922a; margin: 8px auto 0; }
.cv-executive .cv-photo-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.cv-executive .cv-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 0 0 2px #c8922a, 0 6px 22px rgba(0,0,0,.24); }
.cv-executive .cv-name { font-size: 26pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #0b1628; letter-spacing: -0.3px; margin-bottom: 4px; }
.cv-executive .cv-jobtitle { font-size: 10pt; letter-spacing: .14em; text-transform: uppercase; color: #555; font-weight: 600; margin-bottom: 10px; }
.cv-executive .cv-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 8.5pt; color: #555; }
.cv-executive .cv-contact-item { display: flex; align-items: center; gap: 4px; }
.cv-executive .cv-body { padding-top: 18px; }
.cv-executive .cv-section { margin-bottom: 22px; }
.cv-executive .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #0b1628; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cv-executive .cv-section-title::before { content: ''; display: inline-block; width: 18px; height: 2px; background: #c8922a; flex-shrink: 0; }
.cv-executive .cv-summary { font-size: 9.5pt; color: #555; line-height: 1.72; text-align: center; font-style: italic; }
.cv-executive .cv-entry { margin-bottom: 15px; padding-left: 26px; padding-bottom: 15px; border-bottom: 1px solid #f0ede8; }
.cv-executive .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-executive .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-executive .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-executive .cv-entry-date { font-size: 7.5pt; color: #bbb; font-style: italic; white-space: nowrap; margin-top: 2px; }
.cv-executive .cv-entry-org { font-size: 8.5pt; color: #888; margin-bottom: 5px; font-weight: 500; }
.cv-executive .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-executive .cv-tags-wrap { display: flex; flex-wrap: wrap; gap: 0; }
.cv-executive .cv-tag { font-size: 9pt; color: #333; background: none; border: none; padding: 0; font-weight: 400; }
.cv-executive .cv-tag::after { content: " · "; color: #c8922a; font-weight: 700; margin: 0 3px; }
.cv-executive .cv-tag:last-child::after { content: ""; }
.cv-executive .cv-lang-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cv-executive .cv-lang-item { font-size: 9pt; color: #333; }
.cv-executive .cv-lang-level { font-size: 8.5pt; color: inherit; margin-left: 4px; font-weight: 500; }
.cv-executive .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-executive .cv-bullet { font-size: 9pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; }
.cv-executive .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }

/* Tech */
.cv-tech-layout { display: flex; }
.cv-tech-layout .cv-accent-bar { width: 8px; background: linear-gradient(180deg, #c8922a 0%, #0b1628 100%); flex-shrink: 0; }
.cv-tech-layout .cv-tech-inner { flex: 1; padding: 32px 36px; }
.cv-tech-layout .cv-header { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #e0dbd2; margin-bottom: 20px; }
.cv-tech-layout .cv-photo { width: 114px; height: 114px; border-radius: 12px; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 4px 18px rgba(0,0,0,.16); }
.cv-tech-layout .cv-name { font-size: 24pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #0b1628; line-height: 1.1; margin-bottom: 3px; }
.cv-tech-layout .cv-jobtitle { font-size: 9.5pt; color: #555; font-weight: 600; letter-spacing: .06em; margin-bottom: 8px; }
.cv-tech-layout .cv-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 8.5pt; color: #555; }
.cv-tech-layout .cv-contact-item { display: flex; align-items: center; gap: 3px; }
.cv-tech-layout .cv-section { margin-bottom: 20px; }
.cv-tech-layout .cv-section-title { font-size: 7.5pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c8922a; padding-bottom: 5px; border-bottom: 1.5px solid #e0dbd2; margin-bottom: 12px; }
.cv-tech-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; }
.cv-tech-layout .cv-entry { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #ede9e3; }
.cv-tech-layout .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-tech-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-tech-layout .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-tech-layout .cv-entry-date { font-size: 7pt; color: #c8922a; font-weight: 600; white-space: nowrap; background: #fdf3de; padding: 2px 7px; border-radius: 3px; margin-top: 1px; }
.cv-tech-layout .cv-entry-org { font-size: 8.5pt; color: #777; font-weight: 500; margin: 0 0 5px; }
.cv-tech-layout .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-tech-layout .cv-tags-wrap { display: flex; flex-wrap: wrap; gap: 0; }
.cv-tech-layout .cv-tag { font-size: 9pt; color: #333; background: none; border: none; padding: 0; font-weight: 400; }
.cv-tech-layout .cv-tag::after { content: " · "; color: #c8922a; font-weight: 700; margin: 0 3px; }
.cv-tech-layout .cv-tag:last-child::after { content: ""; }
.cv-tech-layout .cv-lang-wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.cv-tech-layout .cv-lang-item { font-size: 9pt; color: #333; }
.cv-tech-layout .cv-lang-level { font-size: 8.5pt; color: #c8922a; font-weight: 600; margin-left: 4px; }
.cv-tech-layout .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-tech-layout .cv-bullet { font-size: 9pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; }
.cv-tech-layout .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }

/* Timeline */
.cv-timeline-layout { padding: 0; }
.cv-timeline-layout .cv-header { background: #0b1628; color: #fff; padding: 28px 40px 22px; }
.cv-timeline-layout .cv-header-row { display: flex; align-items: center; gap: 16px; }
.cv-timeline-layout .cv-photo { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,.28); }
.cv-timeline-layout .cv-name { font-size: 24pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #fff; margin-bottom: 3px; line-height: 1.1; }
.cv-timeline-layout .cv-jobtitle { font-size: 9.5pt; color: rgba(255,255,255,.82); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.cv-timeline-layout .cv-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 8.5pt; color: rgba(255,255,255,.8); }
.cv-timeline-layout .cv-contact-item { display: flex; align-items: center; gap: 4px; }
.cv-timeline-layout .cv-body { padding: 24px 40px; }
.cv-timeline-layout .cv-section { margin-bottom: 24px; }
.cv-timeline-layout .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0b1628; padding-bottom: 5px; border-bottom: 2px solid #c8922a; margin-bottom: 16px; }
.cv-timeline-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; }
.cv-timeline-layout .cv-tl-entries { position: relative; padding-left: 22px; border-left: 2px solid #e0dbd2; }
.cv-timeline-layout .cv-entry { position: relative; margin-bottom: 18px; padding-bottom: 2px; }
.cv-timeline-layout .cv-entry::before { content: ''; position: absolute; left: -27px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #c8922a; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #c8922a; }
.cv-timeline-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3px; }
.cv-timeline-layout .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-timeline-layout .cv-entry-date { font-size: 7pt; color: #fff; background: #c8922a; padding: 2px 8px; border-radius: 10px; white-space: nowrap; font-weight: 600; margin-top: 1px; }
.cv-timeline-layout .cv-entry-org { font-size: 8.5pt; color: #777; font-weight: 500; margin-bottom: 5px; }
.cv-timeline-layout .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-timeline-layout .cv-tags-wrap { display: flex; flex-wrap: wrap; gap: 0; }
.cv-timeline-layout .cv-tag { font-size: 9pt; color: #444; background: none; border: none; padding: 0; }
.cv-timeline-layout .cv-tag::after { content: " · "; color: #c8922a; font-weight: 700; margin: 0 2px; }
.cv-timeline-layout .cv-tag:last-child::after { content: ""; }
.cv-timeline-layout .cv-lang-wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cv-timeline-layout .cv-lang-item { font-size: 9pt; color: #333; }
.cv-timeline-layout .cv-lang-level { font-size: 8.5pt; color: inherit; font-weight: 500; margin-left: 4px; }
.cv-timeline-layout .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-timeline-layout .cv-bullet { font-size: 9pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; }
.cv-timeline-layout .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }

/* Elegant */
.cv-elegant .cv-header { text-align: center; padding: 28px 44px 18px; border-bottom: 1px solid #e4ded6; }
.cv-elegant .cv-elegant-photo-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.cv-elegant .cv-photo { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 0 0 2px #c8922a, 0 4px 16px rgba(0,0,0,.12); }
.cv-elegant .cv-name { font-size: 26pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #1a1a1a; letter-spacing: .02em; margin-bottom: 4px; line-height: 1.1; }
.cv-elegant .cv-jobtitle { font-size: 9.5pt; color: #777; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; }
.cv-elegant .cv-elegant-rule { display: flex; align-items: center; gap: 10px; margin: 8px auto; max-width: 320px; }
.cv-elegant .cv-elegant-rule::before, .cv-elegant .cv-elegant-rule::after { content: ''; flex: 1; height: 1px; background: #c8922a; opacity: .55; }
.cv-elegant .cv-elegant-ornament { color: #c8922a; font-size: 7pt; line-height: 1; opacity: .8; }
.cv-elegant .cv-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 8.5pt; color: #666; margin-top: 8px; }
.cv-elegant .cv-contact-item { display: flex; align-items: center; gap: 4px; }
.cv-elegant-body { display: flex; }
.cv-elegant-main { flex: 1; padding: 22px 28px; }
.cv-elegant-aside { width: 205px; padding: 22px 18px; background: #faf8f5; border-left: 1px solid #e4ded6; flex-shrink: 0; }
.cv-elegant .cv-section { margin-bottom: 20px; }
.cv-elegant .cv-section-title { font-size: 7pt; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c8922a; padding-bottom: 5px; border-bottom: 1px solid #e4ded6; margin-bottom: 11px; }
.cv-elegant .cv-summary { font-size: 9.5pt; color: #555; line-height: 1.7; }
.cv-elegant .cv-entry { margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid #ede8e1; }
.cv-elegant .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-elegant .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-elegant .cv-entry-title { font-size: 10.5pt; font-weight: 700; color: #1a1a1a; }
.cv-elegant .cv-entry-date { font-size: 7.5pt; color: #bbb; font-style: italic; white-space: nowrap; margin-top: 1px; }
.cv-elegant .cv-entry-org { font-size: 8.5pt; color: #999; font-style: italic; margin-bottom: 5px; }
.cv-elegant .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-elegant .cv-tags-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.cv-elegant .cv-tag { font-size: 8.5pt; color: #333; padding: 1px 0; }
.cv-elegant .cv-lang-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cv-elegant .cv-lang-item { font-size: 8.5pt; color: #333; }
.cv-elegant .cv-lang-level { font-size: 8pt; color: #c8922a; }
.cv-elegant .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-elegant .cv-bullet { font-size: 8.5pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; }
.cv-elegant .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }

/* Bold */
.cv-bold-layout .cv-header { padding: 26px 36px 18px; background: #fff; border-bottom: 4px solid #c8922a; }
.cv-bold-layout .cv-bold-header-inner { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.cv-bold-layout .cv-photo { width: 104px; height: 104px; border-radius: 8px; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.cv-bold-layout .cv-name { font-size: 28pt; font-weight: 800; font-family: 'Epilogue', Arial, sans-serif; color: #0b1628; line-height: 1; margin-bottom: 5px; }
.cv-bold-layout .cv-jobtitle { font-size: 10pt; color: #444; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.cv-bold-layout .cv-contacts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 8.5pt; color: #555; }
.cv-bold-layout .cv-contact-item { display: flex; align-items: center; gap: 4px; }
.cv-bold-layout .cv-body { padding: 20px 36px; }
.cv-bold-layout .cv-section { margin-bottom: 20px; }
.cv-bold-layout .cv-section-title { font-size: 8.5pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0b1628; padding-left: 10px; border-left: 4px solid #c8922a; margin-bottom: 12px; line-height: 1.4; }
.cv-bold-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; }
.cv-bold-layout .cv-entry { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0ede8; }
.cv-bold-layout .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-bold-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-bold-layout .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-bold-layout .cv-entry-date { font-size: 7.5pt; color: #c8922a; font-weight: 700; white-space: nowrap; margin-top: 2px; }
.cv-bold-layout .cv-entry-org { font-size: 8.5pt; color: #888; margin-bottom: 5px; }
.cv-bold-layout .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-bold-layout .cv-tags-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.cv-bold-layout .cv-tag { font-size: 9pt; color: #333; background: none; border: none; padding: 0; font-weight: 400; }
.cv-bold-layout .cv-tag::after { content: " · "; color: #c8922a; font-weight: 700; margin: 0 3px; }
.cv-bold-layout .cv-tag:last-child::after { content: ""; }
.cv-bold-layout .cv-lang-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.cv-bold-layout .cv-lang-item { font-size: 9pt; color: #333; }
.cv-bold-layout .cv-lang-level { color: #c8922a; font-weight: 600; }
.cv-bold-layout .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-bold-layout .cv-bullet { font-size: 9pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; }
.cv-bold-layout .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }

/* Compact */
.cv-compact-layout .cv-header { display: flex; align-items: center; gap: 14px; padding: 16px 28px 14px; border-bottom: 2px solid #0b1628; }
.cv-compact-layout .cv-photo { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.cv-compact-layout .cv-name { font-size: 20pt; font-weight: 800; color: #0b1628; font-family: 'Epilogue', Arial, sans-serif; margin-bottom: 2px; line-height: 1.1; }
.cv-compact-layout .cv-jobtitle { font-size: 9pt; color: #555; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 5px; }
.cv-compact-layout .cv-contacts { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 8pt; color: #555; }
.cv-compact-layout .cv-contact-item { display: flex; align-items: center; gap: 3px; }
.cv-compact-layout .cv-body { padding: 13px 28px; }
.cv-compact-layout .cv-section { margin-bottom: 11px; }
.cv-compact-layout .cv-section-title { font-size: 7.5pt; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #0b1628; border-bottom: 1.5px solid #0b1628; padding-bottom: 2px; margin-bottom: 6px; }
.cv-compact-layout .cv-summary { font-size: 9pt; color: #333; line-height: 1.55; }
.cv-compact-table { width: 100%; border-collapse: collapse; }
.cv-compact-row { vertical-align: top; }
.cv-compact-date { width: 108px; font-size: 7.5pt; color: #888; padding: 4px 10px 4px 0; white-space: nowrap; font-style: italic; }
.cv-compact-detail { font-size: 9pt; color: #333; padding: 4px 0; border-top: 1px dotted #ddd; }
.cv-compact-row:first-child .cv-compact-detail { border-top: none; }
.cv-compact-row:first-child .cv-compact-date { padding-top: 0; }
.cv-compact-detail .cv-entry-title { font-size: 9.5pt; font-weight: 700; color: #0b1628; }
.cv-compact-at { color: #666; font-style: italic; font-size: 8.5pt; }
.cv-compact-detail .cv-entry-desc { display: block; font-size: 8.5pt; color: #555; line-height: 1.5; white-space: pre-line; margin-top: 1px; }
.cv-compact-layout .cv-tags-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.cv-compact-layout .cv-tag { font-size: 8.5pt; color: #333; }
.cv-compact-layout .cv-tag::after { content: " · "; color: #c8922a; }
.cv-compact-layout .cv-tag:last-child::after { content: ""; }
.cv-compact-layout .cv-lang-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cv-compact-layout .cv-lang-item { font-size: 9pt; color: #333; }
.cv-compact-layout .cv-lang-level { color: #c8922a; }
.cv-compact-layout .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 14px; padding: 0; margin: 0; }
.cv-compact-layout .cv-bullet { font-size: 8.5pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; }
.cv-compact-layout .cv-bullet::before { content: "•"; color: var(--cv-accent, #c8922a); font-weight: 700; flex-shrink: 0; }

/* Split */
.cv-split-layout { display: flex; min-height: 1122px; }
.cv-split-main { flex: 1; padding: 32px 28px; }
.cv-split-sidebar { width: 238px; background: #0b1628; color: #fff; padding: 32px 20px; flex-shrink: 0; min-height: 1122px; }
.cv-split-layout .cv-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: center top; display: block; margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(0,0,0,.32); }
.cv-split-layout .cv-name { font-size: 22pt; font-weight: 700; font-family: 'Cormorant Garamond', Georgia, serif; color: #0b1628; line-height: 1.1; margin-bottom: 4px; }
.cv-split-layout .cv-jobtitle { font-size: 9.5pt; color: #555; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 20px; }
.cv-split-layout .cv-section { margin-bottom: 20px; }
.cv-split-layout .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0b1628; padding-bottom: 5px; border-bottom: 2px solid #c8922a; margin-bottom: 12px; }
.cv-split-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.7; }
.cv-split-layout .cv-entry { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0ede8; }
.cv-split-layout .cv-entry:last-child { border-bottom: none; padding-bottom: 0; }
.cv-split-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.cv-split-layout .cv-entry-title { font-size: 11pt; font-weight: 700; color: #0b1628; }
.cv-split-layout .cv-entry-date { font-size: 7.5pt; color: #bbb; font-style: italic; white-space: nowrap; margin-top: 2px; }
.cv-split-layout .cv-entry-org { font-size: 8.5pt; color: #888; margin-bottom: 5px; }
.cv-split-layout .cv-entry-desc { font-size: 8.5pt; color: #555; line-height: 1.72; white-space: pre-line; }
.cv-split-layout .cv-sb-section { margin-bottom: 20px; }
.cv-split-layout .cv-sb-title { font-size: 7.5pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c8922a; border-bottom: 1px solid rgba(200,146,42,.3); padding-bottom: 4px; margin-bottom: 8px; }
.cv-split-layout .cv-contact-item { display: flex; align-items: flex-start; gap: 5px; font-size: 8pt; color: rgba(255,255,255,.78); margin-bottom: 5px; word-break: break-all; }
.cv-split-layout .cv-sb-skill-list { list-style: none; margin: 0; padding: 0; }
.cv-split-layout .cv-sb-skill { font-size: 8.5pt; color: rgba(255,255,255,.82); padding: 2px 0; }
.cv-split-layout .cv-sb-bullet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.cv-split-layout .cv-sb-bullet { font-size: 8.5pt; color: rgba(255,255,255,.82); display: flex; align-items: baseline; gap: 4px; }
.cv-split-layout .cv-sb-bullet::before { content: "•"; color: var(--cv-accent, rgba(255,255,255,.9)); font-weight: 700; flex-shrink: 0; }
.cv-split-layout .cv-lang-item { font-size: 8.5pt; color: rgba(255,255,255,.82); padding: 2px 0; }
.cv-split-layout .cv-lang-level { color: #c8922a; }

/* Grid */
.cv-grid-layout { background: #fff; color: #1a1a1a; min-height: 1122px; width: 100%; }
.cv-grid-layout .cv-header { background: #0b1628; padding: 26px 36px 22px; }
.cv-grid-layout .cv-header-inner { display: flex; align-items: center; gap: 18px; }
.cv-grid-layout .cv-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.26); }
.cv-grid-layout .cv-name { font-size: 22pt; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.1; }
.cv-grid-layout .cv-jobtitle { font-size: 9pt; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 10px; }
.cv-grid-layout .cv-contacts { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 8pt; color: rgba(255,255,255,.62); }
.cv-grid-layout .cv-contact-item { display: flex; align-items: center; gap: 4px; }
.cv-grid-layout .cv-grid-body { display: flex; min-height: 940px; }
.cv-grid-layout .cv-grid-left { width: 230px; background: #f4f4f6; border-right: 1px solid #e5e5eb; padding: 22px 18px; flex-shrink: 0; }
.cv-grid-layout .cv-grid-right { flex: 1; min-width: 0; padding: 22px 26px; }
.cv-grid-layout .cv-section { margin-bottom: 16px; }
.cv-grid-layout .cv-section-title { font-size: 7.5pt; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c8922a; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 2px solid #e5e5eb; }
.cv-grid-layout .cv-grid-left .cv-section-title { color: #0b1628; border-bottom-color: #d8d5d0; font-size: 7pt; }
.cv-grid-layout .cv-summary { font-size: 9pt; color: #333; line-height: 1.65; }
.cv-grid-layout .cv-entry { margin-bottom: 11px; }
.cv-grid-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cv-grid-layout .cv-entry-title { font-size: 10pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-grid-layout .cv-entry-date { font-size: 7.5pt; color: #999; font-style: italic; white-space: nowrap; flex-shrink: 0; }
.cv-grid-layout .cv-entry-org { font-size: 9pt; color: #c8922a; font-weight: 600; margin: 2px 0 3px; overflow-wrap: break-word; }
.cv-grid-layout .cv-entry-desc { font-size: 8.5pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.cv-grid-layout .cv-lang-wrap { list-style: none; margin: 0; padding: 0; }
.cv-grid-layout .cv-lang-item { font-size: 8.5pt; color: #333; padding: 2px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.cv-grid-layout .cv-lang-level { color: #c8922a; font-weight: 600; }
.cv-grid-layout .cv-bullets-wrap { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 12px; padding: 0; margin: 0; }
.cv-grid-layout .cv-bullet { font-size: 8pt; color: #333; font-weight: 400; display: flex; align-items: baseline; gap: 4px; background: none; border: none; padding: 0; }
.cv-grid-layout .cv-bullet::before { content: "•"; color: var(--cv-accent, #1a1a1a); font-weight: 700; flex-shrink: 0; }

/* Thumbnail shapes — new templates */
.tpl-elegant { padding: 5px 6px; display: flex; flex-direction: column; }
.tp-elegant-center { text-align: center; margin-bottom: 2px; }
.tp-elegant-rule { height: 1px; background: linear-gradient(90deg, transparent, #c8922a 30%, #c8922a 70%, transparent); margin: 3px 12px 4px; opacity: .7; }
.tp-elegant-body { display: flex; gap: 3px; flex: 1; }
.tp-elegant-main { flex: 1; }
.tp-elegant-side { width: 24px; background: #faf8f5; border-left: 1px solid #e4ded6; padding: 2px 3px; }
.tpl-bold { padding: 5px 6px; }
.tp-bold-header { margin-bottom: 3px; }
.tp-bold-rule { height: 3px; background: #c8922a; margin-bottom: 5px; border-radius: 1px; }
.tp-bold-line { display: flex; align-items: center; gap: 3px; margin-bottom: 4px; }
.tp-bold-bar { width: 3px; height: 9px; background: #c8922a; flex-shrink: 0; border-radius: 1px; }
.tpl-compact { padding: 5px 6px; }
.tp-compact-header { margin-bottom: 4px; border-bottom: 2px solid #0b1628; padding-bottom: 3px; }
.tp-compact-row2 { display: flex; gap: 4px; align-items: flex-start; margin-bottom: 3px; padding-top: 2px; border-top: 1px dotted #ddd; }
.tp-compact-row2:first-of-type { border-top: none; }
.tp-compact-datelabel { width: 22px; height: 3px; background: #ccc; border-radius: 1px; margin-top: 3px; flex-shrink: 0; }
.tpl-split { display: flex; padding: 0; overflow: hidden; }
.tp-split-main { flex: 1; padding: 5px 4px; }
.tp-split-sidebar { width: 24px; background: #0b1628; flex-shrink: 0; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-2);
  background: var(--ink-2);
  padding: 1.1rem 1.5rem;
  margin-left: 220px; /* matches sidebar width */
}
.footer-inner {
  max-width: 840px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-inner .logo-text {
  display: flex; align-items: center; gap: .4rem;
}
.site-footer p { font-size: .74rem; color: var(--muted-2); }
.btn-clear-data {
  background: none; border: 1px solid var(--border-2); color: rgba(255,255,255,.22);
  font-size: .71rem; padding: .3rem .7rem; border-radius: var(--r); cursor: pointer; transition: .15s;
}
.btn-clear-data:hover { border-color: rgba(248,113,113,.3); color: var(--red); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   MOBILE ≤ 768px
   • Topbar : logo + sidebar-toggle (burger) uniquement
   • Bottom nav bar : 6 étapes cliquables + icône sidebar
   • Sidebar : slide depuis la gauche (overlay)
   • Contenu : plein écran, padding-bottom pour la bottom nav
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Topbar mobile ── */
  .topbar {
    height: 52px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .topbar .step-nav   { display: none; }   /* étapes → bottom nav */
  .topbar-right       { gap: 8px; }
  .topbar-progress    { display: none; }   /* progress → bottom nav */
  .sidebar-toggle     { display: flex; align-items: center; justify-content: center;
                        width: 36px; height: 36px; border-radius: 8px;
                        background: var(--ink-3); border: 1px solid var(--border); }

  /* ── Sidebar mobile (slide from left) ── */
  .sidebar {
    animation: none !important; /* cancel content-in which sets transform:none and breaks translateX(-100%) */
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    top: 52px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,.7);
  }
  .sidebar-overlay.open { display: block; top: 52px; }
  /* Hide bottom step-nav when sidebar is open */
  body.sidebar-open .mobile-bottom-nav { display: none !important; }

  /* ── Main content ── */
  .main-content { margin-left: 0; }
  .site-footer { margin-left: 0; }
  .main-content > .step {
    padding: 1.4rem 1rem 100px;   /* 100px pour la bottom nav */
  }

  /* ── Bottom navigation bar ── */
  .mobile-bottom-nav {
    display: flex !important;  /* affiché seulement sur mobile */
  }

  /* ── Contenu ── */
  .step-header h1 { font-size: 1.7rem; }
  .step-actions   { flex-direction: column-reverse; gap: .7rem; }
  .cta-group, .btn-primary, .btn-secondary,
  .btn-pdf-cta, .btn-share-cta, .btn-ai-cta { width: 100%; justify-content: center; }
  .cta-group { flex-direction: column; }
  .preview-scaler { transform: scale(.48); margin-bottom: -54%; }

  /* CV lang buttons */
  .cv-lang-buttons { flex-wrap: wrap; }
}

/* ── Bottom nav bar (cachée sur desktop) ─────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  height: 64px;
  background: rgba(12,15,26,.97);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border-2);
  padding: 0 4px;
  align-items: stretch;
}

.mbn-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  padding: 6px 2px; border-radius: 10px;
  transition: background .15s; position: relative;
  font-family: 'Epilogue', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.mbn-item:active { background: rgba(255,255,255,.06); }

.mbn-circle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.3); font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; position: relative; flex-shrink: 0;
}
.mbn-num   { position: absolute; transition: opacity .2s; }
.mbn-check { position: absolute; opacity: 0; font-size: .75rem; transition: opacity .2s; }

.mbn-label {
  font-size: .55rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  transition: color .2s; white-space: nowrap;
}

/* État actif */
.mbn-item.active .mbn-circle {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200,146,42,.2), 0 2px 12px rgba(200,146,42,.35);
}
.mbn-item.active .mbn-label { color: var(--gold-lt); }

/* État done */
.mbn-item.done .mbn-circle  { background: var(--gold-dim); border-color: rgba(200,146,42,.45); }
.mbn-item.done .mbn-num     { opacity: 0; }
.mbn-item.done .mbn-check   { opacity: 1; color: var(--gold-lt); }
.mbn-item.done .mbn-label   { color: rgba(255,255,255,.35); }

/* Barre de progression mobile — dans la bottom nav */
.mbn-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.05);
}
.mbn-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transition: width .4s ease; border-radius: 0 2px 2px 0;
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-wrap.col-2 { grid-column: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid .field-wrap.col-2 { grid-column: 1; }
  .date-pair { flex-direction: column; }
  .date-sep { display: none; }
  .cv-lang-buttons { flex-direction: column; }
  .preview-scaler { transform: scale(.38); margin-bottom: -64%; }
}
/* ── Bouton "Plus" dans bottom nav ── */
.mbn-more-circle {
  background: var(--ink-3) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
}
.mbn-more-menu {
  position: fixed; bottom: 72px; right: 12px; z-index: 500;
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
  min-width: 180px;
  animation: fadeUpIn .2s ease;
}
@keyframes fadeUpIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.mbn-more-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: 8px; border: none;
  background: none; color: #f08080; font-family: 'Epilogue', sans-serif;
  font-size: .85rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: background .15s;
}
.mbn-more-item:hover { background: rgba(224,92,92,.08); }

@media (max-width: 768px) {
  /* Cacher le bouton "Effacer" du footer sur mobile → il est dans la bottom nav */
  .btn-clear-data { display: none; }
  /* Cacher aussi les boutons export/import du footer sur mobile */
  .footer-actions .btn-footer-action { display: none; }
}

@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* ═══════════════════════════════════════════════════
   CUSTOMIZATION PANEL
═══════════════════════════════════════════════════ */
.custom-panel {
  background: var(--ink-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r2);
  margin-bottom: 1.6rem;
  overflow: hidden;
}
.custom-panel-head {
  padding: .75rem 1.2rem;
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center;
}
.custom-panel-title {
  display: flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.custom-panel-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.custom-group { display: flex; flex-direction: column; gap: .55rem; }
.custom-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* ── COLOR PALETTE ── */
.color-palette {
  display: flex; gap: .45rem; flex-wrap: wrap; align-items: center;
}
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative; flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.18); }
.color-swatch.active {
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
  transform: scale(1.12);
}
.color-swatch.active::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .62rem; font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
/* Custom color picker */
.color-swatch-custom {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 1.5px dashed rgba(255,255,255,.3);
  background: conic-gradient(red,yellow,lime,cyan,blue,magenta,red);
  opacity: .7; transition: opacity .18s, transform .18s;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.color-swatch-custom:hover { opacity: 1; transform: scale(1.12); }
.color-swatch-custom input[type="color"] {
  position: absolute; inset: -4px; opacity: 0; cursor: pointer; width: 140%; height: 140%;
}

/* ── FONT PICKER ── */
.font-picker {
  display: flex; gap: .4rem; flex-wrap: wrap;
}
.font-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: .38rem .8rem;
  cursor: pointer; transition: all .18s;
  color: rgba(255,255,255,.55);
  font-size: .84rem;
  white-space: nowrap;
}
.font-btn:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.18); }
.font-btn.active {
  background: rgba(200,146,42,.15);
  border-color: rgba(200,146,42,.45);
  color: var(--gold-lt);
}

/* ── CV PAPER CUSTOM PROPS ── */
/* These are overridden by JS via a <style> tag injected into .cv-paper */
.cv-paper {
  --cv-accent: #c8922a;
  --cv-dark:   #0b1628;
  --cv-font:   'Epilogue', Arial, sans-serif;
}

@media (max-width: 600px) {
  .custom-panel-body { flex-direction: column; gap: 1.2rem; }
  .color-palette { gap: .35rem; }
}

/* ═══════════════════════════════════════
   CV PAPER — Semantic HTML reset
   Les balises h1/h2/h3/p/ul/li héritent
   les styles de leurs classes CSS —
   on neutralise les styles navigateur
═══════════════════════════════════════ */
.cv-paper h1, .cv-paper h2, .cv-paper h3,
.cv-paper p, .cv-paper ul, .cv-paper li {
  margin: 0; padding: 0;
  font-size: inherit; font-weight: inherit;
  font-family: inherit; color: inherit;
  line-height: inherit;
}
.cv-paper ul { list-style: none; }
/* ul/li qui servent de tags gardent leur display flex */
.cv-paper .cv-tags-wrap { display: flex; flex-wrap: wrap; }
.cv-paper .cv-lang-wrap { display: flex; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   CV PAPER — Règles d'impression & saut de page
   Garantit qu'aucune entrée n'est coupée entre pages
═══════════════════════════════════════════════════ */

/* Règle @page pour Puppeteer et impression navigateur */
@page {
  size: A4 portrait;
  margin: 0;
}

/* Empêcher la coupure d'une entrée entre deux pages */
.cv-paper .cv-entry {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Empêcher qu'un titre de section soit seul en bas de page
   (break-after:avoid suffit — éviter break-inside:avoid sur .cv-section
   car ça pousse des sections entières en page 2 et crée des espaces blancs) */
.cv-paper .cv-section-title {
  page-break-after: avoid;
  break-after: avoid;
}

/* Ne jamais couper après le header */
.cv-paper .cv-header {
  page-break-after: avoid;
  break-after: avoid;
}

/* Orphans/widows : min 2 lignes de chaque côté d'un saut */
.cv-paper .cv-entry-desc,
.cv-paper .cv-summary {
  orphans: 2;
  widows: 2;
}

/* Sidebar Modern : s'étire sur toutes les pages */
.cv-modern-layout .cv-sidebar {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Garantir que les backgrounds colorés s'impriment */
.cv-paper,
.cv-paper * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ══════════════════════════════════════════════════════════════
   LOCK SCREEN — Step 6 auth gate
══════════════════════════════════════════════════════════════ */

#step6Lock {
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 16px 0 32px;
}

.lock-screen {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 1;
}

/* ── Animated rings ─────────────────────────────────────────── */
.lock-visual {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.lock-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  animation: lockRingPulse 3s ease-in-out infinite;
}
.lock-ring.r1 { width: 60px;  height: 60px;  animation-delay: 0s;    border-color: rgba(200,146,42,.35); }
.lock-ring.r2 { width: 88px;  height: 88px;  animation-delay: .6s;   border-color: rgba(200,146,42,.20); }
.lock-ring.r3 { width: 116px; height: 116px; animation-delay: 1.2s;  border-color: rgba(200,146,42,.10); }

@keyframes lockRingPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.06); opacity: .6; }
}

.lock-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-dim), var(--sh2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  position: relative;
  z-index: 2;
  animation: lockIconFloat 4s ease-in-out infinite;
}

@keyframes lockIconFloat {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-4px); }
}

/* ── Body text ──────────────────────────────────────────────── */
.lock-body {
  text-align: center;
  width: 100%;
}

.lock-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.lock-title em {
  color: var(--gold);
  font-style: italic;
}

.lock-sub {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 28px;
}

/* ── Perks list ─────────────────────────────────────────────── */
.lock-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  max-width: 380px;
  margin: 0 auto 32px;
  text-align: left;
}

.lock-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.lock-perk svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── CTA ────────────────────────────────────────────────────── */
.lock-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-unlock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  font-family: 'Epilogue', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 24px rgba(200,146,42,.35);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-unlock:hover {
  opacity: .93;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,146,42,.45);
}
.btn-unlock:active {
  transform: translateY(0);
}

.lock-login-hint {
  font-size: .8rem;
  color: var(--muted);
}
.lock-login-hint a {
  color: var(--gold);
  text-decoration: none;
}
.lock-login-hint a:hover {
  text-decoration: underline;
}

/* ── Blurred mock CV behind ─────────────────────────────────── */
.lock-mock {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  z-index: -1;
  filter: blur(8px) brightness(.35);
  pointer-events: none;
  user-select: none;
}

.lock-mock-paper {
  background: white;
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-bar   { height: 28px; background: #c8922a; border-radius: 3px; margin-bottom: 4px; }
.lm-name  { height: 14px; width: 60%; background: #333; border-radius: 3px; }
.lm-title { height: 9px;  width: 40%; background: #999; border-radius: 3px; }
.lm-line  { height: 7px;  width: 90%; background: #ddd; border-radius: 3px; }
.lm-line.short { width: 55%; }
.lm-sep   { height: 1px;  background: #eee; margin: 4px 0; }
.lm-section-title { height: 9px; width: 35%; background: #c8922a; border-radius: 3px; margin-bottom: 2px; opacity: .7; }

/* ── Logged-in user bar ─────────────────────────────────────── */
.step6-user-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
}

.step6-user-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--muted);
}
.step6-user-info svg { color: var(--gold); }

#step6UserBadge {
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--gold);
  font-weight: 500;
}

.btn-logout-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'Epilogue', sans-serif;
  transition: all .2s;
}
.btn-logout-sm:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .lock-perks {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lock-title { font-size: 1.6rem; }
  .lock-mock  { display: none; }
  .btn-unlock { width: 100%; justify-content: center; }
}

/* ── JOB DESC FIELD + AI BADGE ──────────────────────────────── */
.field-textarea--ai {
  border-color: rgba(200,146,42,.3);
  background: linear-gradient(135deg, var(--ink-3) 0%, rgba(200,146,42,.04) 100%);
}
.field-textarea--ai:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  font-size: .72rem;
  color: var(--gold);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   BOUTON IA — Step 6
══════════════════════════════════════════════════════════════ */
.btn-ai-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #6d28d9, #9b6dff);
  color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Epilogue', sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(108,63,197,.35);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-ai-cta:hover  { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(108,63,197,.45); }
.btn-ai-cta:active { transform: translateY(0); }
.btn-ai-cta:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════════════
   MODAL IA
══════════════════════════════════════════════════════════════ */
.modal-ai-box {
  max-width: 640px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.modal-ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-ai-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
  color: #9b6dff;
}

/* Loading */
.ai-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px;
  padding: 60px 24px;
  color: var(--muted); font-size: .9rem;
}
.ai-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--ink-4);
  border-top-color: #9b6dff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* Tabs */
.ai-tabs {
  display: flex; gap: 4px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: none; border: none;
  font-family: 'Epilogue', sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s; margin-bottom: -1px;
}
.ai-tab:hover  { color: var(--text); }
.ai-tab.active { color: #9b6dff; border-bottom-color: #9b6dff; }

/* Content */
.ai-result { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.ai-tab-content { padding: 20px 24px; overflow-y: auto; flex: 1; }

/* Improvements list */
.ai-improvements { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ai-improvement-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: rgba(108,63,197,.08); border: 1px solid rgba(108,63,197,.2);
  border-radius: 8px; font-size: .83rem; color: var(--text); line-height: 1.5;
}
.ai-improvement-item svg { color: #9b6dff; flex-shrink: 0; margin-top: 2px; }

/* Letter */
.ai-letter-wrap {
  background: var(--ink-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px;
  font-size: .85rem; line-height: 1.8; color: var(--text);
  white-space: pre-wrap; margin-bottom: 16px;
}
.ai-no-offer {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; background: var(--gold-pale);
  border: 1px solid var(--gold-dim); border-radius: 8px;
  font-size: .83rem; color: var(--gold);
}

/* Error */
.ai-error {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 48px 24px; text-align: center;
  color: #f08080;
}
.ai-error p { font-size: .88rem; color: var(--muted); }

/* Action buttons */
.ai-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-ai-apply {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #6d28d9, #9b6dff);
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Epilogue', sans-serif; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .15s;
}
.btn-ai-apply:hover { opacity: .9; transform: translateY(-1px); }

.btn-ai-copy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--ink-4); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  font-family: 'Epilogue', sans-serif; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-ai-copy:hover { border-color: #9b6dff; color: #9b6dff; }

.btn-retry {
  padding: 10px 24px; background: var(--ink-4);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-family: 'Epilogue', sans-serif;
  font-size: .83rem; cursor: pointer; transition: all .2s;
}
.btn-retry:hover { border-color: var(--gold); color: var(--gold); }

.btn-plan-upgrade {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6d28d9, #9b6dff);
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Epilogue', sans-serif; font-size: .83rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .15s;
}
.btn-plan-upgrade:hover { opacity: .9; transform: translateY(-1px); }

/* ── Footer actions (export / import JSON) ── */
.footer-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.btn-footer-action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; background: none;
  border: 1px solid var(--border); border-radius: 6px;
  color: rgba(255,255,255,.3); font-family: 'Epilogue', sans-serif;
  font-size: .71rem; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-footer-action:hover { border-color: var(--gold); color: var(--gold); }

/* ── Header auth menu ────────────────────────── */
.header-user-menu { position: relative; }

.btn-header-login {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--gold-pale);
  border: 1px solid var(--gold-dim); border-radius: 6px;
  color: var(--gold); font-family: 'Epilogue', sans-serif;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.btn-header-login:hover { background: var(--gold-dim); }

.btn-header-user {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; background: var(--gold-pale);
  border: 1px solid var(--gold-dim); border-radius: 6px;
  color: var(--gold); font-family: 'Epilogue', sans-serif;
  font-size: .73rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.btn-header-user:hover { background: var(--gold-dim); }
.btn-header-user .online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5cb85c; flex-shrink: 0;
}

.header-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 168px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  display: none; z-index: 500;
}
.header-user-menu.open .header-user-dropdown { display: block; }

.hud-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 6px; text-decoration: none;
  font-size: .78rem; color: var(--muted); transition: all .15s;
  background: none; border: none; font-family: 'Epilogue', sans-serif;
  width: 100%; cursor: pointer; text-align: left;
}
.hud-item:hover { background: var(--ink-3); color: var(--text); }
.hud-item.danger:hover { background: rgba(224,92,92,.08); color: #f08080; }
.hud-sep { height: 1px; background: var(--border-2); margin: 4px 0; }

/* Step items cliquables — hover feedback */
.step-item:not(.active):hover .step-circle {
  border-color: var(--gold);
  transform: scale(1.08);
  transition: all .2s;
}
.step-item:not(.active):hover .step-label {
  color: var(--gold-lt);
  transition: color .2s;
}

/* ═══════════════════════════════════════════════════════
   ENHANCED UI/UX v2 — Creative Global Upgrade
═══════════════════════════════════════════════════════ */

/* ── Page entrance animation (topbar + main content only, not injected widgets) ── */
@keyframes content-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.topbar, .sidebar, .main-content, .content, main {
  animation: content-in .4s cubic-bezier(.4,0,.2,1) both;
}

/* ── Shimmer on gold action buttons ── */
.btn-unlock, .btn-ai-cta, .btn-ai-apply {
  position: relative; overflow: hidden;
}
.btn-unlock::after, .btn-ai-cta::after, .btn-ai-apply::after {
  content: '';
  position: absolute; top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-25deg);
  animation: g-shimmer 3.5s ease-in-out infinite;
}
@keyframes g-shimmer { 0% { left: -150%; } 60%, 100% { left: 200%; } }

/* ── Active step circle glow ── */
.step-item.active .step-circle {
  box-shadow: 0 0 0 3px rgba(200,146,42,.15), 0 0 20px rgba(200,146,42,.25);
}

/* ── Step progress fill animated gradient ── */
.step-progress-fill, .progress-fill {
  background: linear-gradient(90deg, var(--purple), var(--gold));
  background-size: 200% 100%;
  animation: progress-shift 2s ease infinite;
  position: relative; overflow: hidden;
}
.step-progress-fill::after, .progress-fill::after {
  content: '';
  position: absolute; top: 0; left: -200%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: g-shimmer 2.5s ease-in-out infinite;
}
@keyframes progress-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── Toast left border accent ── */
.toast.ok   { border-left: 3px solid #6ee7b7; }
.toast.err  { border-left: 3px solid #fca5a5; }
.toast.info { border-left: 3px solid var(--gold); }

/* ── Modal enhanced shadow + backdrop ── */
.modal-box {
  box-shadow: 0 24px 80px rgba(0,0,0,.7),
              0 0 0 1px var(--border),
              0 0 60px rgba(200,146,42,.04);
}
.modal-overlay {
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

/* ── Dashboard card hover lift ── */
.card {
  transition: transform .2s cubic-bezier(.4,0,.2,1),
              box-shadow .2s,
              border-color .2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.card.gold-glow:hover {
  border-color: rgba(200,146,42,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 30px rgba(200,146,42,.08);
}
.card.purple-glow:hover {
  border-color: rgba(108,63,197,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 30px rgba(108,63,197,.08);
}

/* ── Scrollbar improved ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink-4);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── AI badge subtle pulse ── */
.ai-badge {
  animation: ai-badge-glow 3s ease-in-out infinite;
}
@keyframes ai-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,146,42,.0); }
  50%       { box-shadow: 0 0 12px rgba(200,146,42,.2); }
}

/* ── Profile items hover slide ── */
.profile-item {
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.profile-item:hover {
  background: rgba(200,146,42,.05);
  border-color: var(--gold-dim);
  transform: translateX(3px);
}

/* ── Bottom nav active top indicator ── */
.bottom-nav-item { position: relative; }
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

/* ── Premium plan badge glow pulse ── */
.plan-badge.premium {
  box-shadow: 0 4px 20px rgba(108,63,197,.35), 0 0 0 1px rgba(108,63,197,.2);
  animation: premium-pulse 3s ease-in-out infinite;
}
@keyframes premium-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(108,63,197,.35); }
  50%       { box-shadow: 0 4px 32px rgba(108,63,197,.55); }
}

/* ── Usage bar shimmer ── */
.usage-fill {
  position: relative; overflow: hidden;
}
.usage-fill::after {
  content: '';
  position: absolute; top: 0; left: -200%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: g-shimmer 2.5s ease-in-out 1s infinite;
}

/* ── Header user dropdown spring animation ── */
.header-user-dropdown,
.nav-user-dropdown {
  animation: dropdown-spring .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes dropdown-spring {
  from { opacity: 0; transform: translateY(-8px) scale(.95); }
  to   { opacity: 1; transform: none; }
}

/* ── Topbar subtle bottom glow ── */
.topbar {
  box-shadow: 0 1px 0 var(--border-2), 0 4px 20px rgba(0,0,0,.3);
}

/* ── Section card add button lift ── */
.btn-add-item {
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.btn-add-item:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,146,42,.1);
}

/* ── Sidebar (app layout) hover animation ── */
.sidebar-item {
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.sidebar-item:hover {
  transform: translateX(3px);
}

/* ── CV preview panel subtle glow on hover ── */
.preview-panel, .cv-preview-wrap {
  transition: box-shadow .3s;
}
.preview-panel:hover, .cv-preview-wrap:hover {
  box-shadow: 0 0 60px rgba(200,146,42,.06);
}

/* ── Lock screen backdrop blur ── */
.lock-overlay {
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

/* ── Sync indicator pulse ── */
.sync-badge.syncing,
.sync-status.syncing svg {
  animation: spin .8s linear infinite;
}

/* ── Form input focus ring ── */
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  box-shadow: 0 0 0 3px rgba(200,146,42,.1), 0 1px 4px rgba(0,0,0,.3);
  border-color: rgba(200,146,42,.35);
}

/* ── Skeleton shimmer faster ── */
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Step circle done spring ── */
.step-item.done .step-circle {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  box-shadow: 0 0 16px rgba(200,146,42,.3);
}

/* ── Experience/Education cards hover ── */
.exp-card, .edu-card, .proj-card, .skill-tag {
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.exp-card:hover, .edu-card:hover, .proj-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

/* ── AI Modal tabs active underline animation ── */
.ai-tab.active {
  position: relative;
}
.ai-tab.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-lt));
  border-radius: 2px 2px 0 0;
  animation: tab-appear .2s ease;
}
@keyframes tab-appear {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── AI spinner more fluid ── */
.ai-spinner {
  border: 3px solid var(--ink-4);
  border-top-color: var(--purple-lt);
  border-right-color: rgba(108,63,197,.3);
  box-shadow: 0 0 20px rgba(108,63,197,.2);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — Minimalist Gradient SaaS Design
   Activé par  html[data-theme="light"]
═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --ink:       #f4f6fb;
  --ink-2:     #ffffff;
  --ink-3:     #f1f4fa;
  --ink-4:     #e6eaf5;
  --gold:      #6d28d9;
  --gold-lt:   #7c3aed;
  --gold-dim:  rgba(108,63,197,.18);
  --gold-pale: rgba(108,63,197,.07);
  --white:     #0d1117;
  --slate:     #1e293b;
  --slate-2:   #334155;
  --slate-3:   #64748b;
  --muted:     rgba(15,23,42,.45);
  --muted-2:   rgba(15,23,42,.25);
  --muted-3:   rgba(15,23,42,.06);
  --border:    rgba(15,23,42,.09);
  --border-2:  rgba(15,23,42,.05);
  --red:       #dc2626;
  --green:     #16a34a;
  --sh:        0 1px 4px rgba(15,23,42,.06), 0 4px 20px rgba(15,23,42,.07);
  --sh2:       0 4px 30px rgba(15,23,42,.1);
  --glow:      0 0 24px rgba(108,63,197,.15);
}

html[data-theme="light"] body {
  background: #f4f6fb;
  background-image:
    radial-gradient(ellipse 80% 50% at 25% -5%, rgba(108,63,197,.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 75% 110%, rgba(108,63,197,.05) 0%, transparent 55%);
  color: #0d1117;
}

/* ── Topbar ── */
html[data-theme="light"] .topbar {
  background: rgba(248,249,252,.97) !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 2px 12px rgba(15,23,42,.05);
}
html[data-theme="light"] .topbar .logo { color: #0d1117; }
html[data-theme="light"] .topbar .logo strong { color: var(--gold); }
html[data-theme="light"] .topbar-breadcrumb { color: rgba(15,23,42,.4); }
html[data-theme="light"] .topbar-link { color: rgba(15,23,42,.5); }
html[data-theme="light"] .topbar-link:hover { color: var(--gold); }
html[data-theme="light"] .btn-signout {
  border-color: rgba(15,23,42,.1);
  color: rgba(15,23,42,.45);
}

/* ── Step nav ── */
html[data-theme="light"] .step-label { color: rgba(15,23,42,.45); }
html[data-theme="light"] .step-item.active .step-label { color: var(--gold); font-weight: 700; }
html[data-theme="light"] .step-circle {
  background: #f1f4fa;
  border-color: rgba(15,23,42,.12);
  color: rgba(15,23,42,.45);
}
html[data-theme="light"] .step-item.active .step-circle {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(108,63,197,.25);
}
html[data-theme="light"] .step-item.done .step-circle {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff;
  border-color: transparent;
}
html[data-theme="light"] .step-item.done .step-check { color: #fff; }
html[data-theme="light"] .step-item.done .step-label { color: rgba(15,23,42,.38); }
html[data-theme="light"] .step-item.done .step-line  { background: rgba(108,63,197,.35); }
html[data-theme="light"] .topbar .step-item.done .step-check { color: #fff; }
html[data-theme="light"] .topbar .step-item.done .step-label { color: rgba(15,23,42,.38); }
html[data-theme="light"] .step-line { background: rgba(15,23,42,.09); }

/* ── Sidebar ── */
html[data-theme="light"] .sidebar {
  background: rgba(255,255,255,.98);
  border-right: 1px solid rgba(15,23,42,.07);
  box-shadow: 2px 0 20px rgba(15,23,42,.06);
}
html[data-theme="light"] .sb-section-label { color: rgba(15,23,42,.38); }
html[data-theme="light"] .sb-cv-btn {
  background: #f4f6fb;
  border-color: rgba(15,23,42,.1);
  color: #0d1117;
}
html[data-theme="light"] .sb-cv-btn:hover {
  background: #eef1f8;
  border-color: rgba(108,63,197,.3);
}
html[data-theme="light"] .sb-divider { background: rgba(15,23,42,.06); }
html[data-theme="light"] .save-badge {
  background: rgba(108,63,197,.07);
  border-color: rgba(108,63,197,.2);
  color: var(--gold);
}
html[data-theme="light"] .lang-btn {
  background: transparent;
  color: rgba(15,23,42,.45);
  border-color: rgba(15,23,42,.1);
}
html[data-theme="light"] .lang-btn.active {
  background: rgba(108,63,197,.09);
  color: var(--gold);
  border-color: var(--gold-dim);
}
html[data-theme="light"] .sb-legal-link { color: rgba(15,23,42,.3); }
html[data-theme="light"] .sb-legal-link:hover { color: var(--gold); }
html[data-theme="light"] .sb-theme-label { color: rgba(15,23,42,.38); }

/* ── Step content area ── */
html[data-theme="light"] .step-header h1 { color: #0d1117; }
html[data-theme="light"] .step-kicker { color: var(--gold); }
html[data-theme="light"] .step-sub { color: rgba(15,23,42,.5); }

/* ── Form elements ── */
html[data-theme="light"] .field-label { color: rgba(15,23,42,.6); }
html[data-theme="light"] .field-note  { color: rgba(15,23,42,.38); }
html[data-theme="light"] .field-input,
html[data-theme="light"] .field-textarea,
html[data-theme="light"] .field-select {
  background: #ffffff;
  border-color: rgba(15,23,42,.1);
  color: #0d1117;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
html[data-theme="light"] .field-input:focus,
html[data-theme="light"] .field-textarea:focus,
html[data-theme="light"] .field-select:focus {
  background: #ffffff;
  border-color: rgba(108,63,197,.4);
  box-shadow: 0 0 0 3px rgba(108,63,197,.1);
}
html[data-theme="light"] .field-input::placeholder,
html[data-theme="light"] .field-textarea::placeholder { color: rgba(15,23,42,.28); }

/* ── Add item buttons ── */
html[data-theme="light"] .btn-add-item {
  background: #ffffff;
  border-color: rgba(15,23,42,.09);
  color: rgba(15,23,42,.4);
}
html[data-theme="light"] .btn-add-item:hover {
  background: rgba(108,63,197,.05);
  border-color: rgba(108,63,197,.28);
  color: var(--gold);
}

/* ── Experience / edu / project cards ── */
html[data-theme="light"] .exp-card,
html[data-theme="light"] .edu-card,
html[data-theme="light"] .proj-card {
  background: #ffffff;
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
html[data-theme="light"] .exp-card:hover,
html[data-theme="light"] .edu-card:hover {
  border-color: rgba(108,63,197,.2);
  box-shadow: 0 4px 20px rgba(15,23,42,.1);
}

/* ── Modals ── */
html[data-theme="light"] .modal-box {
  background: #ffffff;
  border-color: rgba(15,23,42,.09);
  box-shadow: 0 16px 60px rgba(15,23,42,.14), 0 0 0 1px rgba(15,23,42,.06);
}
html[data-theme="light"] .modal-overlay {
  background: rgba(15,23,42,.22);
}
html[data-theme="light"] .modal-head h3 { color: #0d1117; }
html[data-theme="light"] .modal-box > p { color: rgba(15,23,42,.5); }
html[data-theme="light"] .share-url-input {
  background: #f4f6fb;
  border-color: rgba(15,23,42,.1);
  color: #0d1117;
}
html[data-theme="light"] .btn-copy {
  background: #f4f6fb;
  border-color: rgba(15,23,42,.1);
  color: #0d1117;
}
html[data-theme="light"] .btn-copy:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── Toasts ── */
html[data-theme="light"] .toast {
  background: rgba(255,255,255,.98);
  color: #0d1117;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 4px 20px rgba(15,23,42,.1);
}
html[data-theme="light"] .toast.ok  { color: #15803d; border-left-color: #16a34a; }
html[data-theme="light"] .toast.err { color: #dc2626; border-left-color: #dc2626; }
html[data-theme="light"] .toast.info{ color: var(--gold); }
html[data-theme="light"] .toast-icon { background: rgba(15,23,42,.06) !important; }

/* ── Progress / Track ── */
html[data-theme="light"] .progress-track { background: rgba(15,23,42,.08); }

/* ── Templates grid ── */
html[data-theme="light"] .tpl-card {
  background: #ffffff;
  border-color: rgba(15,23,42,.09);
}
html[data-theme="light"] .tpl-card:hover { border-color: rgba(108,63,197,.3); }
html[data-theme="light"] .tpl-card.active { border-color: var(--gold); }

/* ── Skeleton loader ── */
html[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, #eef1f8 25%, #f4f6fb 50%, #eef1f8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

/* ── AI modal ── */
html[data-theme="light"] .modal-ai-box { background: #ffffff; }
html[data-theme="light"] .modal-ai-head { border-bottom-color: rgba(15,23,42,.08); }
html[data-theme="light"] .modal-ai-title { color: var(--purple-lt); }
html[data-theme="light"] .ai-tabs { border-bottom-color: rgba(15,23,42,.08); }
html[data-theme="light"] .ai-tab { color: rgba(15,23,42,.42); }
html[data-theme="light"] .ai-tab:hover { color: #0d1117; }
html[data-theme="light"] .ai-tab-content { color: #0d1117; }
html[data-theme="light"] .ai-improvement-item {
  background: rgba(108,63,197,.06);
  border-color: rgba(108,63,197,.14);
  color: #0d1117;
}
html[data-theme="light"] .ai-letter-wrap {
  background: #f8f9fd;
  border-color: rgba(15,23,42,.08);
  color: #0d1117;
}
html[data-theme="light"] .ai-no-offer {
  background: rgba(108,63,197,.06);
  border-color: rgba(108,63,197,.16);
  color: var(--gold);
}

/* ── Header user dropdown ── */
html[data-theme="light"] .header-user-dropdown {
  background: #ffffff;
  border-color: rgba(15,23,42,.09);
  box-shadow: 0 8px 32px rgba(15,23,42,.12);
}
html[data-theme="light"] .hud-item { color: rgba(15,23,42,.5); }
html[data-theme="light"] .hud-item:hover { background: #f4f6fb; color: #0d1117; }
html[data-theme="light"] .hud-sep { background: rgba(15,23,42,.06); }

/* ── AI badge ── */
html[data-theme="light"] .ai-badge {
  background: rgba(108,63,197,.07);
  border-color: rgba(108,63,197,.18);
  color: var(--gold);
}
html[data-theme="light"] .field-textarea--ai {
  background: linear-gradient(135deg, #ffffff, rgba(108,63,197,.04));
  border-color: rgba(108,63,197,.2);
}

/* ── Bottom nav (mobile) ── */
html[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255,255,255,.97);
  border-top-color: rgba(15,23,42,.08);
  box-shadow: 0 -2px 16px rgba(15,23,42,.07);
}
html[data-theme="light"] .mbn-item { color: rgba(15,23,42,.45); }
html[data-theme="light"] .mbn-circle {
  border-color: rgba(15,23,42,.15);
  color: rgba(15,23,42,.35);
}
html[data-theme="light"] .mbn-item.active .mbn-circle {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(108,63,197,.08);
}
html[data-theme="light"] .mbn-label { color: rgba(15,23,42,.45); }
html[data-theme="light"] .mbn-item.active .mbn-label { color: var(--gold); }
html[data-theme="light"] .mbn-progress { background: rgba(15,23,42,.07); }
html[data-theme="light"] .mbn-progress-fill { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
html[data-theme="light"] .mbn-item.done .mbn-circle {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-color: transparent;
}
html[data-theme="light"] .mbn-item.done .mbn-check { color: #fff; }
html[data-theme="light"] .mbn-item.done .mbn-label { color: rgba(15,23,42,.38); }

/* ── Lock screen ── */
html[data-theme="light"] .lock-overlay {
  background: rgba(240,243,250,.88);
}
html[data-theme="light"] .lock-title,
html[data-theme="light"] .lock-sub { color: #0d1117; }

/* ── Scrollbar ── */
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(15,23,42,.12); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(108,63,197,.3); }

/* ── Dashboard cards ── */
html[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(15,23,42,.07);
  box-shadow: 0 1px 4px rgba(15,23,42,.05), 0 4px 20px rgba(15,23,42,.04);
}
html[data-theme="light"] .card.gold-glow {
  border-color: rgba(108,63,197,.16);
  box-shadow: 0 1px 4px rgba(15,23,42,.05), 0 0 30px rgba(108,63,197,.06);
}
html[data-theme="light"] .card.purple-glow {
  border-color: rgba(108,63,197,.15);
  box-shadow: 0 1px 4px rgba(15,23,42,.05), 0 0 30px rgba(108,63,197,.06);
}
html[data-theme="light"] .card-label { color: rgba(15,23,42,.4); }
html[data-theme="light"] .card-sub { color: rgba(15,23,42,.45); }

/* ── Dashboard form inputs ── */
html[data-theme="light"] .form-input {
  background: #f8f9fd;
  border-color: rgba(15,23,42,.1);
  color: #0d1117;
}
html[data-theme="light"] .form-input:focus {
  background: #ffffff;
  border-color: rgba(108,63,197,.4);
  box-shadow: 0 0 0 3px rgba(108,63,197,.09);
}
html[data-theme="light"] .form-label { color: rgba(15,23,42,.5); }

/* ── Section titles ── */
html[data-theme="light"] .section-title { color: #0d1117; border-bottom-color: rgba(15,23,42,.07); }
html[data-theme="light"] .page-head-title { color: #0d1117; }
html[data-theme="light"] .page-head-sub { color: rgba(15,23,42,.5); }

/* ── Notif rows ── */
html[data-theme="light"] .notif-row { border-bottom-color: rgba(15,23,42,.06); }
html[data-theme="light"] .notif-row:hover { background: rgba(15,23,42,.025); }
html[data-theme="light"] .notif-info-title { color: #0d1117; }
html[data-theme="light"] .notif-info-desc { color: rgba(15,23,42,.45); }

/* ── Danger zone ── */
html[data-theme="light"] .danger-zone {
  border-color: rgba(220,38,38,.15);
  background: rgba(220,38,38,.02);
}
html[data-theme="light"] .danger-desc { color: rgba(15,23,42,.5); }

/* ── Profiles panel ── */
html[data-theme="light"] .profiles-panel {
  background: #ffffff;
  border-color: rgba(15,23,42,.09);
}
html[data-theme="light"] .profiles-panel-head { background: #f8f9fd; border-bottom-color: rgba(15,23,42,.07); }
html[data-theme="light"] .profiles-panel-title { color: #0d1117; }
html[data-theme="light"] .profiles-panel-count { color: rgba(15,23,42,.4); }
html[data-theme="light"] .profiles-search {
  background: #ffffff;
  border-color: rgba(15,23,42,.1);
  color: #0d1117;
}
html[data-theme="light"] .profiles-panel-eyebrow { color: var(--gold); }
html[data-theme="light"] .profiles-panel-eyebrow::before { background: var(--gold); }
html[data-theme="light"] .profiles-panel-close {
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.1);
  color: rgba(15,23,42,.55);
}
html[data-theme="light"] .profiles-panel-close:hover {
  background: rgba(15,23,42,.09);
  border-color: rgba(15,23,42,.18);
  color: #0d1117;
}
html[data-theme="light"] .profiles-search-icon { color: rgba(15,23,42,.3); }
html[data-theme="light"] .profiles-search::placeholder { color: rgba(15,23,42,.28); }
html[data-theme="light"] .profiles-panel-footer { background: #f4f6fb; border-top-color: rgba(15,23,42,.06); }
html[data-theme="light"] .profiles-footer-info { color: rgba(15,23,42,.38); }

/* ── Sidebar login button ── */
html[data-theme="light"] .sb-login-btn {
  background: rgba(108,63,197,.07);
  border-color: rgba(108,63,197,.2);
  color: var(--gold);
}
html[data-theme="light"] .sb-login-btn:hover {
  background: rgba(108,63,197,.13);
}
html[data-theme="light"] .sb-menu-item { color: rgba(15,23,42,.5); }
html[data-theme="light"] .sb-menu-item:hover { background: rgba(15,23,42,.04); color: #0d1117; }
html[data-theme="light"] .sb-menu-item.danger:hover { background: rgba(198,40,40,.06); color: #c62828; }
html[data-theme="light"] .sb-interview-link {
  color: #6d28d9; background: rgba(108,63,197,.07); border-color: rgba(108,63,197,.2);
}
html[data-theme="light"] .sb-interview-link:hover {
  background: rgba(108,63,197,.13); border-color: rgba(108,63,197,.35); color: #4c1d95;
}
html[data-theme="light"] .sb-menu-sep { background: rgba(15,23,42,.06); }
html[data-theme="light"] .sb-user-email { color: var(--gold); }

/* ── Profiles list items ── */
html[data-theme="light"] #profilesList { scrollbar-color: rgba(15,23,42,.1) transparent; }
html[data-theme="light"] .profiles-section-label {
  color: rgba(15,23,42,.35);
}
html[data-theme="light"] .profiles-section-label::after { background: rgba(15,23,42,.07); }
html[data-theme="light"] .profiles-empty { color: rgba(15,23,42,.3); }
html[data-theme="light"] .profiles-empty p { color: rgba(15,23,42,.35); }
html[data-theme="light"] .profile-item {
  background: #f8f9fd;
  border-color: rgba(15,23,42,.08);
}
html[data-theme="light"] .profile-item:hover {
  background: #f0f3fa;
  border-color: rgba(15,23,42,.14);
}
html[data-theme="light"] .profile-item.active {
  background: rgba(108,63,197,.07);
  border-color: rgba(108,63,197,.28);
  box-shadow: 0 0 0 1px rgba(108,63,197,.12), 0 4px 16px rgba(108,63,197,.08);
}

/* ── Light mode sidebar shadow when open on mobile ── */
@media (max-width: 768px) {
  html[data-theme="light"] .sidebar.open {
    box-shadow: 8px 0 40px rgba(15,23,42,.15);
  }
  html[data-theme="light"] .sidebar-overlay.open {
    background: rgba(15,23,42,.35);
  }
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE — OVERRIDES COMPLÉMENTAIRES (app.html)
══════════════════════════════════════════════════════════════ */

/* Variable manquante */
html[data-theme="light"] { --text: #0d1117; }

/* ── Boutons navigation (Suivant / Précédent) ── */
html[data-theme="light"] .btn-primary {
  background: #0d1117; color: #fff;
  border-color: rgba(15,23,42,.2);
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
}
html[data-theme="light"] .btn-primary:hover {
  background: #1c2237; border-color: rgba(15,23,42,.3);
  box-shadow: 0 6px 20px rgba(15,23,42,.18);
}
html[data-theme="light"] .btn-secondary {
  border-color: rgba(15,23,42,.15); color: rgba(15,23,42,.6);
}
html[data-theme="light"] .btn-secondary:hover {
  border-color: rgba(15,23,42,.3); color: #0d1117; background: rgba(15,23,42,.04);
}

/* ── Bouton Partager (step 6) ── */
html[data-theme="light"] .btn-share-cta {
  background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.12); color: rgba(15,23,42,.55);
}
html[data-theme="light"] .btn-share-cta:hover {
  background: rgba(15,23,42,.08); border-color: rgba(15,23,42,.22); color: #0d1117;
}

/* ── Bouton Ajouter (expériences, formations…) ── */
html[data-theme="light"] .btn-add-card {
  border-color: rgba(15,23,42,.18); color: rgba(15,23,42,.4);
}
html[data-theme="light"] .btn-add-card:hover {
  background: rgba(108,63,197,.07); border-color: rgba(108,63,197,.4); color: var(--gold);
}

/* ── Boutons flèches (déplacer les cartes) ── */
html[data-theme="light"] .btn-move-up,
html[data-theme="light"] .btn-move-down {
  background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.1); color: rgba(15,23,42,.35);
}
html[data-theme="light"] .btn-move-up:hover:not(:disabled),
html[data-theme="light"] .btn-move-down:hover:not(:disabled) {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ── Bouton supprimer une carte ── */
html[data-theme="light"] .btn-remove-card { color: rgba(15,23,42,.25); }
html[data-theme="light"] .btn-remove-card:hover {
  background: rgba(220,38,38,.08); color: #dc2626;
}

/* ── Boutons toolbar preview ── */
html[data-theme="light"] .btn-toolbar-share {
  background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.1); color: rgba(15,23,42,.5);
}
html[data-theme="light"] .btn-toolbar-share:hover {
  background: rgba(15,23,42,.09); color: #0d1117;
}

/* ── Bouton icône (✕ modals) ── */
html[data-theme="light"] .btn-icon { color: rgba(15,23,42,.4); }
html[data-theme="light"] .btn-icon:hover { background: rgba(15,23,42,.06); color: #0d1117; }

/* ── Boutons AI modal ── */
html[data-theme="light"] .btn-ai-copy {
  background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.1); color: rgba(15,23,42,.6);
}
html[data-theme="light"] .btn-ai-copy:hover { border-color: #9b6dff; color: #6d28d9; }
html[data-theme="light"] .btn-retry {
  background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.12); color: rgba(15,23,42,.5);
}
html[data-theme="light"] .btn-retry:hover { border-color: var(--gold); color: var(--gold); }

/* ── Boutons footer ── */
html[data-theme="light"] .btn-footer-action {
  border-color: rgba(15,23,42,.12); color: rgba(15,23,42,.4);
}
html[data-theme="light"] .btn-footer-action:hover { border-color: var(--gold); color: var(--gold); }
html[data-theme="light"] .btn-clear-data {
  border-color: rgba(15,23,42,.12); color: rgba(15,23,42,.38);
}
html[data-theme="light"] .btn-clear-data:hover {
  border-color: rgba(220,38,38,.3); color: #dc2626;
}

/* ── Bouton nouveau profil ── */
html[data-theme="light"] .btn-new-profile {
  background: rgba(108,63,197,.08); border-color: rgba(108,63,197,.25); color: var(--gold);
}
html[data-theme="light"] .btn-new-profile:hover {
  background: rgba(108,63,197,.14); border-color: rgba(108,63,197,.4);
}

/* ── Photo panel ── */
html[data-theme="light"] .photo-panel {
  background: #fff; border-color: rgba(15,23,42,.09);
}
html[data-theme="light"] .photo-upload-area {
  border-top-color: rgba(15,23,42,.07);
}
html[data-theme="light"] .photo-avatar {
  border-color: rgba(15,23,42,.18);
}
html[data-theme="light"] .photo-meta p,
html[data-theme="light"] .photo-meta span { color: rgba(15,23,42,.45); }
html[data-theme="light"] .btn-upload {
  background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.14); color: rgba(15,23,42,.55);
}
html[data-theme="light"] .btn-upload:hover {
  background: rgba(15,23,42,.09); color: #0d1117;
}

/* ── Toggle switch (photo) ── */
html[data-theme="light"] .toggle-track {
  background: rgba(15,23,42,.08); border-color: rgba(15,23,42,.14);
}
html[data-theme="light"] .toggle-track::before { background: rgba(15,23,42,.4); }

/* ── Boutons langue du CV ── */
html[data-theme="light"] .cv-lang-btn {
  background: #fff; border-color: rgba(15,23,42,.12); color: rgba(15,23,42,.55);
}
html[data-theme="light"] .cv-lang-btn:hover {
  border-color: rgba(15,23,42,.25); color: #0d1117;
}
html[data-theme="light"] .cv-lang-btn.active {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ── Cartes (expérience, formation, projet, certif) ── */
html[data-theme="light"] .item-card {
  background: #fff; border-color: rgba(15,23,42,.08);
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
html[data-theme="light"] .item-card:hover {
  border-color: rgba(15,23,42,.14); box-shadow: 0 4px 16px rgba(15,23,42,.08);
}
html[data-theme="light"] .item-card:focus-within { border-color: rgba(108,63,197,.35); }
html[data-theme="light"] .card-label { color: rgba(15,23,42,.3); }
html[data-theme="light"] .date-sep { color: rgba(15,23,42,.3); }
html[data-theme="light"] .current-check { color: rgba(15,23,42,.55); }

/* ── Tags (compétences, langues, hobbies) ── */
html[data-theme="light"] .tags-field {
  background: #fff; border-color: rgba(15,23,42,.12);
}
html[data-theme="light"] .tags-field:focus-within {
  border-color: rgba(108,63,197,.5); box-shadow: 0 0 0 3px rgba(108,63,197,.09);
}
html[data-theme="light"] .tags-input { color: #0d1117; }
html[data-theme="light"] .tags-input::placeholder { color: rgba(15,23,42,.3); }

/* ── Sous-sections (Projets, Certifs, Hobbies) ── */
html[data-theme="light"] .subsection { border-top-color: rgba(15,23,42,.07); }
html[data-theme="light"] .subsection-title { color: rgba(15,23,42,.55); }
html[data-theme="light"] .subsection-hint { color: rgba(15,23,42,.45); }

/* ── Step actions séparateur ── */
html[data-theme="light"] .step-actions { border-top-color: rgba(15,23,42,.07); }

/* ── Template picker ── */
html[data-theme="light"] .template-card > span { color: rgba(15,23,42,.45); }
html[data-theme="light"] .template-card.active > span { color: var(--gold); }
html[data-theme="light"] .tpl-preview {
  border-color: rgba(15,23,42,.12); box-shadow: 0 4px 16px rgba(15,23,42,.1);
}
html[data-theme="light"] .template-card:hover .tpl-preview {
  box-shadow: 0 8px 24px rgba(15,23,42,.14);
}
html[data-theme="light"] .template-card.active .tpl-preview {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(108,63,197,.2), 0 8px 24px rgba(15,23,42,.12);
}

/* ── Panneau personnalisation ── */
html[data-theme="light"] .custom-panel {
  background: #fff; border-color: rgba(15,23,42,.08);
}
html[data-theme="light"] .custom-panel-head { border-bottom-color: rgba(15,23,42,.07); }
html[data-theme="light"] .custom-panel-title { color: rgba(15,23,42,.5); }
html[data-theme="light"] .custom-label { color: rgba(15,23,42,.35); }
html[data-theme="light"] .font-btn {
  background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.09); color: rgba(15,23,42,.55);
}
html[data-theme="light"] .font-btn:hover {
  background: rgba(15,23,42,.08); color: #0d1117; border-color: rgba(15,23,42,.18);
}
html[data-theme="light"] .font-btn.active {
  background: rgba(108,63,197,.1); border-color: rgba(108,63,197,.4); color: var(--gold);
}
html[data-theme="light"] .color-swatch.active {
  border-color: rgba(15,23,42,.65); box-shadow: 0 0 0 3px rgba(15,23,42,.12);
}
html[data-theme="light"] .color-swatch-custom {
  border-color: rgba(15,23,42,.25);
}

/* ── Zone aperçu CV ── */
html[data-theme="light"] .preview-shell {
  border-color: rgba(15,23,42,.1); box-shadow: 0 4px 20px rgba(15,23,42,.1);
}
html[data-theme="light"] .preview-toolbar {
  background: #f1f4fa; border-bottom-color: rgba(15,23,42,.08);
}
html[data-theme="light"] .preview-title { color: rgba(15,23,42,.4); }

/* ── Écran lock (step 6 non connecté) ── */
html[data-theme="light"] .lock-icon-wrap {
  background: linear-gradient(135deg, #fff, #f1f4fa);
  border-color: rgba(108,63,197,.22);
  box-shadow: 0 0 20px rgba(108,63,197,.1), 0 2px 12px rgba(15,23,42,.08);
}
html[data-theme="light"] .lock-perk { color: rgba(15,23,42,.55); }
html[data-theme="light"] .lock-login-hint { color: rgba(15,23,42,.45); }
html[data-theme="light"] .lock-mock { filter: blur(8px) brightness(.85); }

/* ── Modal IA ── */
html[data-theme="light"] .ai-letter-wrap {
  background: #f8f9fd; border-color: rgba(15,23,42,.09); color: #0d1117;
}
html[data-theme="light"] .ai-loading { color: rgba(15,23,42,.45); }
html[data-theme="light"] .ai-spinner {
  border-color: rgba(15,23,42,.1); border-top-color: #9b6dff;
}
html[data-theme="light"] .ai-error p { color: rgba(15,23,42,.5); }
html[data-theme="light"] .ai-improvement-item {
  background: rgba(108,63,197,.06); border-color: rgba(108,63,197,.18); color: #0d1117;
}

/* ── Menu mobile "Plus" ── */
html[data-theme="light"] .mbn-more-menu {
  background: #fff; border-color: rgba(15,23,42,.1);
  box-shadow: 0 -4px 24px rgba(15,23,42,.1);
}

/* ── Footer ── */
html[data-theme="light"] .site-footer {
  background: #fff; border-top-color: rgba(15,23,42,.07);
}
html[data-theme="light"] .site-footer p { color: rgba(15,23,42,.3); }