/* MakeYouFirst — charte D « Rose & Encre » (rose 350, violet 300, encre #0d0c22). Feuille autonome : polices et
   bibliothèques servies depuis /assets (aucun CDN, CSP « self »). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #fff; --bg2: #f8f7f9; --card: #fff; --line: #e7e7e9; --line2: #dcdce0;
  --ink: #0d0c22; --ink2: #3d3d4e; --ink3: #6e6d7a; --ink-hover: #2a2946;
  --p: oklch(.66 .2 350); --p2: oklch(.94 .05 350); --p3: oklch(.97 .025 350); --pd: oklch(.56 .22 350);
  --s: oklch(.7 .16 300); --s2: oklch(.94 .05 300); --sd: oklch(.5 .18 300);
  --country: #ececef; --country-hot: #e2e2e8;
  --ok: oklch(.5 .11 155); --ok-50: oklch(.95 .04 155); --warn: oklch(.55 .12 70); --warn-50: oklch(.96 .045 80);
  --bad: oklch(.52 .17 28); --bad-50: oklch(.95 .03 28); --info: var(--sd); --info-50: var(--s2);
  --r: 16px; --r-md: 14px; --r-sm: 10px;
  --sh: none; --sh-pop: 0 1px 2px #0d0c220d, 0 12px 32px -12px #0d0c2229;
  --ring: 0 0 0 3px oklch(.66 .2 350 / .3);
  --nav-h: 66px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
a { color: var(--pd); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
h1, h2, h3, .h2, .h3 { letter-spacing: -.03em; font-weight: 800; margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: clamp(26px, 3vw, 34px); }
h2, .h2 { font-size: clamp(20px, 2.2vw, 26px); }
h3, .h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 .9em; }
code { font-family: var(--mono); font-size: .86em; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }
.muted { color: var(--ink3); } .small { font-size: 13px; } .center { text-align: center; } .break { word-break: break-all; } .mt { margin-top: 1rem; }
.danger-text { color: var(--bad); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.ico { flex: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 52ch; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ——— Barre de navigation ——— */
.mf-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: var(--nav-h); padding: 0 32px; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo i { width: 30px; height: 30px; background: url(brand/symbol.svg) center / contain no-repeat; display: inline-block; color: transparent; font-size: 0; font-style: normal; flex: none; } /* symbole officiel (kit logo, GUIDE-USAGE) */
.logo .logo-word { display: block; height: 19px; width: auto; flex: none; }
.logo-dark i { background-image: url(brand/symbol-on-dark.svg); }
.mf-tabs { display: flex; gap: 4px; margin-left: 12px; }
.mf-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--ink2); font-weight: 500; font-size: 14px; }
.mf-tabs a:hover { background: var(--bg2); color: var(--ink); }
.mf-tabs a.is-active { background: var(--bg2); color: var(--ink); font-weight: 600; }
.mf-nav .sp { flex: 1; }
.mf-nav .nav-btns { display: flex; gap: 10px; align-items: center; }
.lang { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; }
.lang a { padding: 6px 10px; color: var(--ink3); }
.lang a.is-on { background: var(--ink); color: #fff; }
.nav-toggle, .nav-backdrop { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--p2); color: var(--pd); font-weight: 800; font-size: 13px; }
.menu-panel { position: absolute; right: 0; top: 46px; min-width: 250px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-pop); padding: .75rem; display: grid; gap: .25rem; z-index: 40; }
.menu-panel a { color: var(--ink); padding: .45rem .6rem; border-radius: 10px; }
.menu-panel a:hover { background: var(--bg2); }

/* ——— Coquille de l'application : voir assets/css/shell.css (menu latéral, barre du haut, onglets mobiles) ——— */
.cred { padding: 16px; border-radius: var(--r); background: var(--bg2); display: block; color: var(--ink); }
.cred:hover { color: var(--ink); }
.cred b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: block; }
.cred b span { font-size: 14px; color: var(--ink2); font-weight: 600; }
.cred small { font-size: 12px; color: var(--ink2); display: block; }
.bar { height: 6px; border-radius: 99px; background: #fff; margin: 10px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--p); border-radius: 99px; }
.content { padding: 28px 32px 48px; min-width: 0; }
.content > .narrow, .narrow { max-width: 1180px; }
.foot { color: var(--ink3); font-size: 13px; padding: 20px 32px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--ink3); } .foot a:hover { color: var(--ink); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head p { margin: 4px 0 0; color: var(--ink2); }
.page-head h1 { margin: 0; }
.back { font-size: 13px; color: var(--ink3); display: inline-block; margin-bottom: 6px; }

/* ——— Cartes, grilles ——— */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px 24px; margin-bottom: 20px; }
.card > summary { cursor: pointer; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.row > * { flex: 1 1 320px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.stats, .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat, .kpi { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; color: var(--ink); }
a.stat:hover, a.kpi:hover { color: var(--ink); border-color: var(--p); }
.stat .n, .kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; order: 2; }
.stat .l, .kpi small { font-size: 12px; color: var(--ink3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; order: 1; }
.kpi span { font-size: 12px; color: var(--pd); font-weight: 600; order: 3; }
.stat-accent { border-color: var(--p2); background: var(--p3); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 2.5rem; }
.pill { display: inline-flex; align-self: flex-start; width: max-content; max-width: 100%; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: 13px; font-weight: 600; }
.pill.s { background: var(--p2); color: var(--pd); }
.lock { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--s2); color: var(--sd); white-space: nowrap; }

/* ——— Boutons (pilules) ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: transform .15s, background .15s, color .15s; }
.btn:hover { background: var(--bg2); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: #fff; }
.btn-accent { background: var(--p); border-color: var(--p); color: #fff; }
.btn-accent:hover { background: var(--pd); border-color: var(--pd); color: #fff; }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-success:hover { background: oklch(.44 .11 155); color: #fff; }
.btn-danger { color: var(--bad); border-color: oklch(.85 .06 28); }
.btn-danger:hover { background: var(--bad-50); color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form, .inline-form { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 200px; }
.center-actions { justify-content: center; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 1rem 0; z-index: 5; }
.bookmarklet { cursor: grab; }

/* ——— Formulaires ——— */
.form { display: block; }
input, select, textarea { font: inherit; width: 100%; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink); }
input:not([type=checkbox], [type=radio], [type=range]):focus, select:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: var(--ring); }
textarea { resize: vertical; min-height: 80px; }
input::placeholder, textarea::placeholder { color: #9d9ca8; opacity: 1; }
input:not([type=checkbox], [type=radio], [type=range], [type=file]):hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus):not(:disabled) { border-color: #c8c7cf; }
input:not([type=checkbox], [type=radio], [type=range]):disabled, select:disabled, textarea:disabled { background: var(--bg2); color: var(--ink3); cursor: not-allowed; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: oklch(.74 .12 28); }
input[type=number] { font-variant-numeric: tabular-nums; }
/* Listes déroulantes : chevron de la charte */
select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6d7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; text-overflow: ellipsis; }
select:disabled { background-color: var(--bg2); }
select[multiple], select[size]:not([size="1"]) { background-image: none; padding-right: 14px; }
/* Cases à cocher et boutons radio */
input:where([type=checkbox]), input:where([type=radio]) { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; padding: 0; flex: none; display: inline-grid; place-content: center; vertical-align: -4px; border: 1.5px solid var(--line2); background: #fff; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
input:where([type=checkbox]) { border-radius: 6px; }
input:where([type=radio]) { border-radius: 50%; }
input:where([type=checkbox])::before { content: ""; width: 12px; height: 12px; background: #fff; transform: scale(0); transition: transform .12s ease-out; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
input:where([type=radio])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s ease-out; }
input:where([type=checkbox]:hover:not(:disabled)), input:where([type=radio]:hover:not(:disabled)) { border-color: var(--ink3); }
input:where([type=checkbox]:checked), input:where([type=radio]:checked), input:where([type=checkbox]:indeterminate) { background: var(--pd); border-color: var(--pd); }
input:where([type=checkbox]:checked)::before, input:where([type=radio]:checked)::before { transform: scale(1); }
input:where([type=checkbox]:indeterminate)::before { -webkit-mask: none; mask: none; width: 10px; height: 2px; border-radius: 2px; transform: scale(1); }
input:where([type=checkbox]:focus), input:where([type=radio]:focus) { box-shadow: none; }
input:where([type=checkbox]:focus-visible), input:where([type=radio]:focus-visible) { box-shadow: var(--ring); }
input:where([type=checkbox]:disabled), input:where([type=radio]:disabled) { opacity: .5; cursor: not-allowed; }
/* Interrupteur : <input type="checkbox" role="switch"> */
input:where([type=checkbox][role=switch]) { width: 40px; height: 24px; border-radius: 99px; border: 0; background: var(--line); place-content: center start; padding: 3px; }
input:where([type=checkbox][role=switch])::before { -webkit-mask: none; mask: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: none; transition: transform .18s ease-out; box-shadow: 0 1px 2px #0d0c2229; }
input:where([type=checkbox][role=switch]:checked) { background: var(--p); }
input:where([type=checkbox][role=switch]:checked)::before { transform: translateX(16px); }
/* Curseurs : piste fine, partie remplie en rose (--fill posé par shell.js) */
input:where([type=range]) { -webkit-appearance: none; appearance: none; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; accent-color: var(--pd); --fill: 50%; }
input:where([type=range]:focus) { box-shadow: none; }
input:where([type=range])::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--p) 0 var(--fill), var(--line) var(--fill) 100%); }
input:where([type=range])::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--pd); transition: transform .15s, box-shadow .15s; }
input:where([type=range]:active)::-webkit-slider-thumb { transform: scale(1.12); }
input:where([type=range]:focus-visible)::-webkit-slider-thumb { box-shadow: var(--ring); }
input:where([type=range])::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input:where([type=range])::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--p); }
input:where([type=range])::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--pd); }
input:where([type=range]:focus-visible)::-moz-range-thumb { box-shadow: var(--ring); }
input:where([type=range]:disabled) { opacity: .5; cursor: not-allowed; }
/* Champ fichier (sans JS) : bouton pilule + zone pointillée ; shell.js le transforme en zone de dépôt (.fdrop) */
input:where([type=file]) { padding: 10px; border: 1.5px dashed var(--line2); border-radius: var(--r-md); background: var(--bg2); color: var(--ink3); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
input:where([type=file]:hover) { border-color: var(--p); background: var(--p3); }
input:where([type=file])::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; transition: background .15s; }
input:where([type=file])::file-selector-button:hover { background: var(--bg2); }
.fdrop { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 16px; border: 1.5px dashed var(--line2); border-radius: var(--r-md); background: var(--bg2); color: var(--ink); transition: border-color .15s, background .15s; text-transform: none; letter-spacing: 0; text-align: left; }
.fdrop:hover, .fdrop.is-over { border-color: var(--p); background: var(--p3); }
.fdrop.is-over { border-style: solid; }
.fdrop:focus-within { border-color: var(--p); box-shadow: var(--ring); }
.fdrop > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; margin: 0; border: 0; font-size: 0; }
.fdrop-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--pd); }
.fdrop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fdrop-txt b { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdrop-txt small { font-size: 12.5px; color: var(--ink3); font-weight: 500; }
.fdrop-link { color: var(--pd); text-decoration: underline; text-underline-offset: 3px; }
.fdrop.has-file { border-style: solid; border-color: var(--line); background: #fff; }
.fdrop.has-file .fdrop-ico { background: var(--ok-50); border-color: transparent; color: var(--ok); }
.fdrop.is-disabled { opacity: .55; pointer-events: none; }
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.check input { margin-top: .2rem; flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
.error-text { display: block; color: var(--bad); font-size: 13px; margin-top: 4px; }
.pw { display: flex; position: relative; }
.pw input { padding-right: 2.8rem; }
.pw-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: .3rem; opacity: .6; }
.pw-eye.is-on { opacity: 1; }
.pw-rules { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pw-rules span { padding: 2px 10px; border-radius: 99px; background: var(--bg2); color: var(--ink3); }
.pw-rules span.ok { background: var(--ok-50); color: var(--ok); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset.sub, .repeat-item, .block-compare { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0 0 14px; background: var(--card); }
legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.repeat-inline { display: flex; gap: 12px; align-items: flex-end; }
.repeat-inline .field { flex: 1; margin-bottom: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 180px; }

/* ——— Alertes, badges, étiquettes ——— */
.alert { border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; border: 1px solid; }
.alert ul { margin: 4px 0 0; padding-left: 1.2rem; }
.alert-success { background: var(--ok-50); border-color: oklch(.86 .06 155); color: oklch(.38 .09 155); }
.alert-danger { background: var(--bad-50); border-color: oklch(.86 .06 28); color: oklch(.42 .14 28); }
.alert-warning { background: var(--warn-50); border-color: oklch(.87 .07 80); color: oklch(.42 .09 70); }
.alert-info { background: var(--s2); border-color: oklch(.86 .06 290); color: var(--sd); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.badge-success { background: var(--ok-50); color: var(--ok); } .badge-danger { background: var(--bad-50); color: var(--bad); }
.badge-warning { background: var(--warn-50); color: var(--warn); } .badge-info { background: var(--s2); color: var(--sd); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin: 2px 3px; font-size: 13px; color: var(--ink2); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.tag.s-nouvelle { background: var(--s2); color: var(--sd); } .tag.s-a_preparer { background: var(--p3); color: var(--pd); }
.tag.s-dossier_pret { background: var(--p2); color: var(--pd); } .tag.s-envoyee { background: var(--ok-50); color: var(--ok); }
.tag.s-relancee { background: oklch(.95 .03 220); color: oklch(.45 .09 220); } .tag.s-entretien { background: var(--s2); color: var(--sd); }
.tag.s-acceptee { background: var(--ok-50); color: oklch(.4 .11 155); } .tag.s-refusee { background: var(--bad-50); color: var(--bad); } .tag.s-archivee { background: var(--bg2); color: var(--ink3); }
.score { display: inline-block; min-width: 2.4rem; text-align: center; padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; background: var(--bg2); color: var(--ink3); }
.score-hi { background: var(--p2); color: var(--pd); } .score-mid { background: var(--s2); color: var(--sd); } .score-lo { background: var(--bg2); color: var(--ink3); }
.conf { font-weight: 700; } .conf-hi { color: var(--ok); } .conf-mid { color: var(--warn); } .conf-lo { color: var(--bad); }

/* ——— Offres ——— */
.cards-list { display: grid; gap: 10px; }
.offer-card { display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; color: var(--ink); box-shadow: var(--sh); }
.offer-card:hover { border-color: var(--p); color: var(--ink); }
.offer-card.is-out { opacity: .72; }
.offer-top { display: flex; gap: 10px; align-items: center; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reasons { margin: 0 0 12px; padding-left: 1.2rem; } .reasons.bad li { color: var(--bad); }
.pre { white-space: pre-wrap; } .scroll { max-height: 420px; overflow: auto; }
pre.pre { font-family: var(--font); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; overflow: auto; }

/* ——— Onglets locaux ——— */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tab { padding: 8px 14px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 600; font-size: 14px; color: var(--ink2); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--bg2); }
.tab.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ——— Kanban (page Candidatures) ——— */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kcol { background: var(--bg2); border-radius: var(--r-md); padding: 10px; min-height: 220px; }
.kcol.is-over { outline: 2px dashed var(--p); }
.kcol-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin: 2px 4px 10px; }
.count { font-size: 12px; color: var(--ink3); }
.kcol-body { display: grid; gap: 8px; }
.kcard { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--ink); cursor: grab; box-shadow: var(--sh); }
.kcard:hover { border-color: var(--p); color: var(--ink); }
.kcard.is-dragging { opacity: .5; }
.kcard-title { font-weight: 700; font-size: 13px; }

/* ——— Fiche candidature ——— */
.steps-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.steps-bar a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink3); font-weight: 600; font-size: 14px; }
.steps-bar a.done { border-color: var(--p2); color: var(--pd); background: var(--p3); }
.files { padding-left: 1.2rem; }
.block-compare .orig { background: var(--bg); border: 1px dashed var(--line2); border-radius: 10px; padding: 8px; margin-bottom: 8px; color: var(--ink3); }
.timeline { list-style: none; padding: 0; margin: 0; max-height: 460px; overflow: auto; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 10px 12px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { position: relative; width: 200px; height: 26px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--p); }
.progress b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.onboarding .steps { margin: 0; padding-left: 1.2rem; } .onboarding li { margin: 6px 0; } .onboarding li.done { color: var(--ink3); text-decoration: line-through; }
.block-pick { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.block-pick:hover { border-color: var(--p); }
.block-pick.is-var { background: var(--bg); cursor: default; }
.block-pick .para { display: block; }
.tpl-neutral { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; color: var(--ink3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.prose p, .prose li { max-width: 75ch; color: var(--ink2); }
.prose h2 { margin-top: 1.4em; }
.error-code { font-size: 64px; font-weight: 800; color: var(--pd); margin: 0; letter-spacing: -.04em; }
.debug { text-align: left; white-space: pre-wrap; font-size: 12px; background: var(--bg); padding: 12px; border-radius: 12px; }
.guide h3 { margin-top: 18px; }
.guide ol, .guide ul { padding-left: 1.2rem; color: var(--ink2); }
.guide li { margin: 6px 0; }
.guide .q { color: var(--ink); font-weight: 600; }

/* ——— Pages publiques (connexion, inscription, légal) ——— */
.auth-wrap { max-width: 980px; margin: 0 auto; padding: 48px 20px 32px; }
.auth-card { max-width: 460px; margin: 0 auto 20px; }
.auth-card-wide { max-width: 680px; margin: 0 auto 20px; }
.auth-foot { margin-top: 16px; }
.brand-lg { display: none; }

/* ——— Accueil ——— */
.hero { padding: 72px 32px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; align-items: end; }
.hero-txt { display: flex; flex-direction: column; gap: 22px; }
.hero h1, .hero-list h1, .h-display { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.hero h1 em { font-style: normal; color: var(--p); }
.hero .cta { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-map { grid-column: 1 / -1; aspect-ratio: 21 / 8; overflow: hidden; position: relative; padding: 0; margin: 0; }
.hero-map > div { position: absolute; inset: 0; }
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg2); }
.sec h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.sec-h { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 640px; }
.sec-h h2, .sec-h p { margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.step b { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.step h3 { margin: 0; }
.step p { color: var(--ink2); line-height: 1.5; font-size: 15px; margin: 0; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; }
.tool { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.tool i { width: 10px; height: 10px; border-radius: 50%; background: var(--s); }
.price { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 820px; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.plan h3 { margin: 0; }
.plan .amt { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan .amt small { font-size: 15px; color: var(--ink3); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink2); font-size: 15px; line-height: 1.4; margin: 0; padding: 0; }
.plan li::before { content: "✓"; color: var(--pd); font-weight: 800; margin-right: 10px; }
.plan li .soon { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #ffffff1f; margin-left: 6px; white-space: nowrap; }
.plan .btn { margin-top: auto; }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.pro ul, .plan.pro .amt small { color: #ffffffb8; }
.plan.pro li::before { color: var(--p); }
.site-foot { padding: 40px 0; color: var(--ink3); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.site-foot a { color: var(--ink3); } .site-foot a:hover { color: var(--ink); }

.hero-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 72px 32px 64px; }
.hero-list .hero-txt { gap: 28px; }
.hero-list h1 em { font-style: normal; color: var(--p); }
.hero-list .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-list .hero-map { aspect-ratio: 4 / 3; background: var(--bg2); border: 0; box-shadow: none; grid-column: auto; }
.seg { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 999px; background: var(--bg2); }
.seg button { border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #0000001a; }
.seg-note { font-size: 14px; color: var(--ink3); margin: -14px 0 0; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--ink2); margin: 0; padding: 0; }
.ticks li { display: flex; gap: 14px; align-items: center; }
.ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--p2); color: var(--pd); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* ——— Carte (accueil et recherche) ——— */
.country { fill: var(--country); stroke: #fff; stroke-width: .6; transition: fill .3s; }
.country.hot { fill: var(--country-hot); }
.bub circle { fill: var(--p); stroke: #fff; stroke-width: 2; opacity: .92; cursor: pointer; transition: r .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.bub:hover circle { fill: var(--s); }
.bub text { font-family: var(--font); font-weight: 800; fill: #fff; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.bub.big circle { fill: var(--ink); }
.bub.big text { fill: #fff; }
.bub.deco circle { cursor: default; }
.search { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--nav-h)); min-height: 640px; }
.filters { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; overflow: auto; background: var(--card); }
.fgroup { display: flex; flex-direction: column; gap: 8px; }
.fgroup > label, .fgroup > .lbl { font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink2); background: var(--bg); cursor: pointer; }
.fchip:hover { border-color: var(--p); }
.fchip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; }
.range output { font-weight: 700; font-size: 14px; min-width: 64px; text-align: right; }
.total { padding: 20px; border-radius: var(--r); background: var(--bg2); }
.total .n { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.total p { color: var(--ink2); font-size: 13px; margin: 6px 0 0; }
.mapwrap { position: relative; overflow: hidden; background: var(--bg); }
.mapwrap svg, .hero-map svg { width: 100%; height: 100%; display: block; }
.mapwrap svg { cursor: grab; }
.mapwrap svg:active { cursor: grabbing; }
.mapbar { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.mapbar > * { pointer-events: auto; }
.where { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-pop); font-size: 14px; font-weight: 600; }
.where select { font: inherit; border: 0; background: var(--bg2); border-radius: 999px; padding: 7px 12px; font-weight: 600; color: var(--ink); width: auto; }
.where select:focus { box-shadow: var(--ring); }
.reset { margin-left: auto; }
.offers { position: absolute; right: 18px; bottom: 18px; width: 340px; max-height: 60%; display: flex; flex-direction: column; overflow: hidden; padding: 0; margin: 0; }
.offers header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.offers ul { list-style: none; overflow: auto; margin: 0; padding: 0; }
.offers li { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.offers li:last-child { border-bottom: 0; }
.offers li b { font-size: 14px; }
.offers li span { font-size: 12px; color: var(--ink3); }
.offers li p { font-size: 13px; color: var(--ink2); margin: 0; }
.offers .act { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.offers .act form { margin: 0; }
.mini { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--p2); color: var(--pd); border: 0; cursor: pointer; }
.mini:hover { background: var(--pd); color: #fff; }
.mini.s { background: var(--s2); color: var(--sd); }
.mini.s:hover { background: var(--sd); color: #fff; }
.legend { position: absolute; left: 18px; bottom: 18px; font-size: 12px; color: var(--ink3); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--p); margin-right: 6px; }
.map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 360px; text-align: center; padding: 20px 24px; margin: 0; }

/* ——— Tableau de bord ——— */
.dash-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-top h1 { font-size: 28px; margin: 0; }
.dash-top p { color: var(--ink2); margin: 4px 0 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cols .card { margin: 0; }
.mk { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mk h4 { font-size: 12px; color: var(--ink3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; display: flex; justify-content: space-between; }
.mk-card { padding: 12px 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); }
.mk-card:hover { color: var(--ink); border-color: var(--p); }
.mk-card b { font-size: 13px; }
.mk-card span { font-size: 12px; color: var(--ink3); }
.mk-card .sc { align-self: flex-start; margin-top: 4px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--p2); color: var(--pd); font-weight: 700; }
.mk-empty { font-size: 12px; color: var(--ink3); padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 16px; }
.panel { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { margin: 0; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prow p { font-size: 13px; color: var(--ink2); margin: 0; }
.sw { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; border: 0; padding: 0; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: left .2s; }
.sw.on { background: var(--p); }
.sw.on::after { left: 21px; }
.sw:disabled { cursor: not-allowed; opacity: .6; }
.conn { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.conn:last-child { border: 0; }
.conn .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink2); flex: none; }
.conn b { font-size: 14px; display: block; }
.conn small { color: var(--ink3); font-size: 12px; }
.conn .st { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--pd); white-space: nowrap; }
.conn .st.off { color: var(--ink3); }
.mail { display: flex; flex-direction: column; gap: 8px; }
.mail .m { padding: 12px 14px; border-radius: 14px; background: var(--bg2); font-size: 13px; line-height: 1.45; }
.mail .m b { display: block; font-size: 12px; color: var(--ink3); font-weight: 600; margin-bottom: 4px; }
.mail .m.ai { background: var(--p3); border: 1px solid var(--p2); }

/* ——— Fenêtre de confirmation ——— */
.modal { position: fixed; inset: 0; background: #0d0c2273; display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: #fff; border-radius: var(--r); padding: 24px; max-width: 480px; width: 100%; box-shadow: var(--sh-pop); }
.modal-box .actions { justify-content: flex-end; margin-top: 16px; }

/* ——— Responsive ——— */
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } .mf-nav { gap: 14px; } .mf-tabs { margin-left: 0; } .mf-nav .btn { padding: 9px 12px !important; font-size: 13px; } }
@media (max-width: 900px) {
  :root { --nav-h: 57px; }
  .mf-nav { gap: 12px; padding: 12px 16px; flex-wrap: wrap; height: auto; }
  .mf-tabs { order: 5; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .wrap { padding: 0 20px; }
  .search, .cols { grid-template-columns: 1fr; }
  .search { height: auto; }
  .mapwrap { height: 70vh; }
  .offers { position: static; width: auto; max-height: none; border-radius: 0; }
  .filters { border-right: 0; border-bottom: 1px solid var(--line); }
  .content { padding: 20px 16px 40px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 20px 32px; }
  .hero-list { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 32px; }
  .mf-nav .nav-cta { display: none; }
  .sec { padding: 64px 0; }
  .foot { padding: 16px; }
}
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .mf-nav .nav-login { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-map { aspect-ratio: 4 / 3; }
  .card { padding: 18px; }
  .repeat-inline { flex-direction: column; align-items: stretch; }
  .progress { width: 100%; }
  .kanban { grid-auto-columns: 82%; }
  .mk, .kpis, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: 1fr; }
  .mapbar .reset { margin-left: 0; }
}
@media (max-width: 420px) { .mf-nav .nav-cta { padding: 9px 12px; font-size: 13px; } .lang { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ═════════ Espace candidat — écrans charte D (candidatures, profil, modèles, crédits, connexion, design system) ═════════ */
.mt-s { margin-top: 10px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hint { font-size: 13px; color: var(--ink3); margin: 0; }
.h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--ink); }
.h1-like { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.btn-soft { background: var(--bg2); border-color: var(--bg2); }
.btn-soft:hover { background: var(--line); border-color: var(--line); }
.btn-grow { flex: 1 1 auto; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 20px; }
.card-flush .table th:last-child, .card-flush .table td:last-child { padding-right: 20px; }
.card-flush .table tr:last-child td { border-bottom: 0; }
.sc { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--p2); color: var(--pd); font-weight: 700; white-space: nowrap; }
.tag.tag-acc { background: var(--p2); color: var(--pd); }
.tag.tag-g { background: var(--bg2); color: var(--ink3); }
.tag.tag-ok { background: var(--ok-50); color: var(--ok); }
.avatar { overflow: hidden; }
.avatar img, .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seg-sm a { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink3); border: 1px solid transparent; }
.seg-sm a:hover { color: var(--ink); }
.seg-sm a.is-on { background: #fff; color: var(--ink); border-color: var(--line); }
.chips-bar { margin: -8px 0 18px; }
/* Œil des mots de passe : icône vectorielle (le texte éventuel du bouton est masqué) */
.pw-eye { font-size: 0; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: var(--ink); border-radius: 999px; }
.pw-eye::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M1.5 12S5.5 5 12 5s10.5 7 10.5 7-4 7-10.5 7S1.5 12 1.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M1.5 12S5.5 5 12 5s10.5 7 10.5 7-4 7-10.5 7S1.5 12 1.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.pw-eye.is-on { background: var(--bg2); }

/* ——— Candidatures : kanban 5 colonnes ——— */
.kanban.k5 { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(180px, 1fr)); grid-auto-columns: auto; align-items: start; }
.kgroup { background: var(--bg2); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 260px; }
.kgroup > .kcol-head { margin: 4px 6px 2px; }
.kgroup .kcol { background: transparent; padding: 0; min-height: 200px; border-radius: 12px; }
.kgroup.is-split .kcol { min-height: 110px; padding: 6px; border: 1px dashed var(--line2); }
.kgroup .kcol.is-over { outline: 2px dashed var(--p); outline-offset: 2px; background: var(--p3); }
.kcol-sub { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; }
.kcard-title { display: block; line-height: 1.3; }
.kcard-sub { font-size: 12px; color: var(--ink3); }
.kcard-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.kcard-meta small { font-size: 11px; color: var(--ink3); }
.kcard-meta .tag { font-size: 11px; padding: 2px 8px; }
.ready-bar { position: sticky; bottom: 12px; z-index: 6; margin: 20px 0 0; border-color: var(--ink); }
.ready-bar .prow { flex-wrap: wrap; align-items: center; }
.ready-bar h3 { margin: 10px 0 4px; }

/* ——— Profil : en-tête, menu latéral, sections ——— */
.shell-h { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.shell-h-txt { flex: 1 1 280px; min-width: 0; }
.shell-h p { color: var(--ink2); font-size: 14px; margin: 4px 0 0; }
.av { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; overflow: hidden; }
.crumb { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.crumb span { color: var(--ink3); font-weight: 400; margin: 0 10px; }
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.smenu { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--nav-h) + 16px); }
.smenu a { padding: 8px 10px; border-radius: 10px; font-size: 15px; color: var(--ink2); }
.smenu a:hover { background: var(--bg2); color: var(--ink); }
.smenu a.is-on { font-weight: 700; color: var(--ink); }
.sstack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sstack > .card, .sstack > form > .card { margin: 0; }
.sect { padding: 28px; display: flex; flex-direction: column; gap: 18px; margin: 0 0 20px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.sect > .h4, .sect > summary { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sect > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary .h4::after { content: "+"; float: right; color: var(--ink3); font-weight: 600; }
.sect[open] > summary .h4::after { content: "–"; }
details.sect:not([open]) > summary { padding-bottom: 0; border-bottom: 0; }
.sect .field, .sect .check { margin: 0; }
.sect .field > span:first-child { font-size: 14px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.sect .grid2, .sect .grid3 { gap: 16px; }
.sect .form { display: flex; flex-direction: column; gap: 16px; }
.sect .repeat-inline { margin-bottom: 10px; }
.count-hint { float: right; font-size: 11px; color: var(--ink3); font-family: var(--mono); font-weight: 500; }
.field .hint { display: block; margin-top: 6px; }
.field-link { float: right; font-size: 12px; font-weight: 600; }
.f2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.check-pad { align-self: end; padding-bottom: 10px; }
.sect-actions { justify-content: flex-end; }
.drop { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.drop-txt { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dz { width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--line2); display: grid; place-items: center; font-size: 11px; line-height: 1.35; text-align: center; color: var(--ink3); cursor: pointer; overflow: hidden; position: relative; flex: none; background: #fff; transition: border-color .2s, background .2s; }
.dz:hover, .dz.is-over { border-color: var(--p); background: var(--p3); }
.dz:focus-within { box-shadow: var(--ring); }
.dz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dz input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.dz.is-busy::after { content: ""; position: absolute; inset: 0; background: #ffffffa6; }
.dz-sm { width: 64px; height: 64px; font-size: 9px; }
.opt { padding: 18px 20px; border-radius: var(--r); background: var(--bg2); display: flex; gap: 14px; align-items: center; }
.opt .n { font-size: 28px; font-weight: 800; color: var(--p); min-width: 56px; letter-spacing: -.02em; flex: none; }
.opt b { display: block; font-size: 14px; }
.opt p { font-size: 13px; color: var(--ink2); margin: 2px 0 0; }
.xp-list { display: flex; flex-direction: column; }
.xp, .repeat-item.xp { display: flex; gap: 16px; padding: 16px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; align-items: flex-start; }
.xp:last-child { border-bottom: 0; }
.xp .lg { width: 44px; height: 44px; border-radius: 12px; background: var(--bg2); display: grid; place-items: center; font-weight: 800; color: var(--ink2); flex: none; }
.xp-body { flex: 1; min-width: 0; }
.xp-body > summary { cursor: pointer; list-style: none; }
.xp-body > summary::-webkit-details-marker { display: none; }
.xp-body b { font-size: 15px; display: block; color: var(--ink); }
.xp-body > span, .xp-body > summary > span { display: block; font-size: 13px; color: var(--ink3); }
.xp-body > p, .xp-body > summary > p { font-size: 14px; color: var(--ink2); margin: 6px 0 0; line-height: 1.5; }
.xp-body[open] > summary > p { display: none; }
.xp > .tag { margin-left: auto; flex: none; }
.xp-edit { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.xp-edit > .btn { align-self: flex-start; }
.sect > .btn[data-repeat-add] { align-self: flex-start; }

/* ——— Modèles de CV : galerie + aperçu ——— */
.tplwrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin-bottom: 24px; }
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tpl { padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; margin: 0; text-align: left; font: inherit; color: var(--ink); transition: border-color .2s; }
.tpl:hover { border-color: var(--ink3); }
.tpl.is-on { border-color: var(--p); outline: 3px solid var(--p2); }
.tpl .th { aspect-ratio: 3 / 4; border-radius: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; position: relative; display: block; margin-bottom: 2px; }
.tpl b { font-size: 13px; }
.tpl small { font-size: 11px; color: var(--ink3); }
.mini-cv { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
.mini-cv > span { display: block; padding: 12% 10%; min-width: 0; }
.mini-cv i { display: block; background: var(--line); border-radius: 2px; height: 4px; margin-bottom: 7px; }
.mini-cv i.h { height: 8px; width: 70%; background: var(--ink); }
.mini-cv i.acc { width: 40%; background: var(--p); }
.mini-cv .mc-side { display: none; }
.mini-contraste { grid-template-columns: 36% 1fr; }
.mini-contraste .mc-side { display: block; order: -1; background: var(--ink); }
.mini-contraste .mc-side i { background: #ffffff40; }
.mini-editorial { grid-template-columns: 1fr 34%; }
.mini-editorial .mc-side { display: block; background: var(--bg2); }
.mini-editorial i.h { height: 12px; width: 85%; }
.mini-bandeau .mc-main { padding-top: 0; }
.mini-bandeau i.h { height: 26px; width: auto; margin: 0 -12% 12%; border-radius: 0; background: var(--p); }
.mini-bandeau i.acc { background: var(--ink); }
.mini-centre i { margin-left: auto; margin-right: auto; }
.mini-serif i.h { background: var(--ink2); height: 9px; width: 60%; }
.mini-serif i.acc { background: var(--ink3); }
.tpl-preview { position: sticky; top: calc(var(--nav-h) + 16px); margin: 0; }
.cv { aspect-ratio: 1 / 1.3; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 9px; line-height: 1.4; color: var(--ink2); display: grid; grid-template-columns: 1fr; align-content: start; }
.cv h5 { font-size: 16px; color: var(--ink); letter-spacing: -.02em; font-weight: 800; margin: 0 0 2px; line-height: 1.15; }
.cv h6 { font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 10px 0 4px; font-weight: 800; }
.cv p { margin: 0 0 3px; overflow-wrap: anywhere; }
.cv .cv-job { color: var(--pd); font-weight: 700; }
.cv .cv-todo { color: var(--ink3); font-style: italic; }
.cv .sb { background: var(--bg2); padding: 14px; min-width: 0; }
.cv .bd { padding: 14px; min-width: 0; }
.cv-classique h6 { border-bottom: 1px solid var(--p); padding-bottom: 2px; }
.cv-contraste, .cv-editorial { grid-template-rows: 100%; }
.cv-contraste { grid-template-columns: 36% 1fr; }
.cv-contraste .sb { background: var(--ink); color: #ffffffcc; }
.cv-contraste .sb h6 { color: var(--p); }
.cv-contraste h5, .cv-contraste .sb .cv-job { color: #fff; }
.cv-bandeau .top { background: var(--p); color: #fff; padding: 14px; }
.cv-bandeau .top h5, .cv-bandeau .top p, .cv-bandeau .top .cv-job { color: #fff; }
.cv-editorial { grid-template-columns: 1fr 34%; }
.cv-editorial .sb { border-left: 1px solid var(--line); background: #fff; }
.cv-editorial h5 { font-size: 20px; }
.cv-centre .bd { text-align: center; }
.cv-centre h5 { font-size: 18px; }
.cv-centre h6 { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.cv-serif .bd { padding: 14px 18px; }
.cv-serif h5 { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 600; }
.cv-serif h6 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .04em; text-transform: none; font-size: 10px; font-weight: 600; }

/* ——— Crédits & Pro ——— */
.pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.pay > .card { margin: 0; }
.plan-note { margin: 0; opacity: .75; }
.billing-col { min-width: 0; }
.billing-col > .billing { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.billing-col > .billing .small { opacity: 1 !important; color: var(--ink2); }
.billing-col > .card { margin-bottom: 0; }
.kpi span a { color: var(--pd); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); font-weight: 700; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td:last-child, .tbl th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .neg { color: var(--ink); font-weight: 600; }
.tbl .pos { color: var(--ok); font-weight: 700; }

/* ——— Connexion, inscription, accueil : mise en page « split » ——— */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: calc(100vh - var(--nav-h)); }
.auth-fm { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 32px; min-width: 0; }
.auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth-box-wide { max-width: 520px; }
.auth-box .auth-card, .auth-box .card.auth-card { border: 0; padding: 0; margin: 0; max-width: none; background: none; }
.auth-box .alert { margin: 0; }
.auth-box .form .field { margin-bottom: 14px; }
.auth-box > p, .auth-box .form > p { margin: 0; }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.auth-head h1 { margin: 0; }
.auth-head .sub { color: var(--ink2); font-size: 15px; margin: 0; }
.auth-box .field > span:first-child { font-size: 14px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.actions > .seg { align-self: center; }
.logo-only i { width: 44px; height: 44px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-vis { background: repeating-linear-gradient(135deg, var(--bg2) 0 14px, #fff 14px 28px); display: grid; place-items: center; padding: 48px 32px; border-left: 1px solid var(--line); }
.auth-vis-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.auth-vis-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.auth-vis-title em { font-style: normal; color: var(--p); }
.auth-vis .ticks { font-size: 15px; gap: 10px; }
.auth-vis .mk-card { margin: 0; }
.radios { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.radio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 15px; position: relative; background: #fff; }
.radio:hover { border-color: var(--ink3); }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.radio i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; background: #fff; }
.radio:has(input:checked) { border-color: var(--ink); }
.radio input:checked + i { border-color: var(--p); background: var(--p); box-shadow: inset 0 0 0 3px #fff; }
.radio input:focus-visible + i { box-shadow: inset 0 0 0 3px #fff, var(--ring); }
.onb-form { display: flex; flex-direction: column; gap: 10px; }
.onb { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow: auto; }
.onb .auth-split { min-height: 100%; }
body:has(.onb) { overflow: hidden; }

/* ——— Design system ——— */
.dsg { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.swatch { height: 84px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 8px; color: var(--ink); }
.swatch code { background: none; border: 0; padding: 0; font-size: 11px; color: inherit; }
.swatch small { font-family: var(--mono); font-size: 10px; opacity: .8; }
.swatch.is-dark { color: #fff; }
.ds-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.type-s { display: flex; flex-direction: column; gap: 12px; }
.type-s > div { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.type-s small { font-family: var(--mono); color: var(--ink3); font-size: 11px; min-width: 170px; }
.type-s p { margin: 0; }
.ds-rules { padding-left: 18px; color: var(--ink2); line-height: 1.7; margin: 0; }

@media (max-width: 1200px) { .kanban.k5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); } }
@media (max-width: 1100px) { .tplwrap { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 900px) {
  .settings, .tplwrap, .auth-split { grid-template-columns: 1fr; }
  .smenu { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 2px; }
  .smenu a { white-space: nowrap; background: var(--bg2); border-radius: 999px; font-size: 14px; padding: 8px 14px; }
  .smenu a.is-on { background: var(--ink); color: #fff; }
  .tpl-preview { position: static; }
  .auth-vis { display: none; }
  .auth-fm { padding: 32px 16px 40px; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sect { padding: 20px 18px; }
  .kanban.k5 { grid-auto-columns: 82%; }
  .crumb { font-size: 20px; }
  .crumb span { margin: 0 6px; }
  .shell-h .progress { width: 100%; }
  .ready-bar { bottom: 8px; }
  .ready-bar .actions { width: 100%; }
  .ready-bar .actions .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp, .repeat-item.xp { gap: 12px; }
  .xp .lg { width: 36px; height: 36px; border-radius: 10px; }
  .page-head .actions { width: 100%; }
  .opt { align-items: flex-start; }
  .opt .n { font-size: 24px; min-width: 0; }
}

/* ═════════ Responsive : correctifs transverses (audit 360 → 1440 px) ═════════ */
/* Listes d'offres : les badges longs (« Hors critères : … ») passent à la ligne au lieu d'élargir la carte */
.cards-list { grid-template-columns: minmax(0, 1fr); }
.offer-card { min-width: 0; }
.offer-top strong { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .offer-tags .badge { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
  /* Lignes « texte + action » : l'action passe dessous plutôt que de déborder */
  .prow { flex-wrap: wrap; }
  .prow > div { flex: 1 1 220px; min-width: 0; }
  .prow > form, .prow > form .btn { max-width: 100%; }
  .prow > form .btn { white-space: normal; }
}
/* Barre publique sur téléphone : « Connexion » reste accessible ; les 6 langues (aussi dans le pied de page)
   ne prennent plus une ligne entière de l'en-tête */
@media (max-width: 640px) {
  .mf-nav .nav-login { display: inline-flex; }
  .mf-nav .seo-langs.is-compact { order: 6; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mf-nav .seo-langs.is-compact ul { flex-wrap: nowrap; }
  body:has(.seo-foot .seo-langs) .mf-nav .seo-langs.is-compact { display: none; }
  .mf-tabs a { padding: 10px 14px; }
}
/* Cibles tactiles (≥ 44 px) : on agrandit la zone cliquable sans déplacer la mise en page (padding + marge négative) */
@media (max-width: 899.98px) {
  .back { padding: 12px 0; margin: -12px 0 -6px; }
  .foot a, .site-foot a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .cd-details > summary, .cd-compare > summary, .xp-body > summary, details > summary.h3, .mc-src > summary, .mc-alt > summary { padding-block: 11px; margin-block: -11px; }
  .prow > a.small, .wb-cta, .kpi span a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  input:where([type=range]) { height: 36px; }
  .tb-logo { padding: 7px; margin: -7px; }
}
@media (max-width: 640px) {
  /* Zones de dépôt : le libellé passe à la ligne au lieu d'être tronqué (« Glissez votre fichier ici ou parc… ») */
  .fdrop-txt b { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
}
