/* Animo etc · Portail commandes. Tokens from the Figma file (franchises.animoetc.com branding). */
:root {
  --red: #ed1c2a; --red-dark: #c8101d; --ink: #1f2124; --cream: #faf9f5; --peach: #fee9df; --coral: #e69a8c;
  --white: #fff; --line: #e8e3da; --muted: #6e6a64;
  --amber-bg: #fff1d6; --amber: #9a6200; --blue-bg: #e3eefb; --blue: #1f5fa8; --green-bg: #e2f3e8; --green: #257a45;
  --grey-bg: #eeece8; --purple-bg: #efe8fb; --purple: #6b3fb0; --red-bg: #fde4e2;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; font-size: 14px; color: var(--ink); background: var(--cream); line-height: 1.45; }
h1 { font-size: 30px; margin: 0; line-height: 1.2; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
a { color: var(--red); }
p { margin: 0 0 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .small { font-size: 12px; } .strong { font-weight: 600; } .medium { font-weight: 500; }
.c-red { color: var(--red); } .c-blue { color: var(--blue); } .c-green { color: var(--green); } .c-purple { color: var(--purple); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.inline { display: inline; margin: 0; }

/* Header */
.topbar { background: var(--ink); border-bottom: 4px solid var(--red); color: var(--white); display: flex; justify-content: space-between; align-items: center; padding: 14px 48px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.logo img { display: block; height: auto; }
.sep { width: 1px; height: 26px; background: rgba(255,255,255,.35); }
.app-name { font-weight: 500; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--red); border-radius: 20px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.link-light { background: none; border: 0; color: var(--white); font: inherit; font-weight: 500; cursor: pointer; padding: 0; }

/* Layout */
.page { max-width: 1440px; margin: 0 auto; padding: 32px 48px 64px; display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.title-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.back { font-weight: 600; font-size: 13px; text-decoration: none; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; padding: 11px 24px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-primary { background: var(--red); color: var(--white); } .btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.field input, .field textarea, .select-pill select, .search input {
  font: inherit; font-weight: 400; font-size: 14px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, select:focus, .search input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.inline-field { flex-direction: row; align-items: center; gap: 10px; }
.inline-field input { width: 200px; }
fieldset.tracking { border: 0; background: var(--cream); border-radius: 12px; padding: 16px; margin: 0; }
fieldset.tracking legend { font-weight: 600; float: left; width: 100%; margin-bottom: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; clear: both; margin-bottom: 8px; }
.tag { background: var(--white); color: var(--muted); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

/* Flash */
.flash { border-radius: 12px; padding: 14px 18px; font-weight: 500; }
.flash-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.flash-error { background: var(--red-bg); color: #b3261e; border: 1px solid #b3261e; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 3px 11px 3px 9px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-nouvelle { background: var(--grey-bg); color: var(--ink); }
.s-prete_cueillette, .s-prete_expedition { background: var(--blue-bg); color: var(--blue); }
.s-en_route { background: var(--purple-bg); color: var(--purple); }
.s-livree, .s-ramassee { background: var(--green-bg); color: var(--green); }
.s-annulation_demandee { background: var(--amber-bg); color: var(--amber); }
.s-annulee { background: var(--red); color: var(--white); }

/* List */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat strong { font-size: 30px; line-height: 1.1; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 13px; }
.tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 600; }
.search input { width: 280px; border-radius: 20px; padding: 9px 16px; }
.select-pill select { border-radius: 20px; padding: 9px 14px; font-weight: 600; font-size: 13px; border-color: var(--ink); width: auto; }
.table { padding: 0; overflow: hidden; }
.tr { display: grid; grid-template-columns: 110px 160px 1.3fr 1.1fr 130px 110px 200px 20px; gap: 12px 20px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tr.net { grid-template-columns: 100px 140px 150px 1.2fr 1fr 120px 100px 190px 20px; }
a.tr:hover { background: var(--cream); }
.th { background: var(--peach); border-top: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 13px 24px; }
.chev { color: var(--muted); font-size: 20px; }
.pager { display: flex; justify-content: flex-end; }
.empty { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 24px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.items img, .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: var(--peach); flex: none; }
.items .grow { flex: 1; display: flex; flex-direction: column; }
.qty { color: var(--ink); font-weight: 500; width: 40px; }
.items .num { width: 90px; }
.totals { margin: 14px 0 0 auto; max-width: 300px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.totals dt, .totals dd { margin: 0; } .totals dd { color: var(--ink); font-weight: 500; }
.totals .grand { color: var(--ink); font-weight: 700; font-size: 16px; padding-top: 8px; }
.note { background: var(--peach); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.note p { margin: 4px 0 0; white-space: pre-wrap; }
.note-alert { background: var(--amber-bg); border-left: 4px solid var(--amber); }
.card-problem { border-color: var(--coral); }
.card-problem summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.card-problem summary::-webkit-details-marker { display: none; }
.card-problem details[open] summary .btn { display: none; }
.info { background: var(--peach); border-radius: 12px; padding: 12px 14px; margin: 0; }
.kv, .kv-row { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kv dt { font-size: 12px; color: var(--muted); font-weight: 500; } .kv dd { margin: 2px 0 0; }
.kv-row div { display: flex; justify-content: space-between; } .kv-row dt { color: var(--muted); } .kv-row dd { margin: 0; font-weight: 500; }
.expected { background: var(--cream); border-radius: 12px; padding: 14px 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.expected .big { font-size: 20px; }
.tracking-box { background: var(--cream); border-radius: 12px; padding: 12px 16px; margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; flex-direction: column; padding-left: 20px; position: relative; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* Login */
.login-body { display: grid; grid-template-columns: 620px 1fr; min-height: 100vh; }
.login-brand { background: var(--ink); color: var(--white); padding: 80px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.login-brand h1 { font-size: 34px; } .login-brand p { font-size: 16px; max-width: 440px; }
.brand-bar { width: 64px; height: 4px; border-radius: 2px; background: var(--red); }
.login-panel { display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; padding: 40px; box-shadow: 0 12px 32px rgba(31,33,36,.08); }
.login-card h2 { font-size: 28px; margin: 0; }

/* Tablet and phone */

/* ---------------------------------------------------------------- Navigation + reports */
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 14px; border-radius: 18px; }
.mainnav a:hover { background: rgba(255,255,255,.12); }
.mainnav a.active { background: var(--white); color: var(--ink); font-weight: 600; }
.report-filters { display: flex; flex-direction: column; gap: 16px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets .tab { cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; }
.filter-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.filter-row .field input { width: 170px; }
.store-picker { position: relative; }
.store-picker summary { list-style: none; cursor: pointer; }
.store-picker summary::-webkit-details-marker { display: none; }
.picker-btn { display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 220px; font-weight: 500; background: var(--white); }
.picker-btn::after { content: '▾'; float: right; color: var(--muted); }
.picker-list { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(31,33,36,.12); padding: 10px 14px; max-height: 360px; overflow: auto; min-width: 280px; display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.stats-5 { grid-template-columns: repeat(5, 1fr); }
.stat em { font-style: normal; }
.report-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th { text-align: left; background: var(--peach); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; white-space: nowrap; }
.rtable td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.rtable th.num, .rtable td.num { text-align: right; }
.rtable a { color: var(--ink); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* ---------------------------------------------------------------- Shipping labels */
.label-grid { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: end; clear: both; }
.label-grid p { margin: 0 0 10px; }
.warn { background: var(--amber-bg); color: var(--ink); border-left: 4px solid var(--amber); border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }
.box-dims, .manual { margin-top: 12px; }
.box-dims summary, .manual summary { cursor: pointer; color: var(--ink); }
.box-dims .row3 { margin-top: 10px; }
.manual { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.print-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pending { display: flex; gap: 14px; align-items: center; background: var(--blue-bg); border-radius: 12px; padding: 14px 16px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue); border-right-color: transparent; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
/* ---------------------------------------------------------------- Centre d’aide (help center) */
main.hc { display: block; padding: 0 0 64px; }
.hc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.hc .flash { max-width: 1200px; margin: 24px auto 0; }
.hc-hero { background: var(--peach); padding: 56px 32px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.hc-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.hc-hero h1 { font-size: 38px; letter-spacing: -.01em; }
.hc-search { position: relative; display: flex; gap: 10px; width: 100%; max-width: 680px; }
.hc-search input { flex: 1; min-width: 0; height: 56px; border: 1.5px solid var(--line); border-radius: 28px; padding: 0 20px 0 52px; font: inherit; font-size: 16px; background: var(--white); box-shadow: 0 6px 20px rgba(31,33,36,.06); }
.hc-search input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.hc-search .btn { height: 56px; border-radius: 28px; padding: 0 28px; }
.hc-search-icon { position: absolute; left: 20px; top: 18px; color: var(--muted); pointer-events: none; }
.hc-search-compact { margin-bottom: 20px; }
.hc-search-compact input { height: 42px; border-radius: 21px; font-size: 14px; padding-left: 42px; box-shadow: none; }
.hc-search-compact .hc-search-icon { left: 14px; top: 11px; }
.hc-guides { display: flex; gap: 6px; background: var(--white); border-radius: 22px; padding: 4px; border: 1px solid var(--line); }
.hc-guides a { padding: 6px 14px; border-radius: 18px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.hc-guides a.active { background: var(--ink); color: var(--white); font-weight: 600; }
.hc-section-title { font-size: 22px; margin: 48px 0 20px; }
.hc-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hc-topic { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, border-color .15s; }
.hc-topic:hover { border-color: var(--coral); box-shadow: 0 8px 24px rgba(31,33,36,.07); }
.hc-topic-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--peach); color: var(--red); display: grid; place-items: center; flex: none; }
.hc-topic h3 { font-size: 17px; margin: 6px 0 0; }
.hc-topic h3 a { color: var(--ink); text-decoration: none; }
.hc-topic h3 a:hover { color: var(--red); }
.hc-topic p { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.hc-topic ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hc-topic li a { color: var(--ink); font-size: 14px; text-decoration: none; }
.hc-topic li a:hover { color: var(--red); text-decoration: underline; }
.hc-more, .hc-link { font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; margin-top: auto; padding-top: 6px; }
.hc-results { margin-top: 36px; }
.hc-results h2 { font-size: 20px; margin-bottom: 12px; }
.hc-hit-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hc-hit-list li + li { border-top: 1px solid var(--line); }
.hc-hit-list a { display: flex; flex-direction: column; gap: 3px; padding: 16px 22px; color: var(--ink); text-decoration: none; }
.hc-hit-list a:hover { background: var(--cream); }
.hc-hit-list a:hover strong { color: var(--red); }
.hc-hit-cat { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hc-hit-snippet { font-size: 13px; color: var(--muted); }
.hc-cta { display: flex; align-items: center; gap: 20px; margin-top: 48px; padding: 28px 32px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.hc-cta svg { color: var(--red); flex: none; }
.hc-cta-text { flex: 1; }
.hc-cta h2 { color: var(--white); margin: 0 0 4px; font-size: 18px; }
.hc-cta p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
/* Article and topic pages: menu on the left, content in the middle, page menu on the right. */
.hc-with-nav { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 32px; align-items: start; }
.hc-article-layout { grid-template-columns: 240px minmax(0, 1fr) 180px; }
.hc-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding-bottom: 24px; }
.hc-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hc-nav a { color: var(--ink); text-decoration: none; }
.hc-nav-home { font-weight: 600; padding: 6px 0 10px; }
.hc-nav-group summary { list-style: none; cursor: pointer; padding: 8px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.hc-nav-group summary::-webkit-details-marker { display: none; }
.hc-nav-group summary::after { content: '›'; color: var(--muted); transition: transform .15s; font-size: 18px; line-height: 1; }
.hc-nav-group[open] summary::after { transform: rotate(90deg); }
.hc-nav-group ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; }
.hc-nav-group li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; margin-left: -2px; border-left: 2px solid transparent; }
.hc-nav-group li a:hover { color: var(--ink); }
.hc-nav-group li a.active { color: var(--red); font-weight: 600; border-left-color: var(--red); border-radius: 0 8px 8px 0; background: var(--white); }
.hc-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.hc-crumbs a { color: var(--red); text-decoration: none; font-weight: 500; }
.hc-main h1 { font-size: 32px; letter-spacing: -.01em; margin-bottom: 10px; }
.hc-lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.hc-topic-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.hc-topic-head h1 { margin-bottom: 4px; }
.hc-toc { position: sticky; top: 24px; font-size: 13px; border-left: 2px solid var(--line); padding-left: 16px; }
.hc-toc p { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hc-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-toc a { color: var(--ink); text-decoration: none; }
.hc-toc a:hover { color: var(--red); }
.prose { font-size: 15px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: 21px; margin: 36px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; scroll-margin-top: 24px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); font-weight: 500; }
.prose code { background: var(--peach); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.prose blockquote { margin: 20px 0; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 18px; }
.prose blockquote p:last-child { margin: 0; }
.prose table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; margin: 8px 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th { text-align: left; background: var(--peach); padding: 10px 12px; font-size: 13px; }
.prose td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
/* Screenshots: real size, never wider than the text column; tall phone shots stay narrow. */
.shot { margin: 18px 0 26px; }
.shot a { display: inline-block; max-width: 100%; border-radius: 12px; line-height: 0; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 4px 14px rgba(31,33,36,.06); }
.shot-phone img { max-width: min(300px, 100%); }
.shot-tall img { max-width: min(440px, 100%); }
.shot figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.hc-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.hc-pager a:hover { border-color: var(--coral); }
.hc-pager a span { font-size: 12px; font-weight: 500; color: var(--muted); }
.hc-pager a.next { text-align: right; grid-column: 2; }

/* ---------------------------------------------------------------- Utilisateurs */
.users-table .tr { grid-template-columns: 1.4fr 1.6fr .9fr 1.4fr 1.2fr 70px; }
.users-table .is-off { opacity: .55; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.role { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.role-admin { background: var(--ink); color: var(--white); }
.role-hq { background: var(--blue-bg); color: var(--blue); }
.role-store { background: var(--peach); color: var(--red); }
.link-red { color: var(--red); font-weight: 600; font-size: 13px; text-align: right; }
.c-amber { color: var(--amber); }
.perms { margin-top: 24px; }
.perms td:not(:first-child), .perms th:not(:first-child) { text-align: center; }
.user-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-pick, .store-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.role-pick legend, .store-pick legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.role-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--white); }
.role-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.role-option > span { display: flex; flex-direction: column; gap: 2px; }
.store-filter { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; max-width: 320px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--white); }

@media (max-width: 1100px) {
  .user-grid { grid-template-columns: 1fr; }
  .users-table .tr { grid-template-columns: 1.4fr 1.6fr 1fr 70px; }
  .users-table .tr > :nth-child(4), .users-table .tr > :nth-child(5) { display: none; }
  .hc-article-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .hc-toc { display: none; }
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-5 { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .mainnav { margin-left: 0; }
  .topbar { padding: 12px 20px; }
  .page { padding: 24px 20px 48px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .col-main, .col-side, .detail-grid > * { min-width: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tr, .tr.net { grid-template-columns: 1fr auto; row-gap: 4px; }
  .tr > span { display: none; }
  .tr > span:nth-child(1), .tr > span.medium, .tr > span.num, .tr > span:nth-last-child(2) { display: block; }
  .th { display: none; }
}
@media (max-width: 640px) {
  .app-name, .sep, .chip { display: none; }
  .topbar { flex-wrap: wrap; row-gap: 10px; }
  .topbar-left { flex-wrap: wrap; }
  .mainnav { order: 3; width: 100%; }
  .rtable td, .rtable th { white-space: nowrap; }
  .page { min-width: 0; }
  .page > * { min-width: 0; }
  .stats, .stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 22px; }
  .filter-row .field, .filter-row .field input, .store-picker, .picker-btn, .filter-row .btn { width: 100%; }
  .picker-list { position: static; box-shadow: none; margin-top: 6px; }
  h1 { font-size: 24px; }
  .row3 { grid-template-columns: 1fr; }
  .label-grid { grid-template-columns: 1fr; }
  .row2, .store-grid { grid-template-columns: 1fr; }
  .users-table .tr { grid-template-columns: 1fr auto; }
  .users-table .tr > :nth-child(2), .users-table .tr > :nth-child(3) { display: none; }
  .hc-wrap { padding: 0 16px; }
  .hc-hero { padding: 36px 16px 32px; }
  .hc-hero h1 { font-size: 28px; }
  .hc-search { flex-direction: column; }
  .hc-search .btn { height: 48px; }
  .hc-topics, .hc-with-nav, .hc-article-layout { grid-template-columns: minmax(0, 1fr); }
  .hc-with-nav { gap: 16px; padding-top: 20px; }
  .hc-side { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 16px; }
  .hc-main { order: 1; }
  .hc-cta { flex-direction: column; align-items: stretch; text-align: left; padding: 22px; }
  .hc-pager { grid-template-columns: 1fr; }
  .hc-pager a.next { grid-column: 1; }
  .prose table { display: block; overflow-x: auto; }
  .print-row .btn { width: 100%; }
  .search input { width: 100%; }
  .toolbar-right, .search { width: 100%; }
  .login-body { grid-template-columns: 1fr; }
  .login-brand { padding: 40px 24px; }
  .inline-field { flex-direction: column; align-items: stretch; } .inline-field input { width: 100%; }
  .actions .btn { width: 100%; }
}
