/* ═══════════════════════════════════════════════════════
   ExoCV — main.css  |  Editorial Dark Luxury 2025
   Design: sombre profond, typographie Cormorant,
   inputs flottants, micro-animations, gold accent
═══════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  /* Palette */
  --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;
  --slate:      #f0eeeb;
  --slate-2:    #e4e1db;
  --slate-3:    #ccc8c0;
  --muted:      rgba(255,255,255,.38);
  --muted-2:    rgba(255,255,255,.18);
  --muted-3:    rgba(255,255,255,.08);
  --border:     rgba(255,255,255,.1);
  --border-2:   rgba(255,255,255,.06);
  --red:        #f87171;
  --green:      #4ade80;
  /* Radius */
  --r:          8px;
  --r2:         14px;
  --r3:         20px;
  /* Shadows */
  --sh:         0 2px 16px rgba(0,0,0,.4);
  --sh2:        0 8px 40px rgba(0,0,0,.5);
  --glow:       0 0 24px rgba(200,146,42,.2);
  /* Transition */
  --ease:       cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Epilogue', sans-serif;
  background: var(--ink);
  color: var(--white);
  font-size: 15px; line-height: 1.6;
  min-height: 100vh;
  /* Animated noise texture */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(200,146,42,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 110%, rgba(28,34,55,.9) 0%, transparent 60%);
}
body.rtl { direction: rtl; text-align: right; }
button, input, textarea, select { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
html { scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 10px; }

/* ═══════════════════════════════════════
   TOASTS
═══════════════════════════════════════ */
#toasts {
  position: fixed; bottom: 1.8rem; right: 1.8rem;
  z-index: 9999; display: flex; flex-direction: column; gap: .6rem;
  pointer-events: none;
}
@media (max-width: 768px) {
  #toasts { bottom: 84px; right: 12px; left: 12px; }
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20,24,38,.96);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px var(--border);
  font-size: .83rem; font-weight: 500; line-height: 1.4;
  min-width: 220px; max-width: 340px;
  backdrop-filter: blur(16px);
  animation: tIn .35s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
}
/* Barre de progression en bas du toast */
.toast::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 2px; border-radius: 0 0 12px 12px;
  background: currentColor; opacity: .3;
  animation: tProgress var(--toast-dur, 3s) linear forwards;
}
@keyframes tProgress { from { width: 100%; } to { width: 0%; } }

.toast-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.toast.ok   { color: #6ee7b7; }
.toast.ok   .toast-icon { background: rgba(110,231,183,.15); }
.toast.err  { color: #fca5a5; }
.toast.err  .toast-icon { background: rgba(252,165,165,.15); }
.toast.info { color: #c8922a; }
.toast.info .toast-icon { background: rgba(200,146,42,.15); }

@keyframes tIn  { from { opacity:0; transform:translateX(16px) scale(.95); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes tOut { from { opacity:1; transform:translateX(0) scale(1); } to { opacity:0; transform:translateX(16px) scale(.95); } }

/* ── SKELETON LOADING ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--ink-3) 25%, var(--ink-4) 50%, var(--ink-3) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeletonShimmer { 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

.skeleton-line  { height: 12px; margin-bottom: 8px; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 55%; }
.skeleton-card  {
  background: var(--ink-2); border: 1px solid var(--border-2);
  border-radius: var(--r2); padding: 20px;
  display: flex; flex-direction: column; gap: 0;
}

/* ═══════════════════════════════════════
   MODAL (share)
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.8rem;
  width: 100%; max-width: 420px;
  box-shadow: var(--sh2), 0 0 0 1px var(--border-2);
  animation: mIn .28s var(--ease);
}
@keyframes mIn { from { opacity:0; transform:translateY(20px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.modal-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: var(--white); }
.btn-icon { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .25rem .45rem; border-radius: 6px; transition: .15s; }
.btn-icon:hover { background: var(--muted-3); color: var(--white); }
.modal-box > p { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.share-url-row { display: flex; gap: .4rem; margin-bottom: 1rem; }
.share-url-input {
  flex: 1; font-size: .77rem; color: var(--muted);
  background: var(--ink-3); border: 1px solid var(--border);
  border-radius: var(--r); padding: .6rem .8rem; outline: none; color: var(--white);
}
.btn-copy {
  background: var(--ink-4); color: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: .6rem 1rem; font-size: .8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: .15s;
}
.btn-copy:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-copy.copied { background: var(--green); color: var(--ink); border-color: var(--green); }
.share-social { display: flex; gap: .5rem; }
.btn-social {
  flex: 1; border: none; border-radius: var(--r);
  padding: .6rem .4rem; font-size: .78rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  cursor: pointer; transition: .15s;
}
.btn-social.wa    { background: #25D366; color: #fff; }
.btn-social.wa:hover { filter: brightness(1.1); }
.btn-social.li    { background: #0077B5; color: #fff; }
.btn-social.li:hover { filter: brightness(1.1); }
.btn-social.email { background: var(--ink-3); color: var(--muted); border: 1px solid var(--border); }
.btn-social.email:hover { background: var(--ink-4); color: var(--white); }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   TOPBAR — logo + étapes centrées + barre progress en bas
══════════════════════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 60px;
  background: rgba(12,15,26,.96);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
}
.topbar .logo { flex-shrink: 0; }

/* Step nav dans le topbar — centrées */
.topbar .step-nav {
  display: flex; align-items: center; flex: 1;
  justify-content: center; gap: 0;
}
.topbar .step-item {
  display: flex; align-items: center; gap: .35rem;
  cursor: pointer; padding: 0 .2rem;
}
.topbar .step-circle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.25); font-size: .66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s; position: relative;
}
.topbar .step-num   { position: absolute; transition: opacity .2s; }
.topbar .step-check { position: absolute; opacity: 0; transition: opacity .2s; font-size: .78rem; }
.topbar .step-label {
  font-size: .64rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.22); transition: .3s;
}
.topbar .step-line { width: 22px; height: 1px; background: rgba(255,255,255,.08); }
.topbar .step-item.active .step-circle {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(200,146,42,.18), 0 0 14px rgba(200,146,42,.25);
}
.topbar .step-item.active .step-label { color: var(--gold-lt); }
.topbar .step-item.done .step-circle  { background: var(--gold-dim); border-color: rgba(200,146,42,.5); }
.topbar .step-item.done .step-num     { opacity: 0; }
.topbar .step-item.done .step-check   { opacity: 1; color: var(--gold-lt); }
.topbar .step-item.done .step-label   { color: rgba(255,255,255,.35); }
.topbar .step-item:hover:not(.active) .step-circle { border-color: rgba(200,146,42,.4); }
.topbar .step-item:hover:not(.active) .step-label  { color: rgba(255,255,255,.55); }

/* Progress bar — fine ligne SOUS le topbar */
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-progress { width: 100px; }
.topbar-progress .progress-track {
  height: 3px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden;
}
.topbar-progress .progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 3px; transition: width .4s ease;
}

/* Mobile burger */
.sidebar-toggle {
  display: none;
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT — sidebar + content
══════════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 52px;   /* topbar height */
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: fixed;
  top: 52px; bottom: 0; left: 0;
  overflow-y: auto;
  background: var(--ink-2);
  border-right: 1px solid var(--border-2);
  display: flex; flex-direction: column;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
}

.sb-section { padding: 16px 14px 12px; }
.sb-section.sb-steps { padding-bottom: 4px; }
.sb-section.sb-account { flex: 1; }

.sb-section-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  opacity: .5; margin-bottom: 10px; padding-left: 2px;
}

.sb-divider { height: 1px; background: var(--border-2); margin: 0 14px; flex-shrink: 0; }

/* (step styles scoped sous .topbar) */

/* CV actif button */
.sb-cv-btn {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: var(--ink-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
  color: var(--text); font-family: 'Epilogue', sans-serif;
  font-size: .78rem; cursor: pointer; transition: all .2s;
  margin-bottom: 8px; text-align: left;
}
.sb-cv-btn:hover { border-color: var(--gold-dim); background: var(--ink-4); }
.sb-cv-btn .btn-profiles-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Save badge dans sidebar */
.sidebar .save-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: .7rem; color: rgba(255,255,255,.2);
  padding: 4px 8px; border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; transition: .3s; font-weight: 500; width: fit-content;
}
.sidebar .save-badge.saved { color: var(--green); border-color: rgba(74,222,128,.2); }

/* Langue dans sidebar */
.sidebar .lang-switcher {
  display: flex; gap: 3px; background: var(--ink-3);
  padding: 3px; border-radius: 8px; border: 1px solid var(--border-2); width: fit-content;
}

/* User dans sidebar */
.sb-user-wrap { display: flex; flex-direction: column; gap: 4px; }
.sb-login-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--gold-pale); border: 1px solid var(--gold-dim);
  border-radius: 8px; padding: 9px 10px;
  color: var(--gold); font-family: 'Epilogue', sans-serif;
  font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.sb-login-btn:hover { background: var(--gold-dim); }

.sb-user-email {
  font-size: .75rem; color: var(--gold); font-weight: 600;
  padding: 6px 8px; display: flex; align-items: center; gap: 6px;
}
.sb-user-email .online-dot { width: 6px; height: 6px; border-radius: 50%; background: #5cb85c; flex-shrink: 0; }
.sb-user-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sb-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 7px; 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;
}
.sb-menu-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sb-menu-item.danger:hover { background: rgba(224,92,92,.08); color: #f08080; }
.sb-menu-sep { height: 1px; background: var(--border-2); margin: 4px 0; }
.sb-interview-link {
  color: rgba(167,139,250,.75); font-size: .8rem; font-weight: 500;
  padding: 9px 10px; border-radius: 8px;
  background: rgba(108,63,197,.08); border: 1px solid rgba(108,63,197,.18);
  transition: all .2s;
}
.sb-interview-link:hover {
  background: rgba(108,63,197,.16); border-color: rgba(108,63,197,.35); color: #c4b5fd;
}
.sb-menu-arrow { margin-left: auto; flex-shrink: 0; opacity: .5; }

/* Bottom */
.sb-bottom {
  padding: 12px 14px 16px; margin-top: auto; flex-shrink: 0;
}
.sb-legal-link { font-size: .65rem; color: rgba(136,146,176,.35); text-decoration: none; }
.sb-legal-link:hover { color: var(--muted); }

/* Overlay mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
}

/* ── CONTENT ──────────────────────────────────────────────── */

/* Logo */
.logo {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none; flex-shrink: 0;
}
.logo-gem { color: var(--gold); font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(200,146,42,.4)); }
.logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--white); letter-spacing: -.01em; }
.logo-text strong { color: var(--gold-lt); font-weight: 700; }

/* Step nav */
.step-nav { display: flex; align-items: center; flex: 1; justify-content: center; gap: 0; }
.step-item { display: flex; align-items: center; gap: .35rem; cursor: pointer; padding: 0 .2rem;   cursor: pointer;
}
.step-circle {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.25); font-size: .66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .35s var(--ease); position: relative;
}
.step-num   { position: absolute; transition: opacity .2s; }
.step-check { position: absolute; opacity: 0; transition: opacity .2s; font-size: .75rem; }
.step-label {
  font-size: .64rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.22); transition: .3s;
}
.step-line { width: 22px; height: 1px; background: rgba(255,255,255,.08); }

.step-item.active .step-circle {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(200,146,42,.18), 0 0 16px rgba(200,146,42,.3);
}
.step-item.active .step-label { color: var(--gold-lt); }
.step-item.done .step-circle  { background: var(--gold-dim); border-color: rgba(200,146,42,.5); }
.step-item.done .step-num     { opacity: 0; }
.step-item.done .step-check   { opacity: 1; color: var(--gold-lt); }
.step-item.done .step-label   { color: rgba(255,255,255,.35); }
.step-item.done .step-line    { background: rgba(200,146,42,.3); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.save-badge {
  display: flex; align-items: center; gap: .3rem;
  font-size: .68rem; color: rgba(255,255,255,.22);
  padding: .25rem .6rem; border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; transition: .3s; font-weight: 500;
}
.save-badge.saved { color: var(--green); border-color: rgba(74,222,128,.2); }
.lang-switcher {
  display: flex; gap: 2px;
  background: rgba(255,255,255,.05); padding: 3px;
  border-radius: var(--r); border: 1px solid var(--border-2);
}
.lang-btn {
  background: none; border: none; color: rgba(255,255,255,.35);
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  padding: .25rem .6rem; border-radius: 5px; cursor: pointer; transition: .15s;
}
.lang-btn.active, .lang-btn:hover { background: var(--gold); color: var(--ink); }

/* Progress bar */
.progress-track { height: 2px; background: rgba(255,255,255,.04); }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  transition: width .6s var(--ease);
  box-shadow: 0 0 10px rgba(200,146,42,.5);
}

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
.main-content {
  flex: 1;
  margin-left: 220px;   /* sidebar width */
  min-height: calc(100vh - 52px);
  max-width: none;
}
.main-content > .step { max-width: 840px; margin: 0 auto; padding: 2.8rem 1.5rem 6rem; }
.step { display: none; }
.step.active { display: block; animation: stepIn .42s var(--ease); }
@keyframes stepIn {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Step header */
.step-header { margin-bottom: 2.2rem; }
.step-kicker {
  font-size: .63rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .45rem;
  display: flex; align-items: center; gap: .5rem;
}
.step-kicker::before {
  content: ''; display: inline-block;
  width: 20px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}
.step-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 700; color: var(--white);
  line-height: 1.1; margin-bottom: .4rem; letter-spacing: -.02em;
}
.step-sub { color: var(--muted); font-size: .86rem; }

/* ═══════════════════════════════════════
   FORM — FLOATING LABEL INPUTS
═══════════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-wrap { display: flex; flex-direction: column; gap: .32rem; }
.field-wrap.col-2 { grid-column: 1 / -1; }
.field-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  transition: color .18s;
}
.field-wrap:focus-within .field-label { color: var(--gold-lt); }
.field-note { font-size: .75rem; color: var(--muted-2); }

.field-input, .field-textarea, .field-select {
  font-family: inherit; font-size: .9rem; color: var(--white);
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: .7rem .95rem;
  outline: none; width: 100%;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background .18s;
}
.field-input:hover, .field-textarea:hover, .field-select:hover {
  border-color: rgba(255,255,255,.18);
  background: var(--ink-4);
}
.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: rgba(200,146,42,.6);
  background: var(--ink-4);
  box-shadow: 0 0 0 3px rgba(200,146,42,.12), inset 0 1px 0 rgba(255,255,255,.04);
}
.field-input::placeholder, .field-textarea::placeholder { color: rgba(255,255,255,.18); }
.field-input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(248,113,113,.1); }
.field-textarea { resize: vertical; min-height: 90px; }
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
  padding-right: 2.2rem; cursor: pointer;
  color-scheme: dark;
}
.field-select option { background: var(--ink-2); color: var(--white); }
.ats-hint {
  font-size: .74rem; color: var(--gold-lt);
  background: rgba(200,146,42,.08);
  border: 1px solid rgba(200,146,42,.2);
  border-radius: var(--r); padding: .42rem .75rem;
  font-weight: 500; margin-bottom: .35rem;
}
.char-counter { font-size: .68rem; color: var(--muted-2); text-align: right; }
.error-msg { font-size: .71rem; color: var(--red); margin-top: 2px; }

/* ═══════════════════════════════════════
   PHOTO PANEL
═══════════════════════════════════════ */
.photo-panel {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--r2); padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.photo-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 23px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.1); border-radius: 23px; cursor: pointer; transition: .25s;
  border: 1px solid var(--border);
}
.toggle-track::before {
  content: ''; position: absolute; width: 17px; height: 17px;
  left: 2px; bottom: 2px; background: var(--muted);
  border-radius: 50%; transition: .25s;
}
.toggle-switch input:checked + .toggle-track { background: var(--gold); border-color: var(--gold); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(19px); background: var(--ink); }
.photo-upload-area { display: none; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border-2); }
.photo-upload-area.visible { display: flex; align-items: center; gap: 1rem; animation: fadeDown .25s var(--ease); }
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.photo-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.2);
  background: var(--ink-4);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); overflow: hidden; flex-shrink: 0;
  cursor: pointer; transition: .18s;
}
.photo-avatar:hover { border-color: var(--gold); border-style: solid; }
.photo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-meta { display: flex; flex-direction: column; gap: .3rem; }
.btn-upload {
  background: none; border: 1px solid rgba(255,255,255,.2); color: var(--white);
  border-radius: var(--r); padding: .4rem 1rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: .15s; width: fit-content;
}
.btn-upload:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ═══════════════════════════════════════
   CV LANGUAGE BUTTONS
═══════════════════════════════════════ */
.cv-lang-buttons { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.cv-lang-btn {
  background: var(--ink-3); border: 1px solid var(--border);
  border-radius: var(--r); padding: .55rem 1.3rem;
  font-size: .84rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: .18s;
}
.cv-lang-btn:hover { border-color: rgba(255,255,255,.25); color: var(--white); }
.cv-lang-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }

/* ═══════════════════════════════════════
   ITEM CARDS (exp / edu / proj / cert)
═══════════════════════════════════════ */
.item-card {
  background: var(--ink-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r2); padding: 1.3rem;
  margin-bottom: .9rem;
  transition: border-color .2s, box-shadow .2s, opacity .18s, transform .18s;
  position: relative; overflow: hidden;
}
.item-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(200,146,42,.2));
  opacity: 0; transition: opacity .2s;
}
.item-card:hover { border-color: rgba(255,255,255,.1); box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.item-card:hover::before { opacity: 1; }
.item-card:focus-within { border-color: rgba(200,146,42,.3); }
.item-card:focus-within::before { opacity: 1; }

.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; gap: .5rem; }
.card-head-right { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.card-label {
  font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* Arrow buttons */
.card-arrows { display: flex; gap: .2rem; }
.btn-move-up, .btn-move-down {
  width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-2);
  border-radius: 7px; color: rgba(255,255,255,.3); cursor: pointer;
  transition: all .15s var(--ease); flex-shrink: 0;
}
.btn-move-up:hover:not(:disabled), .btn-move-down:hover:not(:disabled) {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  transform: scale(1.1);
}
.btn-move-up:active:not(:disabled), .btn-move-down:active:not(:disabled) { transform: scale(.92); }
.btn-move-up.arrow-disabled, .btn-move-down.arrow-disabled { opacity: .15; cursor: not-allowed; pointer-events: none; }

.btn-remove-card {
  background: none; border: none; color: rgba(255,255,255,.22);
  font-size: .95rem; cursor: pointer; padding: .2rem .35rem;
  border-radius: 6px; transition: .15s; line-height: 1; flex-shrink: 0;
}
.btn-remove-card:hover { background: rgba(248,113,113,.15); color: var(--red); }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.card-grid .field-wrap.col-2 { grid-column: 1 / -1; }
.date-pair { display: flex; gap: .6rem; align-items: flex-end; grid-column: 1 / -1; }
.date-pair .field-wrap { flex: 1; }
.date-sep { color: var(--muted-2); font-size: .85rem; padding-bottom: .75rem; flex-shrink: 0; }
.current-check {
  display: flex; align-items: center; gap: .45rem;
  font-size: .81rem; color: var(--muted); cursor: pointer; grid-column: 1 / -1;
}
.current-check input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--gold); cursor: pointer; }

/* ── ADD BUTTON ── */
.btn-add-card {
  width: 100%; background: none;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: var(--r); padding: .65rem;
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-bottom: .5rem; cursor: pointer;
  transition: all .18s var(--ease);
}
.btn-add-card:hover {
  background: rgba(200,146,42,.08); border-color: rgba(200,146,42,.4);
  color: var(--gold-lt); border-style: solid;
}
.btn-add-card.small { width: auto; padding: .42rem 1rem; font-size: .77rem; }

/* ── TAGS ── */
.tags-field {
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r);
  padding: .5rem; background: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: .35rem;
  min-height: 48px; cursor: text;
  transition: border-color .18s, box-shadow .18s;
}
.tags-field:focus-within {
  border-color: rgba(200,146,42,.5);
  box-shadow: 0 0 0 3px rgba(200,146,42,.1);
}
.tags-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag-item {
  display: inline-flex; align-items: center; gap: .28rem;
  background: rgba(200,146,42,.15); color: var(--gold-lt);
  border: 1px solid rgba(200,146,42,.25);
  font-size: .73rem; font-weight: 600;
  padding: .28rem .6rem; border-radius: 20px;
  animation: tagPop .18s var(--ease);
}
@keyframes tagPop { from { transform:scale(.75); opacity:0; } to { transform:scale(1); opacity:1; } }
.tag-remove {
  background: none; border: none; color: rgba(200,146,42,.5);
  font-size: .9rem; cursor: pointer; padding: 0; line-height: 1; transition: .15s;
}
.tag-remove:hover { color: var(--gold-lt); }
.tags-input {
  border: none; outline: none; font-size: .86rem;
  color: var(--white); flex: 1; min-width: 140px;
  padding: .15rem .3rem; background: transparent;
}
.tags-input::placeholder { color: rgba(255,255,255,.18); }

/* ── SUBSECTION ── */
.subsection { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--border-2); }
.subsection-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--white);
  margin-bottom: .5rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-2);
}
.subsection-hint { font-size: .76rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }

/* Lang row */
.lang-row { display: flex; gap: .7rem; align-items: flex-end; margin-bottom: .7rem; }
.lang-row .field-wrap { flex: 1; }
.lang-row .field-wrap.narrow { flex: 0 0 155px; }
.btn-remove-lang {
  background: none; border: 1px solid var(--border-2); color: rgba(255,255,255,.25);
  width: 36px; height: 36px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; margin-bottom: 1px; transition: .15s; font-size: 1rem;
}
.btn-remove-lang:hover { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: var(--red); }

/* ═══════════════════════════════════════
   STEP ACTIONS (nav buttons)
═══════════════════════════════════════ */
.step-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.4rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-2);
}
.cta-group { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.step-actions-export { justify-content: center; }
.step-actions-export .cta-group { justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.06) 100%);
  color: var(--white); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r); padding: .75rem 1.7rem;
  font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: .45rem;
  cursor: pointer; transition: all .2s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: .73rem 1.5rem; font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: .45rem;
  cursor: pointer; transition: .18s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.25); color: var(--white); }

/* ═══════════════════════════════════════
   STEP 6 — BOUTONS UNIFIÉS
═══════════════════════════════════════ */
#prev6,
.btn-share-cta,
.btn-pdf-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px;
  background: rgba(108,63,197,.15);
  border: 1.5px solid rgba(108,63,197,.45);
  color: #9b6dff; font-size: .82rem; font-weight: 700;
  font-family: 'Epilogue', sans-serif;
  cursor: pointer; transition: all .2s;
  box-shadow: none;
}
#prev6:hover,
.btn-share-cta:hover,
.btn-pdf-cta:hover {
  background: rgba(108,63,197,.25);
  border-color: rgba(108,63,197,.7);
  box-shadow: 0 4px 16px rgba(108,63,197,.25);
  transform: translateY(-1px);
}
#prev6:active, .btn-share-cta:active, .btn-pdf-cta:active { transform: translateY(0); }
.btn-pdf-cta:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ═══════════════════════════════════════
   TEMPLATE PICKER
═══════════════════════════════════════ */
.template-picker { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.template-card { display: flex; flex-direction: column; align-items: center; gap: .45rem; cursor: pointer; transition: transform .2s var(--ease); }
.template-card:hover { transform: translateY(-4px); }
.tpl-preview {
  width: 96px; height: 126px; background: #fff;
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 6px; padding: 7px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden;
}
.template-card:hover .tpl-preview { box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.template-card.active .tpl-preview {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,.2), 0 8px 32px rgba(0,0,0,.5);
}
.template-card > span {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); transition: color .2s;
}
.template-card.active > span { color: var(--gold-lt); }
.tpl-badge {
  font-size: .56rem; font-weight: 700; color: var(--gold);
  background: rgba(200,146,42,.12); border: 1px solid rgba(200,146,42,.25);
  padding: .07rem .4rem; border-radius: 20px;
  letter-spacing: .05em; text-transform: uppercase; font-style: normal;
}
/* CV thumbnail shapes */
.tp-bar { height: 14px; background: #0b1628; border-radius: 1px; margin-bottom: 4px; }
.tp-line { height: 3.5px; background: #e0dbd2; border-radius: 2px; margin-bottom: 3.5px; }
.tp-line.gold { height: 5px; background: #c8922a; }
.tp-line.short { width: 60%; }
.tp-line.xl { height: 7px; background: #0b1628; }
.tp-line.md { height: 4px; background: #c0bbb5; width: 72%; }
.tp-sep { height: 1px; background: #e0dbd2; margin: 4px 0 3px; }
.tp-div { height: 1px; background: #0b1628; margin: 4px 0; }
.tpl-modern { display: flex; gap: 3px; padding: 0; }
.tp-sidebar { width: 24px; background: #0b1628; flex-shrink: 0; }
.tp-body { flex: 1; padding: 6px 4px; }
.tp-body .tp-line { margin-bottom: 4px; }
.tp-exec-rule { height: 1.5px; background: #0b1628; margin: 4px 0; }
.tp-exec-top { margin-bottom: 3px; }
.tpl-tech { display: flex; gap: 0; padding: 0; overflow: hidden; }
.tp-tech-accent { width: 5px; background: linear-gradient(180deg, #c8922a, #0b1628); flex-shrink: 0; }
.tp-tech-body { flex: 1; padding: 6px 5px; }
.tpl-timeline { padding: 0 0 0 6px; overflow: hidden; }
.tp-tl-row { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 5px; }
.tp-tl-dot { width: 5px; height: 5px; border-radius: 50%; background: #c8922a; flex-shrink: 0; margin-top: 2px; }
.tp-tl-content { flex: 1; }
.tp-tl-content .tp-line { margin-bottom: 3px; }
.tp-mod-avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3); margin: 5px auto 5px; }
.tp-mod-sline { height: 2.5px; border-radius: 2px; margin: 0 auto 3px; }

/* ═══════════════════════════════════════
   PREVIEW AREA
═══════════════════════════════════════ */
.preview-shell {
  border: 1px solid var(--border-2);
  border-radius: var(--r2); overflow: hidden;
  box-shadow: var(--sh2); margin-bottom: .5rem;
}
.preview-toolbar {
  background: var(--ink-2);
  padding: .65rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-2);
}
.preview-title {
  font-size: .67rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2);
  display: flex; align-items: center; gap: .5rem;
}
.preview-title::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200,146,42,.5);
}
.preview-toolbar-actions { display: flex; gap: .4rem; }
.btn-toolbar-share {
  background: rgba(255,255,255,.06); color: var(--muted);
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: .38rem .85rem; font-size: .75rem; font-weight: 600;
  display: flex; align-items: center; gap: .32rem; cursor: pointer; transition: .15s;
}
.btn-toolbar-share:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-toolbar-pdf {
  background: var(--gold); color: var(--ink); border: none; border-radius: var(--r);
  padding: .38rem .9rem; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; gap: .32rem; cursor: pointer; transition: .15s;
  box-shadow: 0 2px 8px rgba(200,146,42,.3);
}
.btn-toolbar-pdf:hover { background: var(--gold-lt); }
.preview-stage {
  background: #1a1a1a;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 2.5rem; overflow-x: auto;
  display: flex; justify-content: center; min-height: 340px;
}
.preview-scaler {
  transform: scale(0.72); transform-origin: top center;
  display: inline-block; margin-bottom: -28%;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.5));
}

/* ═══════════════════════════════════════
   CV PAPER (unchanged - must stay white)
═══════════════════════════════════════ */
.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; }
/* Lien site web section Projets — toujours en noir, jamais en or */
.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: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.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: #c8922a; 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: 17px; }
.cv-classic .cv-section-title { font-size: 8.5pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0b1628; padding-bottom: 4px; border-bottom: 2px solid #c8922a; margin-bottom: 9px; }
.cv-classic .cv-summary { font-size: 9.5pt; color: #333; line-height: 1.6; }
.cv-classic .cv-entry { margin-bottom: 12px; }
.cv-classic .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 1px; }
.cv-classic .cv-entry-title { font-size: 10pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-classic .cv-entry-date { font-size: 8pt; color: #888; font-style: italic; white-space: nowrap; flex-shrink: 0; }
.cv-classic .cv-entry-org { font-size: 9pt; color: #555; font-weight: 500; margin-bottom: 2px; overflow-wrap: break-word; }
.cv-classic .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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: ""; }
.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; overflow: hidden; }
.cv-modern-layout .cv-sidebar { width: 255px; min-height: 1122px; background: #0b1628; color: #fff; padding: 32px 24px; flex-shrink: 0; overflow: hidden; }
.cv-modern-layout .cv-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid rgba(255,255,255,.35); display: block; margin: 0 auto 18px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.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; word-break: break-word; }
.cv-modern-layout .cv-jobtitle { font-size: 9pt; color: #c8922a; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; font-weight: 600; text-align: center; word-break: break-word; }
.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: flex-start; gap: 5px; font-size: 8.5pt; color: rgba(255,255,255,.7); margin-bottom: 6px; word-break: break-word; overflow-wrap: 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); word-break: break-word; }
.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; gap: 4px; }
.cv-modern-layout .cv-lang-level { color: rgba(255,255,255,.55); flex-shrink: 0; }
.cv-modern-layout .cv-main { flex: 1; min-width: 0; padding: 30px 28px; background: #fff; }
.cv-modern-layout .cv-summary { font-size: 9.5pt; color: #333; line-height: 1.65; margin-bottom: 18px; overflow-wrap: break-word; }
.cv-modern-layout .cv-section { margin-bottom: 18px; }
.cv-modern-layout .cv-section-title { font-size: 8.5pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0b1628; padding-bottom: 4px; border-bottom: 2px solid #c8922a; margin-bottom: 10px; }
.cv-modern-layout .cv-entry { margin-bottom: 12px; }
.cv-modern-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; }
.cv-modern-layout .cv-entry-title { font-size: 10.5pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-modern-layout .cv-entry-date { font-size: 8pt; color: #888; font-style: italic; white-space: nowrap; flex-shrink: 0; }
.cv-modern-layout .cv-entry-org { font-size: 9.5pt; color: #555; font-weight: 500; margin: 2px 0 3px; overflow-wrap: break-word; }
.cv-modern-layout .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }

/* 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: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; border: 2px solid rgba(0,0,0,.1); box-shadow: 0 3px 14px rgba(0,0,0,.15); }
.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: #c8922a; 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: 20px; }
.cv-minimal-layout .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #999; margin-bottom: 9px; }
.cv-minimal-layout .cv-summary { font-size: 9.5pt; color: #333; line-height: 1.65; }
.cv-minimal-layout .cv-entry { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #ece9e3; }
.cv-minimal-layout .cv-entry:last-child { border-bottom: none; }
.cv-minimal-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cv-minimal-layout .cv-entry-title { font-size: 10.5pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-minimal-layout .cv-entry-date { font-size: 8pt; color: #aaa; flex-shrink: 0; }
.cv-minimal-layout .cv-entry-org { font-size: 9.5pt; color: #666; margin: 2px 0 4px; overflow-wrap: break-word; }
.cv-minimal-layout .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.65; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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-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: 114px; height: 114px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid #0b1628; box-shadow: 0 0 0 2px #c8922a, 0 6px 20px rgba(0,0,0,.3); }
.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: #c8922a; 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: 18px; }
.cv-executive .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #0b1628; margin-bottom: 10px; 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: #444; line-height: 1.65; text-align: center; font-style: italic; }
.cv-executive .cv-entry { margin-bottom: 12px; padding-left: 26px; }
.cv-executive .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 1px; }
.cv-executive .cv-entry-title { font-size: 10.5pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-executive .cv-entry-date { font-size: 8pt; color: #aaa; font-style: italic; white-space: nowrap; flex-shrink: 0; }
.cv-executive .cv-entry-org { font-size: 9.5pt; color: #666; margin-bottom: 2px; font-weight: 500; overflow-wrap: break-word; }
.cv-executive .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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; }

/* 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: 108px; height: 108px; border-radius: 12px; object-fit: cover; object-position: center top; border: 2px solid #e0dbd2; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.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: #c8922a; 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: 16px; }
.cv-tech-layout .cv-section-title { font-size: 8pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c8922a; padding-bottom: 4px; border-bottom: 1.5px solid #e0dbd2; margin-bottom: 9px; }
.cv-tech-layout .cv-summary { font-size: 9pt; color: #333; line-height: 1.6; }
.cv-tech-layout .cv-entry { margin-bottom: 11px; }
.cv-tech-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cv-tech-layout .cv-entry-title { font-size: 10.5pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-tech-layout .cv-entry-date { font-size: 7.5pt; color: #c8922a; font-weight: 600; white-space: nowrap; background: #fdf3de; padding: 1px 6px; border-radius: 3px; flex-shrink: 0; }
.cv-tech-layout .cv-entry-org { font-size: 9.5pt; color: #555; font-weight: 500; margin: 2px 0 3px; overflow-wrap: break-word; }
.cv-tech-layout .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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; }

/* 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: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.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: #c8922a; 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: 20px; }
.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: 14px; }
.cv-timeline-layout .cv-summary { font-size: 9.5pt; color: #333; line-height: 1.65; }
.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: 14px; padding-bottom: 2px; }
.cv-timeline-layout .cv-entry::before { content: ''; position: absolute; left: -27px; top: 4px; 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; gap: 8px; margin-bottom: 1px; }
.cv-timeline-layout .cv-entry-title { font-size: 10.5pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-timeline-layout .cv-entry-date { font-size: 7.5pt; color: #fff; background: #c8922a; padding: 1px 7px; border-radius: 10px; white-space: nowrap; font-weight: 600; flex-shrink: 0; }
.cv-timeline-layout .cv-entry-org { font-size: 9.5pt; color: #555; font-weight: 500; margin-bottom: 3px; overflow-wrap: break-word; }
.cv-timeline-layout .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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; }

/* 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: 100px; height: 100px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid #c8922a; box-shadow: 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: #c8922a; 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-paper.cv-elegant { display: flex; flex-direction: column; }
.cv-elegant-body { display: flex; flex: 1; }
.cv-elegant-main { flex: 1; min-width: 0; padding: 22px 28px; }
.cv-elegant-aside { width: 205px; padding: 22px 18px; background: #f5ede3; border-left: 1.5px solid #d5c9bc; flex-shrink: 0; }
.cv-elegant .cv-section { margin-bottom: 16px; }
.cv-elegant .cv-section-title { font-size: 7.5pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c8922a; padding-bottom: 4px; border-bottom: 1px solid #e4ded6; margin-bottom: 8px; }
.cv-elegant .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.65; }
.cv-elegant .cv-entry { margin-bottom: 12px; }
.cv-elegant .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 1px; }
.cv-elegant .cv-entry-title { font-size: 10pt; font-weight: 700; color: #1a1a1a; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-elegant .cv-entry-date { font-size: 7.5pt; color: #999; font-style: italic; white-space: nowrap; flex-shrink: 0; }
.cv-elegant .cv-entry-org { font-size: 9pt; color: #777; font-style: italic; margin-bottom: 2px; overflow-wrap: break-word; }
.cv-elegant .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.cv-elegant .cv-tags-wrap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cv-elegant .cv-tag { font-size: 8.5pt; color: #333; padding: 1px 0; }
.cv-elegant .cv-tag::after { content: ""; }
.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; }

/* 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: #c8922a; 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: 16px; }
.cv-bold-layout .cv-section-title { font-size: 9pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0b1628; padding-left: 10px; border-left: 4px solid #c8922a; margin-bottom: 10px; line-height: 1.4; }
.cv-bold-layout .cv-summary { font-size: 9.5pt; color: #333; line-height: 1.62; }
.cv-bold-layout .cv-entry { margin-bottom: 12px; }
.cv-bold-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 1px; }
.cv-bold-layout .cv-entry-title { font-size: 10pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-bold-layout .cv-entry-date { font-size: 8pt; color: #c8922a; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.cv-bold-layout .cv-entry-org { font-size: 9pt; color: #666; margin-bottom: 2px; overflow-wrap: break-word; }
.cv-bold-layout .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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-paper.cv-bold-layout .cv-tag::after { content: " · "; color: #c8922a; font-weight: 700; margin: 0 3px; }
.cv-paper.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; }

/* 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: 78px; height: 78px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; border: 2px solid #e4ded6; }
.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: #c8922a; 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; overflow-wrap: break-word; }
.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; overflow-wrap: break-word; word-break: break-word; }
.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; }

/* 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: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid rgba(255,255,255,.28); display: block; margin: 0 auto 20px; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.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: #c8922a; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 20px; }
.cv-split-layout .cv-section { margin-bottom: 16px; }
.cv-split-layout .cv-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0b1628; padding-bottom: 4px; border-bottom: 2px solid #c8922a; margin-bottom: 9px; }
.cv-split-layout .cv-summary { font-size: 9.5pt; color: #444; line-height: 1.65; }
.cv-split-layout .cv-entry { margin-bottom: 12px; }
.cv-split-layout .cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 1px; }
.cv-split-layout .cv-entry-title { font-size: 10pt; font-weight: 700; color: #0b1628; flex: 1; min-width: 0; overflow-wrap: break-word; }
.cv-split-layout .cv-entry-date { font-size: 8pt; color: #999; font-style: italic; white-space: nowrap; flex-shrink: 0; }
.cv-split-layout .cv-entry-org { font-size: 9pt; color: #555; margin-bottom: 2px; overflow-wrap: break-word; }
.cv-split-layout .cv-entry-desc { font-size: 9pt; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.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-lang-item { font-size: 8.5pt; color: rgba(255,255,255,.82); padding: 2px 0; }
.cv-split-layout .cv-lang-level { color: #c8922a; }

/* 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: #e8ddd1; border-left: 1.5px solid #c9bdb0; 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;
}
.footer-inner {
  max-width: 840px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.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; }
  .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; }
  .step-actions-export { flex-direction: column; }
  .cta-group, #prev6,
  .btn-pdf-cta, .btn-share-cta, .btn-ai-cta,
  .btn-letter-cta, .btn-score-cta { width: 100%; justify-content: center; }
  .cta-group { flex-direction: column; gap: .6rem; }
  .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; gap: 2px 0; }
.cv-paper .cv-lang-wrap { display: flex; flex-wrap: wrap; }
/* Séparateur universel pour les tags (fallback si le template ne définit pas ::after) */
.cv-paper .cv-tag::after { content: ",\00a0"; color: inherit; }
.cv-paper .cv-tag:last-child::after { content: ""; }

/* ═══════════════════════════════════════════════════
   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
   (widow/orphan pour les sections) */
.cv-paper .cv-section {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Si une section est trop longue (ex: 8 expériences),
   au moins garantir que le titre reste avec la 1ère entrée */
.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: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px;
  background: rgba(108,63,197,.15);
  border: 1.5px solid rgba(108,63,197,.45);
  color: #9b6dff; font-size: .82rem; font-weight: 700;
  font-family: 'Epilogue', sans-serif;
  cursor: pointer; transition: all .2s; box-shadow: none;
}
.btn-ai-cta:hover  { background: rgba(108,63,197,.25); border-color: rgba(108,63,197,.7); box-shadow: 0 4px 16px rgba(108,63,197,.25); transform: translateY(-1px); }
.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); }

/* Comparison grid (old vs new) */
.ai-compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 600px) {
  .ai-compare-grid { grid-template-columns: 1fr; }
}
.ai-compare-col { border-radius: 10px; overflow: hidden; }
.ai-compare-col-head {
  font-size: .7rem; font-weight: 700; padding: .4rem .8rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.ai-compare-old .ai-compare-col-head { background: rgba(248,113,113,.12); color: #f87171; }
.ai-compare-new .ai-compare-col-head { background: rgba(74,222,128,.12); color: #4ade80; }
.ai-compare-col-body {
  padding: .7rem .8rem; font-size: .82rem; line-height: 1.65;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-top: none; min-height: 60px; white-space: pre-wrap;
  word-break: break-word; color: #c8d0e0;
}
.ai-compare-old .ai-compare-col-body { border-color: rgba(248,113,113,.18); }
.ai-compare-new .ai-compare-col-body { border-color: rgba(74,222,128,.18); }

/* Compare section label */
.ai-compare-section-title {
  font-size: .72rem; font-weight: 700; color: #9b6dff;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .55rem;
}

/* Compare footer */
.ai-compare-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.btn-ai-cancel {
  padding: .6rem 1.2rem; border-radius: 10px; font-size: .82rem; font-weight: 700;
  cursor: pointer; background: transparent; color: #8892b0;
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Epilogue', sans-serif; transition: all .2s;
}
.btn-ai-cancel:hover { border-color: #f87171; color: #f87171; }

/* 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 unlock/apply buttons only ── */
.btn-unlock, .btn-ai-apply {
  position: relative; overflow: hidden;
}
.btn-unlock::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);
}

/* ── Boutons step 6 (light theme) ── */
html[data-theme="light"] #prev6,
html[data-theme="light"] .btn-share-cta,
html[data-theme="light"] .btn-ai-cta,
html[data-theme="light"] .btn-pdf-cta {
  background: rgba(108,63,197,.08); border-color: rgba(108,63,197,.35); color: #6d28d9;
}
html[data-theme="light"] #prev6:hover,
html[data-theme="light"] .btn-share-cta:hover,
html[data-theme="light"] .btn-ai-cta:hover,
html[data-theme="light"] .btn-pdf-cta:hover {
  background: rgba(108,63,197,.16); border-color: rgba(108,63,197,.6);
  box-shadow: 0 4px 16px rgba(108,63,197,.18);
}

/* ── 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-compare-col-body { background: rgba(15,23,42,.03); color: #0d1117; border-color: rgba(15,23,42,.1); }
html[data-theme="light"] .ai-compare-old .ai-compare-col-body { border-color: rgba(248,113,113,.25); }
html[data-theme="light"] .ai-compare-new .ai-compare-col-body { border-color: rgba(74,222,128,.25); }
html[data-theme="light"] .ai-compare-section-title { color: #6d28d9; }
html[data-theme="light"] .btn-ai-cancel { color: rgba(15,23,42,.5); border-color: rgba(15,23,42,.15); }
html[data-theme="light"] .ai-improvement-item {
  background: rgba(108,63,197,.06); border-color: rgba(108,63,197,.18); color: #0d1117;
}
/* Le modal IA a toujours un fond sombre — forcer texte clair quel que soit le thème */
#modalAi .ai-compare-col-body { color: #c8d0e0 !important; background: rgba(255,255,255,.04) !important; }
#modalAi .ai-compare-section-title { color: #9b6dff !important; }
#modalAi .ai-improvement-item { color: #c8d0e0 !important; }

/* ── 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); }