@font-face { font-family: "Poppins"; src: url("../fonts/f_poppins_r.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/f_poppins_b.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("../fonts/f_playfair_b.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vina Sans"; src: url("../fonts/vina_sans.ttf"); font-display: swap; }

:root {
    --primary: #4F46E5; --primary-dark: #3730A3; --primary-soft: #E0E7FF; --on-primary-soft: #312E81;
    --bg: #F5F6FA; --surface: #fff; --ink: #111827; --muted: #6B7280; --line: #E5E7EB; --field: #F9FAFB;
    --danger: #DC2626; --radius: 18px;
    --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
    --primary: #6366F1; --primary-soft: #312E81; --on-primary-soft: #E0E7FF;
    --bg: #0F1020; --surface: #1A1C2E; --ink: #F3F4F6; --muted: #9CA3AF; --line: #2A2D44; --field: #14162A;
}
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] {
        --primary: #6366F1; --primary-soft: #312E81; --on-primary-soft: #E0E7FF;
        --bg: #0F1020; --surface: #1A1C2E; --ink: #F3F4F6; --muted: #9CA3AF; --line: #2A2D44; --field: #14162A;
    }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45;
    background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.hidden { display: none !important; }

#app { min-height: 100%; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-top); }
.scroll { flex: 1; padding: 0 16px calc(24px + var(--safe-bottom)); max-width: 760px; width: 100%; margin: 0 auto; }

/* ---------- Barre du haut */
.topbar { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 4px; max-width: 760px; width: 100%; margin: 0 auto; }
.topbar h1 { font-size: 19px; font-weight: 700; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.icon-btn:active { background: var(--line); }
.icon-btn svg { width: 24px; height: 24px; }
[dir="rtl"] .flip svg { transform: scaleX(-1); }

/* ---------- Accueil (welcome) */
.welcome { position: relative; min-height: 100vh; min-height: 100dvh; background: #0B0D1A; color: #fff; overflow: hidden; }
.welcome .bg { position: absolute; inset: -12px; background: url("../img/bg_welcome.jpg") center / cover; filter: blur(6px); }
.welcome .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.33) 0%, rgba(0,0,0,.13) 45%, rgba(7,8,15,.93) 100%); }
.welcome .content { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: calc(40px + var(--safe-top)) 32px calc(36px + var(--safe-bottom)); max-width: 560px; margin: 0 auto; }
.welcome .w-title { font-family: "Playfair", serif; font-style: italic; font-weight: 700; font-size: 27px; margin-inline-start: 20px; text-shadow: 0 4px 12px rgba(0,0,0,.6); }
.welcome .w-brand { font-family: "Vina Sans", "Poppins", sans-serif; font-size: 66px; line-height: 70px; margin-inline-start: 8px; text-shadow: 0 4px 12px rgba(0,0,0,.6); }
.welcome .w-slogan { font-weight: 700; font-size: 16px; line-height: 24px; margin-top: 10px; text-shadow: 0 4px 12px rgba(0,0,0,.6); }
.welcome .spacer { flex: 1; }
.appear { opacity: 0; transform: translateY(24px); animation: appear .7s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes appear { to { opacity: 1; transform: none; } }

.btn { border: 0; border-radius: 14px; height: 52px; padding: 0 20px; background: var(--primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn:active { filter: brightness(.92); }
.btn.big { letter-spacing: 2.5px; font-size: 15px; }
.btn.soft { background: var(--primary-soft); color: var(--on-primary-soft); }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn svg { width: 22px; height: 22px; }
.btn:disabled { opacity: .5; }

/* ---------- Cartes */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.title-m { font-size: 16px; font-weight: 700; }
.title-l { font-size: 20px; font-weight: 700; margin: 8px 0; }

.brandbar { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.brandbar img { width: 44px; height: 44px; border-radius: 12px; }
.brandbar .name { font-weight: 700; font-size: 20px; letter-spacing: 1px; }
.hero { border-radius: 20px; padding: 20px; color: #fff; background: linear-gradient(135deg, #4F46E5, #3730A3); }
.hero h2 { margin: 0 0 6px; font-size: 24px; }
.hero p { margin: 0; opacity: .92; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.tile { background: var(--surface); border-radius: 18px; padding: 16px; height: 150px; display: flex; flex-direction: column; justify-content: space-between; border: 0; text-align: start; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tile:active, .list-item:active { transform: scale(.98); }
.tile .t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.bubble { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.bubble svg { width: 24px; height: 24px; }
.list-item { background: var(--surface); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; border: 0; width: 100%; text-align: start; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chev { color: var(--muted); width: 22px; height: 22px; flex: none; }
[dir="rtl"] .chev { transform: scaleX(-1); }

/* ---------- Formulaire */
.field { display: block; }
.field + .field, .field + .rubric-img, .rubric-img + .field { margin-top: 14px; }
.field > label, .label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.input { width: 100%; border: 1.5px solid var(--line); background: var(--field); border-radius: 12px; padding: 12px 14px; outline: none; font-size: 16px; }
.input:focus { border-color: var(--primary); background: var(--surface); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--muted); opacity: .75; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 4px; white-space: pre-line; }
.help b { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; inset-inline-start: 4px; top: 4px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(20px); }
[dir="rtl"] .switch input:checked + span::before { transform: translateX(-20px); }

.themes { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.theme { flex: none; width: 92px; border: 0; background: none; padding: 0; scroll-snap-align: start; text-align: center; }
.theme .th { width: 92px; height: 128px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; position: relative; background: #fff; }
.theme.on .th { border: 3px solid var(--tc); }
.theme img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme .plain { position: absolute; inset: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.theme .plain i { display: block; height: 5px; border-radius: 3px; background: #E5E7EB; }
.theme .plain i:first-child { height: 14px; background: var(--tc); }
.theme .check { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--tc); color: #fff; display: grid; place-items: center; font-size: 13px; }
.theme .dots { position: absolute; bottom: 6px; inset-inline-start: 6px; display: flex; gap: 4px; }
.theme .dots b { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; }
/* Modèles de CV dessinés dans la couleur choisie */
.cvt { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.cvt i { display: block; height: 3px; border-radius: 2px; background: rgba(0,0,0,.18); }
.cvt i.ln { margin-top: 4px; }
.cvt i.nm { width: 44px; height: 5px; background: #1F2937; }
.cvt i.nm.big { width: 56px; margin: 5px auto 4px; }
.cvt b.ph { display: block; width: 20px; height: 20px; border-radius: 50%; flex: none; }
.cvt.band .hd { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 7px; }
.cvt.band .hd i.jb { width: 32px; margin-top: 4px; }
.cvt.band .sec { padding: 6px 7px 0 14px; }
.cvt.band .tt { display: flex; align-items: center; gap: 3px; margin-left: -7px; }
.cvt.band .dot { width: 4px; height: 4px; border-radius: 50%; display: block; }
.cvt.band .tt i.nm { width: 28px; height: 3px; }
.cvt.center { align-items: stretch; padding: 7px; }
.cvt.center b.ph { margin: 0 auto; width: 18px; height: 18px; }
.cvt.center i.rule { height: 1px; margin-top: 4px; }
.cvt.center i.tt2 { width: 30px; margin-top: 3px; }
.cvt.sbar { flex-direction: row; }
.cvt.sbar .sb { width: 32px; padding: 5px 4px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.cvt.sbar .sb b.ph { margin: 0 auto 3px; width: 18px; height: 18px; }
.cvt.sbar .sb i.ln.w { background: rgba(255,255,255,.55); }
.cvt.sbar .mn { flex: 1; padding: 6px 5px; display: flex; flex-direction: column; gap: 4px; }
.cvt.sbar i.bar { height: 5px; border-radius: 1px; }
.cvt.sbar i.bar.thin { height: 3px; }

/* Couleur et taille du texte */
.swatches { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.swatch { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); padding: 3px; background: var(--surface); cursor: pointer; position: relative; }
.swatch::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sc); }
.swatch.on { border: 3px solid var(--ink); padding: 0; }
.swatch.on::before { inset: 4px; }
.swatch span { position: relative; color: #fff; font-size: 10px; font-weight: 800; }
.sz { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.sz .a1 { font-size: 13px; font-weight: 700; opacity: .7; }
.sz .a2 { font-size: 22px; font-weight: 700; opacity: .7; }
.sz-range { flex: 1; accent-color: var(--primary); height: 32px; min-width: 0; }
.sz-val { width: 52px; text-align: end; font-size: 14px; font-variant-numeric: tabular-nums; }
.style-tabs { margin-bottom: 6px; }
.style-box:empty { display: none; }
.style-box { margin-bottom: 4px; }
.pages.updating { opacity: .55; transition: opacity .2s; }

.themes.wide .theme { width: 150px; }
.themes.wide .theme .th { width: 150px; height: 84px; }
.theme .nm { font-size: 12px; margin-top: 4px; line-height: 1.2; }
.theme.on .nm { color: var(--tc); font-weight: 700; }

.group-title { font-size: 20px; font-weight: 700; margin: 8px 2px; }
.item-head { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.item-head .title-m { color: var(--primary); flex: 1; }
.add-btn { width: 100%; }

.rubric-img { margin-top: 8px; }
.img-add { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--line); background: transparent; color: var(--primary); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.img-add svg { width: 20px; height: 20px; }
.img-box { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; }
.img-box img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; margin: 0 auto 8px; }
.img-actions { display: flex; gap: 8px; }
.img-actions .btn { height: 40px; font-size: 14px; }

.bottom-bar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 16px calc(12px + var(--safe-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.bottom-bar .btn { max-width: 728px; margin: 0 auto; display: flex; }

/* ---------- Aperçu */
.pages { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 8px 0 16px; }
.pages canvas { width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pageno { font-size: 12px; color: var(--muted); margin-top: -6px; }
.export { position: sticky; bottom: 0; background: var(--surface); border-radius: 20px 20px 0 0; padding: 14px 16px calc(14px + var(--safe-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.export .inner { max-width: 728px; margin: 0 auto; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Réglages */
.setting { display: flex; align-items: center; gap: 14px; padding: 12px 0; border: 0; background: none; width: 100%; text-align: start; }
.setting + .setting { border-top: 1px solid var(--line); }
.section-label { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin: 16px 4px 8px; }
.contacts { display: flex; justify-content: center; gap: 28px; margin-top: 12px; }
.contact { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13px; }
.contact .round { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.contact svg { width: 26px; height: 26px; }
details.faq { background: var(--surface); border-radius: 16px; padding: 14px 16px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Boîtes de dialogue et messages */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: 90vw; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: appear .25s forwards; }
.dialog-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 40; padding: 24px; }
.dialog { background: var(--surface); border-radius: 22px; padding: 20px; max-width: 380px; width: 100%; }
.dialog h3 { margin: 0 0 8px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog .actions button { border: 0; background: none; color: var(--primary); font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.dialog .actions .danger { color: var(--danger); }
.dialog.wide { max-width: 560px; max-height: calc(100vh - 48px); overflow: auto; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Formules et éléments insérés dans les champs */
.rich { margin-top: 6px; }
.rich-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip.tool { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--primary); }
.rich-ins { position: relative; }
.rich-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 6px; min-width: 210px; display: flex; flex-direction: column; }
.rich-menu button { border: 0; background: none; text-align: start; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: inherit; }
.rich-menu button:hover { background: var(--primary-soft); }
.rich-live:empty { display: none; }
.rich-live { margin-top: 8px; }
.rich-formulas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rich-f { border: 1px solid var(--line); border-radius: 10px; padding: 2px 4px; background: var(--field); max-width: 100%; overflow-x: auto; }
.rich-obj { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 12px; margin-top: 6px; font-size: 14px; }
.rich-obj .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger-t { color: var(--danger) !important; }
.rich-preview { min-height: 56px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; overflow-x: auto; background: var(--field); }
.input.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; min-height: 64px; }
.chips.keys { margin-top: 8px; max-height: 132px; overflow-y: auto; gap: 6px; }
.chip.key { padding: 6px 10px; font-size: 15px; min-width: 40px; }
.rich-ai { white-space: pre-wrap; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 50vh; overflow: auto; }
.install-tip { background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.install-tip b { font-weight: 700; }

/* ---------- Bouton d'installation */
.install-btn { margin-top: 2px; }
.install-tip .install-btn { width: auto; height: 42px; font-size: 14px; }
.side-install { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; }
.side-install svg { width: 20px; height: 20px; }

/* ---------- Format ordinateur (grand écran) */
.side { display: none; }
@media (min-width: 1024px) {
    .shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
    .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
        background: var(--surface); border-inline-end: 1px solid var(--line); padding: 18px 14px; gap: 2px; }
    .side-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 4px 8px 18px; }
    .side-brand img { width: 42px; height: 42px; border-radius: 12px; }
    .side-brand .name { font-weight: 700; font-size: 20px; letter-spacing: 1px; }
    .side-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 16px 10px 6px; }
    .side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
    .side-item:hover { background: var(--bg); }
    .side-item.on { background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; }
    .side-ic { display: grid; place-items: center; width: 24px; color: var(--muted); }
    .side-item.on .side-ic { color: inherit; }
    .side-ic svg { width: 22px; height: 22px; }
    .side-grow { flex: 1; min-height: 16px; }
    .main { min-width: 0; }
    .main .screen { padding-top: 12px; }
    .main .brandbar { display: none; }
    .scroll, .topbar { max-width: 1120px; padding-left: 32px; padding-right: 32px; }
    .topbar { padding-left: 24px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .tile { height: 170px; padding: 20px; }
    .tile:hover, .list-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
    .hero { padding: 28px 32px; }
    .hero h2 { font-size: 28px; }
    /* formulaires : champs courts sur deux colonnes */
    .fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 14px; align-items: start; }
    .fields > * { grid-column: 1 / -1; margin-top: 0 !important; }
    .fields > .field.short { grid-column: auto; }
    .card { padding: 22px 24px; }
    .bottom-bar { box-shadow: 0 -1px 0 var(--line); padding: 12px 32px; display: flex; justify-content: flex-end; }
    .bottom-bar .btn { margin: 0; width: auto; padding: 0 36px; }
    .main .bottom-bar { max-width: none; }
    /* aperçu : pages au centre, export à droite */
    .preview-screen { display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; column-gap: 8px; }
    .preview-screen .topbar { grid-column: 1 / -1; max-width: none; }
    .preview-screen .scroll { max-width: 860px; }
    .preview-screen .export { position: sticky; top: 16px; align-self: start; border-radius: 20px; margin: 8px 24px 24px 0; padding: 20px; }
    .preview-screen .export .row { flex-direction: column; }
    .themes { flex-wrap: wrap; overflow: visible; }
    /* réglages de l'aperçu : la zone ouverte défile d'elle-même sous la souris, sans faire bouger la page */
    .preview-screen .style-box { max-height: min(46vh, 440px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
    .preview-screen .style-box .swatches, .preview-screen .style-box .chips.one-line { flex-wrap: wrap; overflow: visible; }
    .toast { bottom: 32px; }
}

/* Remplir avec l'IA */
.fill-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer; border: 1.5px solid var(--primary-soft); background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%); }
.fill-card .grow { display: flex; flex-direction: column; gap: 2px; }
.fill-card .title-m { color: var(--primary); }
.fill-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface); flex: none; }
.row .spinner { width: 22px; height: 22px; border-width: 3px; margin: 0; flex: none; }
.chips.one-line { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.one-line .chip { flex: none; white-space: nowrap; }
.chips.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chips.seg .chip { padding: 9px 8px; text-align: center; font-size: 13.5px; line-height: 1.2; }

/* CV à barre latérale : disposition des rubriques */
.layout-rows { display: grid; gap: 8px; }
.layout-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); align-items: center; gap: 10px; }
.chips.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chips.seg3 .chip { padding: 7px 4px; text-align: center; font-size: 13px; }

/* Crédits : codes à recopier (parrainage, sauvegarde) */
.code-box { font: 600 17px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; text-align: center; padding: 12px; border-radius: 14px; background: var(--primary-soft); color: var(--on-primary-soft); user-select: all; word-break: break-all; }
.ref-banner { border: 1.5px solid var(--primary-soft); }
.ref-banner .row .input { flex: 1; min-width: 0; }
