/* =========================================================================
   COURRIER — système visuel
   Sobre, institutionnel : bleu nuit + bleu électrique du logo, neutres froids.
   ========================================================================= */
:root {
  --ink-950: #040A14; --ink-900: #07111F; --ink-850: #0A1729; --ink-800: #0E1E35; --ink-700: #16304F; --ink-600: #22436B;
  --blue-700: #123BA8; --blue-600: #1747C9; --blue-500: #1F5BEA; --blue-400: #4C82FF; --blue-100: #E6EEFF; --blue-50: #F2F6FF;
  --glow: #38B6FF;
  --bg: #F2F4F8; --surface: #FFFFFF; --surface-2: #F8FAFC; --surface-3: #EEF2F7;
  --line: #E1E6EE; --line-2: #CDD5E1;
  --text: #0D1828; --text-2: #34445B; --muted: #66758C; --faint: #94A0B4;
  --ok: #0F6E47; --ok-bg: #E6F4EC; --warn: #8F5600; --warn-bg: #FCF1DE; --danger: #B42318; --danger-bg: #FDECEA; --info: #1747C9; --info-bg: #EAF0FE;
  --r: 10px; --r-sm: 7px; --r-lg: 14px;
  --sh-sm: 0 1px 2px rgba(13, 24, 40, .06);
  --sh: 0 1px 2px rgba(13, 24, 40, .05), 0 6px 20px -8px rgba(13, 24, 40, .14);
  --sh-lg: 0 24px 60px -18px rgba(4, 10, 20, .35);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --side: 256px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 26px; font-weight: 600; } h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 16px; font-weight: 600; } h4 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .xs { font-size: 12px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; padding: 0; max-width: none; margin-left: 0; margin-right: 0; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.stack > * + * { margin-top: 12px; } .stack-lg > * + * { margin-top: 22px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Boutons ---------- */
.btn { --b: var(--surface); --c: var(--text); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: var(--r-sm);
  background: var(--b); color: var(--c); border: 1px solid var(--bd); font: 500 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s; text-decoration: none; }
.btn:hover { border-color: var(--faint); color: var(--c); }
.btn:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.btn:disabled, .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { --b: var(--blue-600); --c: #fff; --bd: var(--blue-600); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 2px rgba(23,71,201,.3); }
.btn-primary:hover { --b: var(--blue-700); --bd: var(--blue-700); color: #fff; }
.btn-dark { --b: var(--ink-900); --c: #fff; --bd: var(--ink-900); }
.btn-dark:hover { --b: var(--ink-700); color: #fff; }
.btn-ghost { --b: transparent; --bd: transparent; --c: var(--text-2); }
.btn-ghost:hover { --b: var(--surface-3); --bd: transparent; }
.btn-danger { --b: var(--surface); --c: var(--danger); --bd: #F1C2BD; }
.btn-danger:hover { --b: var(--danger-bg); color: var(--danger); }
.btn-ok { --b: var(--ok); --c: #fff; --bd: var(--ok); }
.btn-ok:hover { color: #fff; filter: brightness(1.08); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; gap: 5px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; } .btn-sm.btn-icon { width: 32px; }
.split { display: inline-flex; position: relative; }
.split > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split > .btn + .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(255,255,255,.25); padding: 0 10px; }

/* ---------- Formulaires ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: .01em; }
.field small, .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font: 14.5px/1.4 var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366758C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(31, 91, 234, .14); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--blue-600); margin: 0; flex: none; }
input[type=file] { font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input { margin-top: 3px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--r-sm); padding: 3px; gap: 2px; width: 100%; }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--text-2); text-align: center; line-height: 1.1; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--blue-400); }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 38px; }

/* ---------- Cartes / badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { margin: 0; font-size: 15px; }
.card-b { padding: 18px; }
.card-f { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.muted { background: var(--surface-3); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 11.5px; color: var(--text-2); background: var(--surface); white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; }
.tag.sealed { border-color: #E5D3A8; background: #FFF9EC; color: #7A5300; }
.tag.urgent { border-color: #F2C3BE; background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; border: 1px solid; align-items: flex-start; }
.alert .ic { margin-top: 2px; }
.alert.info { background: var(--info-bg); border-color: #C9D8FB; color: #173B8F; }
.alert.ok { background: var(--ok-bg); border-color: #BFE3CF; color: #0C5838; }
.alert.warn { background: var(--warn-bg); border-color: #F0D9AE; color: #6E4300; }
.alert.error, .alert.danger { background: var(--danger-bg); border-color: #F4C7C2; color: #8E1B12; }
.avatar { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; font: 600 13px/1 var(--font); color: #fff; background: var(--ink-700); letter-spacing: .02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; border-radius: 12px; }
.avatar.t-ministere, .avatar.t-institution, .avatar.t-direction, .avatar.t-collectivite { background: #0F3A5F; }
.avatar.t-entreprise { background: var(--ink-700); } .avatar.t-particulier { background: #4A5568; } .avatar.t-ong { background: #285E61; }
.verified { color: var(--blue-500); display: inline-flex; }
.kbd { font: 500 11px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; color: var(--muted); }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--faint); margin: 0 auto 12px; display: block; }
.empty h3 { color: var(--text-2); }
.divider-label { display: flex; align-items: center; gap: 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; margin: 18px 0 10px; }
.divider-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Tableaux ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--blue-50); }
.table-wrap { overflow-x: auto; }

/* ---------- Coque applicative ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink-900); color: #C5D0E0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid #0F2038; z-index: 40; }
.side-brand { padding: 18px 18px 14px; display: flex; align-items: center; justify-content: space-between; }
.side-brand img { height: 26px; width: auto; }
.side-org { margin: 0 12px 12px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: flex; gap: 10px; align-items: center; color: #E7EDF6; }
.side-org .avatar { background: #19355A; }
.side-org b { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-org small { font: 11px var(--mono); color: #7D8DA6; }
.side-new { margin: 0 12px 14px; }
.side-new .btn { width: 100%; height: 40px; }
.side nav { flex: 1; overflow-y: auto; padding: 0 10px 12px; scrollbar-width: thin; scrollbar-color: #1E3557 transparent; }
.side .sec { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #5E7090; padding: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 7px; color: #B7C3D6; font-size: 14px; font-weight: 450; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, rgba(56,182,255,.16), rgba(56,182,255,.04)); color: #fff; box-shadow: inset 2px 0 0 var(--glow); }
.side nav a .ic { color: #7F92B0; } .side nav a.on .ic, .side nav a:hover .ic { color: var(--glow); }
.side nav a .n { margin-left: auto; font: 600 11px/1 var(--mono); background: rgba(255,255,255,.08); color: #DDE6F3; border-radius: 999px; padding: 4px 7px; }
.side nav a .n.hot { background: var(--blue-500); color: #fff; }
.side-quota { margin: 8px 12px 12px; padding: 12px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #9AA9C0; }
.side-quota b { color: #fff; font-weight: 600; }
.side-quota .bar { margin: 8px 0 6px; }
.side-foot { padding: 10px 18px 16px; font-size: 11px; color: #4F6283; display: flex; align-items: center; gap: 6px; }
.bar { height: 6px; background: rgba(127,146,176,.22); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-500), var(--glow)); }
.bar.warn > i { background: #E59A1A; } .bar.danger > i { background: #D9382B; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 22px; }
.top-search { flex: 1; max-width: 560px; }
.top-search input { height: 38px; background: var(--surface-2); border-color: var(--line); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .dot { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font: 600 10px/17px var(--font); text-align: center; border: 2px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 9px; cursor: pointer; border: 0; background: transparent; font: inherit; color: inherit; }
.user-chip:hover { background: var(--surface-3); }
.user-chip b { font-size: 13px; font-weight: 600; display: block; text-align: left; line-height: 1.2; }
.user-chip small { font-size: 11.5px; color: var(--muted); display: block; text-align: left; }
.content { padding: 26px 28px 60px; max-width: 1360px; width: 100%; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { margin: 0; }
.page-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
.menu-btn { display: none; }
.side-backdrop { display: none; }
.fab { display: none; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; }
  body.side-open .side { transform: none; box-shadow: var(--sh-lg); }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(4,10,20,.45); z-index: 35; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 12px; }
  .content { padding: 18px 16px 90px; }
  .user-chip .who { display: none; }
  .fab { display: flex; position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-600); color: #fff; align-items: center; justify-content: center; box-shadow: 0 10px 26px -8px rgba(23,71,201,.6); }
  .fab:hover { color: #fff; }
}
@media (max-width: 640px) { .top-search { display: none; } .hide-sm { display: none !important; } .toolbar select { flex: 1 1 calc(50% - 10px); } .toolbar .btn { flex: 1; } }
.top-logo { display: none; }
@media (max-width: 1080px) { .top-logo { display: block; } .top-logo img { height: 22px; width: auto; filter: brightness(.35) saturate(1.6); } }
.mini-ed { min-height: 84px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); font: 14px/1.45 var(--font); outline: none; }
.mini-ed:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(31, 91, 234, .14); }
.mini-bar { display: flex; gap: 4px; margin-bottom: 6px; }
.mini-bar button { height: 28px; min-width: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; font: 600 12.5px var(--font); color: var(--text-2); padding: 0 8px; }
.mini-bar button:hover { background: var(--surface-3); }

/* Menu déroulant */
.dd { position: relative; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 6px; z-index: 60; display: none; }
.dd.open .dd-menu { display: block; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px; font: 14px var(--font); color: var(--text); background: none; border: 0; cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--surface-3); color: var(--text); }
.dd-menu hr { margin: 6px 0; }
.dd-menu.up { top: auto; bottom: calc(100% + 6px); }

/* Notifications */
.notif-panel { width: 380px; max-width: calc(100vw - 24px); padding: 0; }
.notif-panel .h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item { display: flex !important; gap: 11px; padding: 12px 14px !important; border-radius: 0 !important; border-bottom: 1px solid var(--line); align-items: flex-start !important; }
.notif-item.unread { background: var(--blue-50); }
.notif-item .t { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.notif-item .m { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.notif-item .w { font-size: 11px; color: var(--faint); margin-top: 4px; }
.notif-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--info-bg); color: var(--info); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast { background: var(--ink-900); color: #E8EEF7; border-radius: 10px; padding: 12px 14px; box-shadow: var(--sh-lg); display: flex; gap: 11px; align-items: flex-start; animation: tin .25s ease; border: 1px solid #1B2F4D; }
.toast .ic { color: var(--glow); margin-top: 2px; }
.toast b { display: block; font-size: 13.5px; color: #fff; }
.toast span { font-size: 12.5px; color: #A9B7CC; }
.toast.error .ic { color: #FF8A80; } .toast.ok .ic { color: #6EE7A8; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 10, 20, .55); backdrop-filter: blur(2px); }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--sh-lg); animation: min .2s ease; }
.modal-box.wide { max-width: 720px; }
.modal-h { padding: 18px 20px 12px; display: flex; gap: 14px; align-items: flex-start; }
.modal-h h3 { margin: 0; font-size: 17px; }
.modal-h p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.modal-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--info-bg); color: var(--info); }
.modal-ic.warn { background: var(--warn-bg); color: var(--warn); } .modal-ic.ok { background: var(--ok-bg); color: var(--ok); }
.modal-b { padding: 6px 20px 16px; overflow-y: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@keyframes min { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@media (max-width: 640px) { .modal { align-items: flex-end; padding: 0; } .modal-box { border-radius: 16px 16px 0 0; max-height: 92vh; } .modal-f .btn { flex: 1; } }

/* ---------- Tableau de bord ---------- */
.kpi { padding: 16px 18px; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .v { font: 600 28px/1.1 var(--font); margin-top: 8px; letter-spacing: -.02em; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi .ic-w { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.kpi.alert-k .ic-w { background: var(--warn-bg); color: var(--warn); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding-top: 10px; }
.spark .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.spark .bars { display: flex; gap: 2px; align-items: flex-end; width: 100%; justify-content: center; flex: 1; }
.spark .bars i { width: 42%; max-width: 14px; border-radius: 3px 3px 0 0; background: var(--blue-500); min-height: 2px; }
.spark .bars i.in { background: #9DB6F5; }
.spark small { font-size: 10.5px; color: var(--faint); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Liste de courriers ---------- */
.mlist { list-style: none; margin: 0; padding: 0; }
.mitem { display: grid; grid-template-columns: 4px 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); color: inherit; position: relative; }
.mitem:hover { background: var(--blue-50); color: inherit; }
.mitem:last-child { border-bottom: 0; }
.mitem .prio { align-self: stretch; border-radius: 0 3px 3px 0; }
.mitem .prio.urgente { background: #E59A1A; } .mitem .prio.tres_urgente { background: var(--danger); }
.mitem .who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mitem .who b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem.unread .who b, .mitem.unread .obj { font-weight: 700; }
.mitem.unread::after { content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--blue-500); display: none; }
.mitem .obj { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mitem .ex { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem .meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.mitem .end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mitem .when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ref { font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: -.01em; }
@media (max-width: 640px) { .mitem { grid-template-columns: 4px 32px minmax(0, 1fr); } .mitem .end { grid-column: 3; flex-direction: row; justify-content: space-between; align-items: center; } .mitem .avatar { width: 32px; height: 32px; } }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar select, .toolbar input { height: 34px; font-size: 13.5px; width: auto; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 11px 14px; font: 500 14px var(--font); color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.on, .tabs button.on { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.tabs .n { font: 600 11px var(--mono); background: var(--surface-3); border-radius: 99px; padding: 2px 6px; color: var(--text-2); }
.pager { display: flex; gap: 6px; justify-content: center; padding: 14px; }

/* ---------- Chronologie ---------- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { position: relative; padding: 0 0 18px 34px; }
.tl li::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); }
.tl .dot .ic { width: 12px; height: 12px; }
.tl .dot.ok { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.tl .dot.info { border-color: var(--blue-500); color: var(--blue-600); background: var(--info-bg); }
.tl .dot.warn { border-color: #E59A1A; color: var(--warn); background: var(--warn-bg); }
.tl .dot.danger { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.tl .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.tl .by { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl .d { font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin-top: 7px; white-space: pre-line; }
.tl .when { font: 12px var(--mono); color: var(--faint); margin-top: 3px; }
.steps { display: flex; gap: 0; margin: 4px 0; }
.steps .s { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--muted); padding-top: 30px; }
.steps .s::before { content: ''; position: absolute; top: 9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; }
.steps .s::after { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.steps .s:first-child::after { display: none; }
.steps .s.done::before { background: var(--blue-500); border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--info-bg); }
.steps .s.done::after { background: var(--blue-500); }
.steps .s.done { color: var(--text); font-weight: 500; }
.steps.ok .s.done::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); } .steps.ok .s.done::after { background: var(--ok); }
.steps.danger .s.done::before { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); } .steps.danger .s.done::after { background: var(--danger); }

/* ---------- Détail courrier ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .detail { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 9px 14px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.envelope { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #FBFCFE, #F3F6FA); padding: 26px; position: relative; overflow: hidden; }
.envelope::before { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, transparent 49.6%, var(--line-2) 50%, transparent 50.4%), linear-gradient(25deg, transparent 49.6%, var(--line-2) 50%, transparent 50.4%); background-size: 100% 60%; background-repeat: no-repeat; opacity: .5; pointer-events: none; }
.envelope > * { position: relative; }
.seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: var(--glow); margin: 8px auto 14px; box-shadow: 0 0 0 6px rgba(56,182,255,.12); }
.seal .ic { width: 28px; height: 28px; }
.fp { font: 500 12px/1.5 var(--mono); color: var(--text-2); word-break: break-all; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 7px; padding: 8px 10px; }
.qr-box { background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; line-height: 0; aspect-ratio: 1; }
.qr-box canvas, .qr-box img, .qr-box svg { width: 100%; height: 100%; display: block; }
.actions-panel .btn { justify-content: flex-start; }
.act-group { display: grid; gap: 8px; }

/* ---------- Composeur ---------- */
.composer { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 60px); margin: -26px -28px -60px; }
.c-panel { background: var(--surface); border-right: 1px solid var(--line); padding: 18px; overflow-y: auto; max-height: calc(100vh - 60px); position: sticky; top: 60px; }
.c-stage { background: #E7EBF1; padding: 0 0 40px; min-width: 0; }
.c-bar { position: sticky; top: 60px; z-index: 20; display: flex; gap: 10px; align-items: center; padding: 10px 18px; background: rgba(231,235,241,.94); backdrop-filter: blur(6px); border-bottom: 1px solid #D7DDE6; flex-wrap: wrap; }
.save-state { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save-state.saving i { background: #E59A1A; animation: pulse 1s infinite; }
.save-state.offline i { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.fmt { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.fmt button { width: 27px; height: 28px; border: 0; background: none; border-radius: 5px; cursor: pointer; color: var(--text-2); font: 600 13px var(--font); display: grid; place-items: center; }
.fmt button:hover { background: var(--surface-3); color: var(--text); }
.fmt button.on { background: var(--blue-100); color: var(--blue-700); }
.fmt .sep { width: 1px; background: var(--line); margin: 3px 3px; }
.paper-wrap { padding: 28px 18px; display: flex; justify-content: center; }
@media (max-width: 1080px) { .composer { grid-template-columns: 1fr; margin: -18px -16px -90px; } .c-panel { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); } .c-bar { top: 60px; } }
.rcpt { position: relative; }
.rcpt-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); z-index: 50; max-height: 360px; overflow-y: auto; display: none; }
.rcpt-results.open { display: block; }
.rcpt-results .grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; padding: 10px 12px 4px; }
.rcpt-opt { display: flex; gap: 10px; align-items: center; padding: 9px 12px; cursor: pointer; }
.rcpt-opt:hover, .rcpt-opt.on { background: var(--blue-50); }
.rcpt-opt b { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.25; }
.rcpt-opt small { font-size: 12px; color: var(--muted); }
.rcpt-sel { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--blue-400); background: var(--blue-50); border-radius: var(--r-sm); }
.rcpt-sel b { font-size: 13.5px; display: block; line-height: 1.25; }
.rcpt-sel small { font-size: 12px; color: var(--muted); }
.att-list { display: grid; gap: 8px; }
.att { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--surface); }
.att .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.att .fi { width: 30px; height: 30px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; font: 700 9px var(--mono); flex: none; }
.att .fi.img { background: var(--info-bg); color: var(--info); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 14px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; transition: .15s; background: var(--surface-2); }
.drop:hover, .drop.over { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }

/* ---------- Feuille A4 (éditeur, aperçu, impression) ---------- */
.sheet { --pad: 20mm; width: 210mm; min-height: 297mm; background: #fff; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 18px 40px -16px rgba(13,24,40,.28); padding: var(--pad) var(--pad) 34mm; color: #111; display: flex; flex-direction: column; font: 11.5pt/1.55 var(--serif); }
.sheet.sans { font-family: var(--font); font-size: 11pt; }
.sheet .wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; z-index: 0; }
.sheet .wm span { font: 700 64pt/1 var(--font); color: #0E1E35; transform: rotate(-32deg); white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
.sheet .wm img { width: 62%; max-height: 62%; object-fit: contain; }
.sheet > *:not(.wm) { position: relative; z-index: 1; }
.sheet .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 10px; border-bottom: 1.5px solid #0E1E35; margin-bottom: 16px; font-family: var(--font); }
.sheet .hd .hd-l { flex: 1; min-width: 0; }
.sheet .hd img.hd-img { max-height: 30mm; max-width: 100%; }
.sheet .hd .hd-qr { width: 21mm; text-align: center; flex: none; }
.sheet .hd .hd-qr .q { width: 21mm; height: 21mm; }
.sheet .hd .hd-qr small { display: block; font: 600 6.5pt var(--mono); margin-top: 1mm; color: #333; letter-spacing: 0; }
.sheet .meta { display: flex; justify-content: space-between; gap: 20px; font-size: 10pt; margin-bottom: 8mm; }
.sheet .meta .refs { font: 9pt/1.6 var(--mono); color: #333; }
.sheet .dest { margin-left: auto; text-align: left; max-width: 80mm; font-size: 10.5pt; }
.sheet .dest b { display: block; }
.sheet .objet { font-weight: 700; margin: 4mm 0 6mm; }
.sheet .objet u { text-decoration: underline; }
.sheet .body { flex: 1; min-height: 80mm; outline: none; word-wrap: break-word; }
.sheet .body p { margin: 0 0 .7em; text-align: justify; }
.sheet .body:empty::before { content: attr(data-placeholder); color: #9AA5B5; font-style: italic; }
.sheet .body table { border-collapse: collapse; width: 100%; } .sheet .body td, .sheet .body th { border: 1px solid #999; padding: 4px 6px; }
.sheet .sign { margin-top: 10mm; margin-left: auto; width: 70mm; text-align: center; font-size: 10.5pt; white-space: pre-line; }
.sheet .sign img { max-height: 22mm; margin: 2mm auto; }
.sheet .sign { position: relative; }
.sheet .sign img.cachet { position: absolute; left: -20mm; top: -6mm; width: 34mm; max-height: 34mm; margin: 0; opacity: .88; transform: rotate(-9deg); mix-blend-mode: multiply; pointer-events: none; }
.sig-pad { border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); background: #fff; touch-action: none; width: 100%; height: 150px; display: block; cursor: crosshair; }
.sig-wrap { position: relative; }
.sig-wrap .sig-clear { position: absolute; right: 6px; top: 6px; }
.sig-wrap .sig-hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: var(--faint); pointer-events: none; }
.seal-prev { max-height: 90px; border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: #fff; }
.sheet .ft { position: absolute; left: var(--pad); right: var(--pad); bottom: 10mm; border-top: 1px solid #9AA5B5; padding-top: 3mm; font: 8pt/1.45 var(--font); color: #444; text-align: center; display: flex; align-items: center; gap: 4mm; z-index: 1; }
.sheet .ft .ft-c { flex: 1; } .sheet .ft img { max-height: 16mm; margin: 0 auto; }
.sheet .ft .stamp { font: 600 6.5pt var(--mono); color: #1747C9; text-align: right; white-space: nowrap; }
.sheet [contenteditable]:focus { box-shadow: 0 0 0 2px rgba(31,91,234,.18); border-radius: 2px; }
.sheet .editable-line { outline: none; border-radius: 2px; }
.sheet .editable-line:hover { background: rgba(31,91,234,.05); }
.sheet-scale { transform-origin: top center; }
@media (max-width: 900px) { .paper-wrap { padding: 14px 0; overflow-x: auto; justify-content: flex-start; } }

/* ---------- Visionneuse ---------- */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: calc(100vh - 60px); margin: -26px -28px -60px; }
.v-stage { background: #2A3342; display: flex; flex-direction: column; min-width: 0; }
.v-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #1C2431; color: #D4DCE8; border-bottom: 1px solid #111823; flex-wrap: wrap; }
.v-bar .btn { --b: #2A3444; --bd: #364256; --c: #E3E9F2; height: 32px; }
.v-bar .btn:hover { --b: #344157; color: #fff; }
.v-bar .btn.on { --b: var(--blue-600); --bd: var(--blue-600); }
.v-bar .pg { font: 500 13px var(--mono); color: #AEB9CB; min-width: 74px; text-align: center; }
.v-doc { flex: 1; overflow: auto; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.v-doc canvas, .v-doc img.v-img { box-shadow: 0 10px 30px rgba(0,0,0,.4); background: #fff; max-width: none; }
.v-doc .sheet { box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.v-side { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; }
@media (max-width: 1080px) { .viewer { grid-template-columns: 1fr; height: auto; margin: -18px -16px -90px; } .v-doc { min-height: 70vh; padding: 12px; } .v-side { border-left: 0; } }

/* ---------- Paramètres ---------- */
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.s-nav { position: sticky; top: 80px; display: grid; gap: 2px; }
.s-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.s-nav a:hover { background: var(--surface); color: var(--text); }
.s-nav a.on { background: var(--surface); color: var(--blue-600); font-weight: 600; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .s-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .s-nav a { white-space: nowrap; } }
.offer { padding: 18px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.offer.hl { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--info-bg); }
.offer .price { font: 600 24px/1 var(--font); letter-spacing: -.02em; }
.offer .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.offer .ribbon { position: absolute; top: -10px; right: 14px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.gauge { position: relative; width: 150px; height: 150px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .c b { font: 600 30px/1 var(--font); letter-spacing: -.02em; display: block; }
.gauge .c small { font-size: 12px; color: var(--muted); }
.preview-mini { transform: scale(.42); transform-origin: top left; width: 210mm; pointer-events: none; }
.preview-mini-wrap { width: calc(210mm * .42); height: calc(297mm * .42); overflow: hidden; border-radius: 4px; box-shadow: var(--sh); }

/* Carte COURRIER */
.idcard-stage { background: radial-gradient(circle at 30% 20%, #12263F, #050B16 70%); border-radius: var(--r-lg); padding: 28px; display: flex; justify-content: center; }
.idcard-stage canvas { width: 100%; max-width: 820px; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }

/* ===================================================================== */
/* SITE PUBLIC                                                            */
/* ===================================================================== */
.site { background: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.nav { position: absolute; left: 0; right: 0; top: 0; z-index: 20; }
.nav.solid { position: sticky; background: var(--ink-900); border-bottom: 1px solid #12223A; }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.nav .logo img { height: 28px; width: auto; }
.nav .links { display: flex; gap: 22px; }
.nav .links a { color: #B9C6D9; font-size: 14.5px; font-weight: 500; }
.nav .links a:hover { color: #fff; }
.nav .cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav .btn-ghost { --c: #DDE6F2; } .nav .btn-ghost:hover { --b: rgba(255,255,255,.08); color: #fff; }
.nav .menu-toggle { display: none; color: #fff; }
@media (max-width: 900px) { .nav .links { display: none; } .nav .cta .btn-ghost { display: none; } .nav .menu-toggle { display: grid; } .nav.open .links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 12px; right: 12px; background: var(--ink-850); padding: 16px; border-radius: 12px; gap: 14px; box-shadow: var(--sh-lg); } }
.hero { position: relative; background: var(--ink-950); color: #DCE5F2; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(56,182,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,182,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero::after { content: ''; position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: -200px; margin-left: -450px; background: radial-gradient(closest-side, rgba(31,91,234,.35), transparent); filter: blur(10px); }
.hero .lockup { width: min(640px, 92%); margin: 0 auto 28px; filter: drop-shadow(0 0 30px rgba(56,182,255,.25)); }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; letter-spacing: -.025em; text-align: center; max-width: 900px; margin: 0 auto 16px; line-height: 1.1; }
.hero .lead { text-align: center; font-size: clamp(15px, 1.6vw, 18px); color: #A9B8CE; max-width: 720px; margin: 0 auto 34px; }
.finder { max-width: 780px; margin: 0 auto; background: rgba(255,255,255,.04); border: 1px solid rgba(124,160,214,.22); border-radius: 18px; padding: 10px; box-shadow: 0 30px 80px -30px rgba(31,91,234,.5); backdrop-filter: blur(6px); }
.finder-in { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 16px; }
.finder-in .ic { color: var(--muted); }
.finder-in input { border: 0; height: 48px; font-size: 16px; padding: 0 4px; box-shadow: none !important; background: transparent; }
.finder-in .scan { height: 44px; border-radius: 9px; }
.finder-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.finder-btns .btn { height: 50px; font-size: 15px; border-radius: 11px; }
.finder-btns .btn-outline { --b: rgba(255,255,255,.04); --bd: rgba(160,190,235,.35); --c: #fff; }
.finder-btns .btn-outline:hover { --b: rgba(255,255,255,.1); color: #fff; }
.finder-hint { text-align: center; font-size: 13px; color: #7F92B0; margin-top: 14px; }
.finder-hint code { color: #BFD0EA; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 4px; }
.finder-res { max-width: 780px; margin: 14px auto 0; display: none; }
.finder-res.open { display: block; }
.res-card { background: #fff; color: var(--text); border-radius: 14px; padding: 18px; box-shadow: var(--sh-lg); text-align: left; animation: min .2s ease; }
.res-card + .res-card { margin-top: 10px; }
.res-org { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 10px; }
.res-org:hover { background: var(--surface-2); }
.res-org b { display: block; font-size: 15px; }
.res-org small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .finder-btns { grid-template-columns: 1fr; } .hero { padding-top: 104px; } .finder-in input { font-size: 15px; } }
.trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: #8296B5; font-size: 13px; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust .ic { color: var(--glow); }
.sec-pad { padding: 88px 0; }
.sec-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-dark { background: var(--ink-900); color: #C5D0E0; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; display: block; }
.sec-dark .eyebrow { color: var(--glow); }
.sec-h { max-width: 720px; margin-bottom: 44px; }
.sec-h.c { margin-left: auto; margin-right: auto; text-align: center; }
.sec-h h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; font-weight: 600; }
.sec-h p { font-size: 17px; color: var(--muted); }
.sec-dark .sec-h p { color: #93A4BE; }
.flows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .flows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flows { grid-template-columns: 1fr; } }
.flow { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: #fff; transition: .2s; }
.flow:hover { border-color: #B8C9EE; box-shadow: var(--sh); transform: translateY(-2px); }
.flow .pair { display: flex; align-items: center; gap: 8px; font: 600 12px var(--mono); color: var(--blue-600); letter-spacing: .04em; margin-bottom: 12px; }
.flow .pair i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--blue-400), transparent); }
.flow h3 { font-size: 16px; margin-bottom: 6px; }
.flow p { font-size: 14px; color: var(--muted); margin: 0; }
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 520px) { .howto { grid-template-columns: 1fr; } }
.howto > div { padding: 0 22px; border-left: 1px solid #1B3050; }
.howto > div:first-child { border-left: 0; padding-left: 0; }
.howto .n { font: 600 13px var(--mono); color: var(--glow); }
.howto h3 { font-size: 17px; margin: 12px 0 8px; }
.howto p { font-size: 14.5px; color: #93A4BE; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 15px; color: var(--text-2); }
.checks li .ic { color: var(--blue-600); margin-top: 2px; }
.mock { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); padding: 20px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.faq summary::after { content: '+'; color: var(--blue-600); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--text-2); }
.cta-band { background: linear-gradient(120deg, var(--ink-900), #0F2A57); border-radius: 20px; padding: 48px; color: #C9D6EA; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.foot { background: var(--ink-950); color: #7D8DA6; padding: 56px 0 30px; font-size: 14px; }
.foot a { color: #A9B8CE; } .foot a:hover { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .bottom { border-top: 1px solid #13233B; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.page-hero { background: var(--ink-900); padding: 56px 0 46px; color: #A9B8CE; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--ink-950); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; color: #A9B8CE; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(56,182,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,182,255,.07) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); }
.auth-art blockquote { margin: 0; font-size: 22px; line-height: 1.4; color: #fff; font-weight: 500; max-width: 460px; letter-spacing: -.01em; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #fff; }
.auth-form .box { width: 100%; max-width: 440px; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } }
.type-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; }
.type-pick span { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: .15s; }
.type-pick input:checked + span { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 3px var(--info-bg); color: var(--blue-700); }
.org-hero { display: flex; gap: 22px; align-items: center; }
.prose { max-width: 760px; } .prose h2 { margin-top: 1.6em; } .prose p, .prose li { color: var(--text-2); }
.scanner video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 1; object-fit: cover; }
.scanner .frame { position: relative; }
.scanner .frame::after { content: ''; position: absolute; inset: 18%; border: 2px solid var(--glow); border-radius: 14px; box-shadow: 0 0 0 999px rgba(4,10,20,.35); }

/* ---------- Impression ---------- */
@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .no-print, .topbar, .side, .fab, .toasts, .c-bar, .print-bar { display: none !important; }
  .print-body { padding: 0 !important; background: #fff !important; }
  .sheet { box-shadow: none; margin: 0; page-break-after: always; }
}
.print-body { background: #DDE2E9; padding: 24px 0; min-height: 100vh; }
.print-body .sheet { margin: 0 auto; }
.print-bar { position: sticky; top: 0; z-index: 10; background: var(--ink-900); color: #fff; display: flex; gap: 10px; align-items: center; padding: 10px 18px; margin: -24px 0 24px; }
.print-bar img { height: 20px; }

/* ---------- Piles de dossiers (bureau du courrier) ---------- */
.piles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; padding-top: 24px; }
@media (max-width: 1280px) { .piles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .piles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.pile { position: relative; display: block; color: inherit; min-height: 150px; }
.pile:hover { color: inherit; }
.pile-sheet { position: absolute; inset: 0; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); transform: translate(calc(var(--i) * 3px), calc(var(--i) * -4px)) rotate(calc(var(--i) * .8deg)); box-shadow: 0 1px 2px rgba(13,24,40,.06); }
.pile-top { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 150px; padding: 12px; border-radius: 8px; background: linear-gradient(180deg, #fff, #FBFCFE); border: 1px solid var(--line-2); box-shadow: 0 6px 16px -10px rgba(13,24,40,.35); transition: transform .15s; }
.pile:hover .pile-top { transform: translateY(-3px); border-color: var(--blue-400); }
.pile-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.pile-n { font: 600 26px/1 var(--font); letter-spacing: -.02em; }
.pile-l { font-size: 13px; margin: 6px 0 4px; line-height: 1.25; }
.pile-line { font-size: 11.5px; color: var(--text-2); border-top: 1px dashed var(--line); padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile-line i { font-style: normal; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.pile.hot .pile-ic { background: var(--danger-bg); color: var(--danger); } .pile.hot .pile-n { color: var(--danger); }
.pile.empty .pile-top { opacity: .7; }

/* ---------- Vue grille des courriers (recto / verso) ---------- */
.view-toggle { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 3px; gap: 2px; }
.view-toggle button { width: 34px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.view-toggle button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; padding: 20px; }
.mcard { perspective: 1200px; height: 300px; }
.mcard-in { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.mcard.flipped .mcard-in { transform: rotateY(180deg); }
.mcard-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; overflow: hidden; }
.mcard-back { transform: rotateY(180deg); background: var(--ink-900); color: #C5D0E0; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.mcard-back b { color: #fff; }
.mcard-back .k { color: #6E80A0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.paper-thumb { position: relative; height: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 24px -14px rgba(13,24,40,.4); font-size: 10px; }
.paper-thumb .ph { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1.5px solid var(--ink-800); padding-bottom: 6px; }
.paper-thumb .ph b { font: 700 10px var(--font); text-transform: uppercase; max-width: 120px; line-height: 1.2; }
.paper-thumb .ph .q { width: 30px; height: 30px; }
.paper-thumb .obj { font: 700 11.5px/1.3 var(--serif); color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.paper-thumb .ln { height: 4px; border-radius: 2px; background: #E4E9F0; }
.paper-thumb .stamp-badge { position: absolute; right: 10px; bottom: 44px; transform: rotate(-12deg); border: 2px solid currentColor; border-radius: 6px; padding: 2px 6px; font: 700 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.paper-thumb .stamp-badge.ok { color: var(--ok); } .paper-thumb .stamp-badge.warn { color: #B26B00; } .paper-thumb .stamp-badge.info { color: var(--blue-600); } .paper-thumb .stamp-badge.danger { color: var(--danger); } .paper-thumb .stamp-badge.muted { color: var(--muted); }
.paper-thumb.sealed { background: linear-gradient(155deg, transparent 49.4%, #D9C9A2 50%, transparent 50.6%) , linear-gradient(25deg, transparent 49.4%, #D9C9A2 50%, transparent 50.6%), #FFF9EC; background-size: 100% 55%, 100% 55%, auto; background-repeat: no-repeat; }
.mcard-actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 3; }
.mcard-actions .btn { flex: 1; height: 30px; font-size: 12.5px; }
.flip-btn { position: absolute; top: 8px; right: 8px; z-index: 4; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.mcard-back .flip-btn { background: var(--ink-700); border-color: #2A4166; color: #fff; }

/* ---------- Annuaire en grille ---------- */
.org-card { display: flex; flex-direction: column; gap: 12px; text-align: center; padding: 18px; }
.org-card .qr-box { width: 120px; margin: 0 auto; }

/* ---------- Espace livreur (POS) ---------- */
.pos-body { background: #040A14; color: #C5D0E0; min-height: 100vh; }
.pos { max-width: 720px; margin: 0 auto; padding: 0 12px 90px; }
.pos-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 4px; background: #040A14; }
.pos-top img { height: 22px; }
.pos-top b { color: #fff; display: block; font-size: 14px; } .pos-top small { color: #6E80A0; font-size: 12px; }
.pos-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.pos-stats div { background: #0B1A2E; border: 1px solid #16304F; border-radius: 12px; padding: 10px; text-align: center; }
.pos-stats b { display: block; font: 600 22px/1.1 var(--font); color: #fff; } .pos-stats span { font-size: 11px; color: #7F92B0; }
.pos-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: sticky; top: 56px; z-index: 4; background: #040A14; padding-bottom: 10px; }
.pos-tabs button { height: 46px; border-radius: 10px; border: 1px solid #16304F; background: #0B1A2E; color: #A9B8CE; font: 600 13px var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pos-tabs button i { font: 600 11px var(--mono); font-style: normal; background: #16304F; color: #fff; border-radius: 99px; padding: 2px 7px; }
.pos-tabs button.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; } .pos-tabs button.on i { background: rgba(255,255,255,.25); }
.pos-list { display: grid; gap: 12px; }
.tk { background: #F4F6FA; color: var(--text); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.tk header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border-bottom: 2px dashed #D3DAE5; flex-wrap: wrap; }
.tk-code { font: 700 17px var(--mono); letter-spacing: .04em; } .tk-slot { font: 600 12.5px var(--mono); color: var(--blue-600); }
.tk-tag { font: 700 10px var(--mono); padding: 2px 6px; border-radius: 4px; background: #FFF4DA; color: #7A5300; } .tk-tag.hot { background: var(--danger-bg); color: var(--danger); }
.tk-leg { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #E3E8EF; }
.tk-leg b { display: block; font-size: 14px; } .tk-leg small { font-size: 12.5px; color: var(--muted); }
.tk-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); color: #fff; flex: none; } .tk-dot.a { background: var(--ink-700); } .tk-dot.b { background: var(--blue-600); }
.tk-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #E6EEFF; color: var(--blue-700); border: 0; flex: none; cursor: pointer; }
.pos-top .tk-ic { background: #0B1A2E; color: #A9B8CE; }
.tk-note { margin: 0; padding: 8px 14px; font-size: 12.5px; color: #6E4300; background: #FFF8E6; }
.tk footer { padding: 12px 14px; }
.pos-btn { width: 100%; height: 54px; border-radius: 12px; border: 0; background: var(--blue-600); color: #fff; font: 600 15px var(--font); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.pos-btn.ok { background: var(--ok); } .pos-btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line-2); height: 44px; } .pos-btn.ghost.danger { color: var(--danger); }
.tk-done { display: block; text-align: center; font: 600 13px var(--font); padding: 8px; border-radius: 8px; } .tk-done.ok { background: var(--ok-bg); color: var(--ok); } .tk-done.ko { background: var(--danger-bg); color: var(--danger); }
.pos-empty { text-align: center; padding: 50px 20px; color: #6E80A0; } .pos-empty .ic { margin: 0 auto 10px; display: block; }
.pos-refresh { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); height: 46px; padding: 0 20px; border-radius: 99px; border: 1px solid #16304F; background: #0B1A2E; color: #fff; font: 600 14px var(--font); display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@media (max-width: 420px) { .pos-tabs button { font-size: 11.5px; } .pos-stats b { font-size: 18px; } }
.pos-tabs { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pos-tabs::-webkit-scrollbar { display: none; }
.pos-tabs button { flex: 1 0 auto; padding: 0 12px; white-space: nowrap; }
.pos-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.gps { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); color: #7F92B0; }
.gps i { width: 8px; height: 8px; border-radius: 50%; background: #6E80A0; } .gps.on { color: #6EE7B7; } .gps.on i { background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); } .gps.off i { background: #F59E0B; }
.pos-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid #16304F; background: #0B1A2E; color: #C5D0E0; font: 600 12.5px var(--font); cursor: pointer; }
.pos-chip input { width: 16px; height: 16px; margin: 0; }
.pos-group { background: #0B1A2E; border: 1px solid #16304F; border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.pg-h { display: flex; gap: 10px; align-items: center; }
.pg-h b { color: #fff; display: block; font-size: 15px; } .pg-h small { display: block; color: #7F92B0; font-size: 12.5px; } .pg-h small em { color: #6EE7B7; font-style: normal; font-weight: 600; } .pg-h small.pg-flow { color: #A9C4FF; font-weight: 500; }
.pg-h .tk-dot { width: 34px; height: 34px; font-size: 13px; }
.pos-sep { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; padding: 6px 2px 0; } .pos-sep i { font: 600 11px var(--mono); font-style: normal; background: #16304F; border-radius: 99px; padding: 2px 8px; }
.tk-zone { display: inline-block; font: 600 10.5px var(--mono); color: var(--blue-700); background: var(--blue-100); border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.tk-tag.ok { background: var(--ok-bg); color: var(--ok); }
.pos-map { height: 52vh; min-height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid #16304F; background: #0B1A2E; }
.pos-card { background: #0B1A2E; border: 1px solid #16304F; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.pos-card ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; }
.pos-card li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; color: #E2E8F2; font-size: 13.5px; }
.pos-card li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); background: var(--ink-700); color: #fff; }
.pos-card li.b::before { background: var(--blue-600); } .pos-card li small { color: #7F92B0; font-size: 12px; } .pos-card li.muted { display: block; } .pos-card li.muted::before { display: none; }
.pos-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #A9B8CE; } .pos-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pos-legend .mk { width: 20px; height: 20px; font-size: 10px; }
/* Marqueurs de carte */
.mk { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; font: 700 11px var(--mono); color: #fff; background: var(--ink-700); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(4,10,20,.45); transform: rotate(0); }
.mk.a { background: #C2410C; } .mk.a.ready { background: var(--ok); } .mk.b { background: var(--blue-600); } .mk.ko { background: var(--danger); } .mk.start { background: #0F9D58; border-radius: 50%; }
.mk.me { width: 18px; height: 18px; border-radius: 50%; background: #1F5BEA; box-shadow: 0 0 0 6px rgba(31,91,234,.25); }
.mk.home { width: 34px; height: 34px; background: var(--blue-600); }
.mk.home::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.map-off { height: 100%; min-height: 160px; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 13px; background: var(--surface-3); }
.leaflet-container { font: 13px var(--font); }
.leaflet-popup-content { margin: 10px 12px; line-height: 1.45; }
/* Journée du livreur */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; color: #fff; }
.day-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #0B1A2E; border: 1px solid #16304F; color: #C5D0E0; } .day-btn.off { visibility: hidden; }
.day-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.day-kpi div { background: #0B1A2E; border: 1px solid #16304F; border-radius: 12px; padding: 10px; text-align: center; } .day-kpi b { display: block; font: 600 22px/1.1 var(--font); color: #fff; } .day-kpi span { font-size: 11px; color: #7F92B0; }
.day-card { background: #fff; color: var(--text); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.day-map { height: 340px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.day-meta { margin-top: 10px; color: var(--muted); }
/* Version admin (fond clair) */
.main .day .day-nav { color: var(--text); } .main .day .day-btn { background: var(--surface); border-color: var(--line); color: var(--text-2); }
.main .day .day-kpi div { background: var(--surface); border-color: var(--line); } .main .day .day-kpi b { color: var(--text); } .main .day .day-kpi span { color: var(--muted); }
.main .day .day-card { border: 1px solid var(--line); }
/* Livraisons côté organisation */
.dl-actions { display: grid; gap: 10px; margin-bottom: 16px; }
.dl-act { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--blue-50); border: 1px solid #C9D8FB; color: inherit; flex-wrap: wrap; }
.dl-act.warn { background: var(--warn-bg); border-color: #F1D49B; }
.dl-act b { display: block; } .dl-act small { color: var(--text-2); font-size: 13px; }
.dl-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--blue-600); flex: none; } .dl-act.warn .dl-ic { color: var(--warn); }
.dl-list { display: grid; }
.dl-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dl-row:hover { background: var(--surface-2); } .dl-row:last-child { border-bottom: 0; }
.dl-main { flex: 1; min-width: 0; } .dl-to { font-weight: 500; margin: 4px 0 2px; } .dl-side { flex: none; display: flex; align-items: center; gap: 6px; }
.dl-map { height: 280px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 640px) { .dl-row { padding: 12px 14px; align-items: flex-start; flex-direction: column; } .dl-side { width: 100%; } .dl-side form, .dl-side .btn { width: 100%; } .dl-act .btn { width: 100%; } .day-kpi b, .pos-stats b { font-size: 18px; } }
@media (max-width: 1080px) { .dl-detail > aside { order: -1; } }
@media (max-width: 640px) { .card-h .hide-sm, .dl-legend { display: none; } }
/* Adresse & certification */
.addr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.addr-steps .as { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.addr-steps .as i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); font-style: normal; background: var(--surface-3); color: var(--muted); flex: none; }
.addr-steps .as b { display: block; font-size: 13.5px; } .addr-steps .as small { color: var(--muted); font-size: 12px; }
.addr-steps .as.on { border-color: var(--blue-400); } .addr-steps .as.on i { background: var(--blue-600); color: #fff; }
.addr-steps .as.done i { background: var(--ok); color: #fff; } .addr-steps .as.done { background: var(--ok-bg); border-color: #BFE3CF; }
.addr-map-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.addr-map { height: 320px; background: var(--surface-3); }
.addr-map-bar { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--line); flex-wrap: wrap; }
.cert-seal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; box-shadow: 0 0 0 5px var(--ok-bg); }
.cert-seal.wait { background: var(--blue-600); box-shadow: 0 0 0 5px var(--blue-100); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 18px; text-align: center; cursor: pointer; background: var(--surface-2); color: var(--text-2); }
.drop input { display: block; margin: 0 auto 8px; max-width: 100%; }
.badge-cert { display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--font); color: var(--ok); background: var(--ok-bg); border-radius: 99px; padding: 2px 8px; }
@media (max-width: 640px) { .addr-steps { grid-template-columns: 1fr; gap: 6px; } .addr-steps .as { padding: 8px 10px; } .addr-map { height: 260px; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.proof { display: grid; grid-template-columns: 340px minmax(0, 1fr); overflow: hidden; }
.proof-doc { background: var(--surface-3); padding: 12px; display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); }
.proof-doc img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 6px; background: #fff; }
.proof-doc iframe { width: 100%; height: 420px; border: 0; border-radius: 6px; background: #fff; }
.proof-info { padding: 16px 18px; min-width: 0; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } .proof-doc { border-right: 0; border-bottom: 1px solid var(--line); } .proof-doc iframe, .proof-doc img { height: 300px; } }
/* Équiper ma porte */
.eq-free { display: flex; gap: 24px; align-items: center; padding: 20px; flex-wrap: wrap; }
.eq-sticker-prev { flex: none; }
.eq-st { width: 170px; border-radius: 16px; background: linear-gradient(160deg, #0B1B33, #03070F); padding: 16px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; box-shadow: 0 14px 30px -12px rgba(4,10,20,.55); transform: rotate(-3deg); }
.eq-st img { width: 70%; } .eq-st .qr { background: #fff; padding: 6px; border-radius: 8px; width: 96px; } .eq-st b { font-size: 11px; letter-spacing: .06em; } .eq-st small { color: #38B6FF; font-size: 10.5px; font-weight: 600; }
.eq-prod { overflow: hidden; display: flex; flex-direction: column; } .eq-prod.feat { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.eq-prod .card-b { flex: 1; display: flex; flex-direction: column; }
.eq-ill { height: 170px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #EAF0FA, #D8E0EC); position: relative; overflow: hidden; }
.eq-ill::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(#C9D2DF, #BAC4D3); }
.bx { position: relative; z-index: 1; width: 112px; height: 134px; perspective: 400px; }
.bx-slot { position: absolute; top: 0; left: 6px; right: 6px; height: 16px; border-radius: 6px 6px 0 0; background: #0E1E35; transform: rotateX(48deg); transform-origin: bottom; }
.bx-front { position: absolute; top: 12px; left: 0; right: 0; bottom: 0; border-radius: 8px; background: linear-gradient(160deg, #10284A, #050C18); box-shadow: 0 12px 20px -8px rgba(4,10,20,.6), inset 0 0 0 2px rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 10px; }
.bx-front::before { content: ''; position: absolute; left: 12px; right: 12px; top: 6px; height: 3px; border-radius: 2px; background: #000; opacity: .55; }
.bx-front img, .pl img { width: 78%; } .bx .q, .pl .q { width: 58px; background: #fff; padding: 4px; border-radius: 5px; }
.pl { position: relative; z-index: 1; width: 128px; border-radius: 10px; background: linear-gradient(160deg, #10284A, #050C18); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 12px 20px -8px rgba(4,10,20,.6); }
.pl::before, .pl::after { content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #8A99B0; } .pl::before { left: 6px; } .pl::after { right: 6px; }
.st3 { position: relative; z-index: 1; width: 150px; height: 120px; }
.st3 span { position: absolute; width: 74px; height: 92px; border-radius: 10px; background: linear-gradient(160deg, #10284A, #050C18); box-shadow: 0 8px 16px -8px rgba(4,10,20,.6); display: grid; place-items: center; }
.st3 span:nth-child(1) { left: 0; top: 18px; transform: rotate(-10deg); } .st3 span:nth-child(2) { left: 38px; top: 6px; transform: rotate(-2deg); } .st3 span:nth-child(3) { left: 76px; top: 14px; transform: rotate(8deg); }
.st3 i { width: 48px; background: #fff; padding: 3px; border-radius: 4px; }
.eq-how > div { display: grid; gap: 4px; align-content: start; } .eq-how i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; font: 700 12px var(--mono); font-style: normal; margin-bottom: 4px; }
@media (max-width: 640px) { .eq-free { flex-direction: column; text-align: center; } .eq-free .row { justify-content: center; } }
.dlv-choice { display: grid; gap: 8px; }
.dlv-choice label { position: relative; cursor: pointer; }
.dlv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.dlv-choice span { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.dlv-choice span .ic { grid-row: span 2; margin-top: 2px; color: var(--muted); }
.dlv-choice b { font-size: 13.5px; } .dlv-choice small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dlv-choice input:checked + span { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); } .dlv-choice input:checked + span .ic { color: var(--blue-600); }
.dlv-choice input:focus-visible + span { outline: 2px solid var(--blue-500); }
.bulk-row { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); color: inherit; } .bulk-row:hover { background: var(--surface-2); }
.bulk-prev { font: 14px/1.6 var(--serif); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; max-height: 360px; overflow: auto; }
.bulk-prev p { margin: 0 0 .8em; }
.tk-leg small.tk-cert { display: block; color: var(--ok); font-weight: 600; font-size: 11.5px; margin-top: 2px; }
.tk-leg small.tk-ext { display: block; color: var(--warn); font-weight: 600; font-size: 11.5px; margin-top: 2px; }
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-grid .kpi { padding: 12px; } .kpi-grid .kpi .v { font-size: 24px; } .kpi-grid .kpi .s { font-size: 11.5px; }
  .pile, .pile-top { min-height: 112px; } .piles { padding-top: 16px; align-items: start; }
  .card-h { flex-wrap: wrap; row-gap: 4px; }
}
.addr-valid { margin: 0; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--line); font-size: 13px; }
.ct-map { height: 460px; }
.geo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 4px; } .geo-dot.ok { background: var(--ok); }
/* Configuration du système */
.sys-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sys-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; }
.sys-tabs a.on { background: var(--ink-900); color: #fff; border-color: var(--ink-900); } .sys-tabs a.danger { color: var(--danger); } .sys-tabs a.danger.on { background: var(--danger); color: #fff; border-color: var(--danger); }
.wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.wz-steps { display: grid; gap: 4px; position: sticky; top: 80px; }
.wz-steps a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: var(--text-2); font-size: 14px; }
.wz-steps a i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); font-style: normal; background: var(--surface-3); color: var(--muted); flex: none; }
.wz-steps a.on { background: var(--surface); box-shadow: var(--sh-sm); color: var(--text); font-weight: 600; } .wz-steps a.on i { background: var(--blue-600); color: #fff; } .wz-steps a.done i { background: var(--ok); color: #fff; }
.wz-profiles label { position: relative; cursor: pointer; } .wz-profiles input { position: absolute; opacity: 0; }
.wz-profiles span { display: block; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); height: 100%; } .wz-profiles small { display: block; color: var(--muted); margin-top: 4px; font-size: 12.5px; }
.wz-profiles input:checked + span { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.wz-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; background: var(--surface-2); } .wz-card:hover { border-color: var(--blue-400); color: inherit; } .wz-card span { font-size: 13px; color: var(--muted); } .wz-card .ic { color: var(--blue-600); }
.wz-check { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; } .wz-check li { padding: 10px 12px 10px 38px; border-radius: var(--r); background: var(--warn-bg); position: relative; font-size: 14px; }
.wz-check li::before { content: '!'; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.wz-check li.ok { background: var(--ok-bg); } .wz-check li.ok::before { content: '✓'; background: var(--ok); }
.test-scope ul, .reset-card ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; font-size: 13.5px; color: var(--text-2); }
.reset-card { border-color: #F4C7C2; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .wz-steps { position: static; display: flex; overflow-x: auto; } .wz-steps a span { white-space: nowrap; } }
.vis-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
.vis-opt { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.vis-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; } .vis-opt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.vis-opt:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.vis-prev { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px; background: var(--surface-2); }
@media (max-width: 800px) { .vis-grid { grid-template-columns: 1fr; } }
/* Cycle animé « Comment ça marche » */
.cycle-sec { overflow: hidden; }
.cycle-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cycle { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin: 0 auto; }
.cy-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cy-track { fill: none; stroke: #16304F; stroke-width: 2; stroke-dasharray: 3 7; }
.cy-prog { fill: none; stroke: url(#cyg); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.cy-inner { fill: #0A1729; stroke: #12284A; stroke-width: 1; }
.cy-nodes { position: absolute; inset: 0; }
.cy-node { position: absolute; width: 13%; aspect-ratio: 1; min-width: 44px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #22436B; background: #0B1A2E; color: #7F92B0; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .35s, color .35s, border-color .35s, box-shadow .35s, transform .35s; }
.cy-node svg { width: 42%; height: 42%; }
.cy-node b { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 11.5px var(--font); color: #7F92B0; transition: color .35s; }
.cy-node.done { border-color: #2F6FD8; color: #9CC3FF; }
.cy-node.on { background: linear-gradient(140deg, #38B6FF, #1747C9); border-color: #7CC8FF; color: #fff; transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 8px rgba(31,91,234,.18), 0 0 36px rgba(56,182,255,.5); }
.cy-node.on b { color: #fff; }
.cy-center { position: absolute; inset: 31%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.cy-n { font: 700 clamp(30px, 5vw, 52px)/1 var(--mono); background: linear-gradient(140deg, #38B6FF, #4C82FF); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.cy-center b { color: #fff; font-size: clamp(14px, 1.6vw, 18px); margin-top: 6px; line-height: 1.2; }
.cy-center small { color: #6E80A0; font-size: 11.5px; margin-top: 4px; }
.cy-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: #0B1A2E; border: 1px solid #16304F; margin-bottom: 18px; flex-wrap: wrap; }
.cy-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; border: 0; background: none; color: #A9B8CE; font: 600 13.5px var(--font); cursor: pointer; }
.cy-tabs button.on { background: var(--blue-600); color: #fff; }
.cy-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cy-steps li { border-radius: 12px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.cy-steps li button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; border: 0; background: none; color: #A9B8CE; font: 600 15px var(--font); text-align: left; cursor: pointer; }
.cy-i { font: 600 12px var(--mono); color: #4E6385; width: 22px; }
.cy-steps li p { margin: 0; padding: 0 14px 0 50px; max-height: 0; overflow: hidden; color: #93A4BE; font-size: 14.5px; line-height: 1.55; transition: max-height .45s ease, padding .45s ease; }
.cy-steps li.on { background: #0B1A2E; border-color: #1C3A63; }
.cy-steps li.on button { color: #fff; } .cy-steps li.on .cy-i { color: var(--glow); }
.cy-steps li.on p { max-height: 140px; padding-bottom: 14px; }
.cy-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 960px) { .cycle-wrap { grid-template-columns: 1fr; gap: 36px; } .cycle { max-width: 420px; } }
@media (max-width: 480px) { .cy-node b { display: none; } .cy-node { min-width: 38px; } .cy-steps li button { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .cy-node, .cy-steps li p, .cy-prog { transition: none; } }
@media (max-width: 560px) { .cy-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; width: 100%; } .cy-tabs button { justify-content: center; padding: 0 8px; font-size: 12.5px; border-radius: 10px; } .cy-tabs button .ic { display: none; } }
.share-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.share-box input { flex: 1; min-width: 180px; height: 30px; font: 12px var(--mono); }
/* Connexion sociale & inscription d'équipe */
.social-auth { margin: 16px 0 6px; }
.social-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; } .social-or::before, .social-or::after { content: ''; flex: 1; height: 1px; background: var(--line); } .social-or span:empty { display: none; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-btn { justify-content: center; gap: 8px; height: 42px; font-weight: 500; background: var(--surface); }
.svc-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-pick label { position: relative; cursor: pointer; } .svc-pick input { position: absolute; opacity: 0; }
.svc-pick span { display: inline-block; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; background: var(--surface); }
.svc-pick input:checked + span { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.inv-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 8px; }
.reg-team { padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); margin: 6px 0 14px; background: var(--surface-2); }
@media (max-width: 480px) { .social-grid { grid-template-columns: 1fr; } .inv-row { grid-template-columns: 1fr; } }
.wa-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 4px rgba(37,211,102,.18); vertical-align: 2px; margin-right: 4px; }
/* Écrire sans compte */
.wz-line { list-style: none; display: flex; gap: 8px; padding: 0; margin: 22px 0 0; flex-wrap: wrap; }
.wz-line li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.06); color: #A9B8CE; font-size: 13px; }
.wz-line i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); font-style: normal; background: rgba(255,255,255,.12); color: #fff; }
.wz-line li.on { background: var(--blue-600); color: #fff; } .wz-line li.done i { background: var(--ok); }
.recap-line { display: flex; gap: 12px; align-items: center; }
.write-acc .card h3 { margin-bottom: 12px; }
.org-actions { display: flex; gap: 8px; margin-top: 4px; } .org-actions .btn { flex: 1; white-space: nowrap; justify-content: center; padding-left: 10px; padding-right: 10px; }
@media (max-width: 900px) { .invite-card .card-b { grid-template-columns: 1fr !important; } }
/* Maps COURRIER */
.map-hero { background: var(--ink-950); color: #C5D0E0; padding: 40px 0 26px; }
.map-hero h1 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); margin: 8px 0 6px; } .map-hero p { margin: 0; max-width: 760px; color: #A9B8CE; }
.map-shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 72px); min-height: 520px; border-top: 1px solid #12223A; }
.map-side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.map-search { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.map-search input { width: 100%; }
.map-types { display: flex; flex-wrap: wrap; gap: 6px; } .map-types .tag { cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); } .map-types .tag.on { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.map-count { padding: 10px 14px 6px; }
.map-list { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.map-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 8px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; font: inherit; color: inherit; }
.map-item:hover { background: var(--surface-2); } .map-item b { display: block; font-size: 13.5px; line-height: 1.3; } .map-item small { color: var(--muted); font-size: 12px; }
.map-main, .map-main #omap { height: 100%; } #omap { background: var(--surface-3); }
.om-pin { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(4,10,20,.4); font: 700 9.5px var(--font); color: #fff; letter-spacing: .02em; }
.om-pin::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top: 7px solid #fff; border-bottom: 0; }
.om-cl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); color: #fff; font: 700 13px var(--font); border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(23,71,201,.25); }
.om-pop { font-size: 13px; } .om-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .om-h b { display: block; font-size: 14px; line-height: 1.25; } .om-h small { color: var(--muted); }
.om-av { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 12px var(--font); background: var(--ink-700); flex: none; overflow: hidden; } .om-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; } .om-av.sm { width: 32px; height: 32px; font-size: 11px; }
.om-body { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--surface-2); border-radius: 8px; }
.om-qr { width: 96px; flex: none; background: #fff; border-radius: 6px; padding: 3px; } .om-lbl { display: block; font-size: 11px; color: var(--muted); } .om-body b.mono { display: block; font-size: 14px; letter-spacing: .04em; margin: 2px 0 6px; } .om-act { display: block; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.om-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; } .om-btns .btn { justify-content: center; padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
.om-btns .btn-primary { color: #fff; } .om-more { display: block; text-align: center; margin-top: 8px; font-size: 12.5px; }
.leaflet-popup-content-wrapper { border-radius: 12px; } .leaflet-popup-content { margin: 12px; }
.dir-map { height: 560px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 900px) { .map-shell { grid-template-columns: 1fr; height: auto; } .map-side { max-height: 46vh; border-right: 0; } .map-main #omap { height: 70vh; } .map-hero { padding-top: 28px; } .dir-map { height: 70vh; } }

/* Débriefing administrateur */
.seg-mini{display:flex;gap:2px;background:var(--surface-2,#F1F4F9);border-radius:9px;padding:3px}
.seg-mini a{font-size:12px;padding:4px 9px;border-radius:7px;color:var(--muted);font-weight:600}
.seg-mini a.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,23,42,.08)}
.db-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px}
.db-kpis a{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;color:inherit;background:#fff}
.db-kpis a:hover{border-color:var(--blue-500)}
.db-kpis b{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
.db-kpis span{font-size:13px;font-weight:600}
.db-kpis small{font-size:11.5px;color:var(--muted)}
.db-kpis a.warn{border-color:#F3C77A;background:#FFFAF0}
.db-kpis a.bad{border-color:#F2A6A6;background:#FFF5F5}.db-kpis a.bad b{color:var(--danger)}
.db-cols{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px}
.db-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);color:inherit}
.db-row:last-child{border-bottom:0}.db-row b{display:block;font-size:13.5px}.db-row small{display:block;font-size:12px}
.table.tight td,.table.tight th{padding:7px 8px}.table .num{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:1100px){.db-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.db-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.db-cols{grid-template-columns:1fr}}
.bc-opt{align-items:flex-start;padding:10px 12px;border:1px dashed var(--line);border-radius:10px;margin-bottom:12px}
/* Offres & annonces */
.tag.pub{background:#FFF4D6;color:#8A5A00}
.ad-why{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}
.ad-why .card-b{display:flex;flex-direction:column;gap:6px}.ad-why p{margin:0}
.ad-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:22px;align-items:start}
.ad-reach .row b{display:block;font-size:28px;line-height:1.1}.ad-reach .row span{font-size:12.5px;color:var(--muted)}
.ad-steps{margin:8px 0 0;padding-left:20px;line-height:1.9;font-size:14px}
@media (max-width:900px){.ad-why{grid-template-columns:1fr 1fr}.ad-grid{grid-template-columns:1fr}}
@media (max-width:520px){.ad-why{grid-template-columns:1fr}}
.pc-own{margin:-4px 0 4px 30px;padding:12px;border:1px dashed var(--line);border-radius:10px}
/* Équipement entreprise */
.wbx{position:relative;z-index:1;width:178px;height:128px;border-radius:9px;background:linear-gradient(160deg,#16345F,#071226);box-shadow:0 14px 22px -10px rgba(4,10,20,.6);padding:20px 10px 10px}
.wbx-slot{position:absolute;top:7px;left:20px;right:20px;height:7px;border-radius:4px;background:#02060D;box-shadow:0 -2px 0 #2A4A78}
.wbx-doors{display:grid;grid-template-columns:1fr 1fr;gap:6px;height:100%}
.wbx-doors>div{border:1.5px solid #2F5287;border-radius:5px;display:flex;justify-content:center;padding-top:5px}
.wbx-doors small{font-size:7px;letter-spacing:.12em;color:#9DB6F5;font-weight:700}
.wbx-plate{position:absolute;left:50%;top:50%;transform:translate(-50%,-38%);background:#fff;border-radius:6px;padding:5px;display:flex;flex-direction:column;align-items:center;gap:3px;width:58px}
.wbx-plate img{width:100%;filter:invert(1) hue-rotate(180deg)}.wbx-plate .q{width:44px}
.eq-ill svg.car{position:relative;z-index:1;width:200px}
.eq-pro-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}
.wb-draw{width:100%;height:auto;background:#F7F9FC;border-radius:12px;border:1px solid var(--line)}
.table.spec th{width:34%;font-weight:600;color:var(--muted);text-align:left}
@media (max-width:900px){.eq-pro-grid{grid-template-columns:1fr}}
/* Usages (accueil) */
.use-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.use{display:flex;flex-direction:column;gap:8px}.use h3{margin:6px 0 0;font-size:17px}.use p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.6;flex:1}.use a{font-weight:600;font-size:14px}
@media (max-width:980px){.use-grid{grid-template-columns:1fr 1fr}}@media (max-width:620px){.use-grid{grid-template-columns:1fr}}
/* Annonces dans la boîte & encarts */
.badge.pub{background:#FFF4D6;color:#8A5A00;border-color:#F3D58A}
.mitem.is-pub{background:linear-gradient(90deg,#FFFCF3,transparent 60%)}
.mitem.is-pub .obj{color:var(--muted)}
.ad-slot{position:relative;display:flex;align-items:center;gap:14px;padding:12px 40px 12px 14px;border:1px solid #EFE3C2;background:linear-gradient(120deg,#FFFDF6,#FFF8E6);border-radius:12px;margin:14px 0;font-size:13.5px}
.ad-slot .ad-lbl{position:absolute;top:-9px;left:12px;background:#fff;border:1px solid #EFE3C2;color:#8A5A00;font-size:10.5px;font-weight:600;letter-spacing:.04em;padding:1px 8px;border-radius:99px}
.ad-slot .ad-img{width:64px;height:64px;object-fit:cover;border-radius:9px;flex:none}
.ad-slot .ad-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.ad-slot .ad-txt span{color:var(--muted);font-size:12.5px}
.ad-slot .ad-x{position:absolute;top:6px;right:8px;border:0;background:none;color:#A08A55;font-size:18px;line-height:1;cursor:pointer}
.ad-courrier,.ad-factures{flex-direction:column;align-items:flex-start;padding-right:14px}
.ad-courrier .ad-img{width:100%;height:120px}
@media (max-width:620px){.ad-slot{flex-wrap:wrap}}
.slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
/* Menu super-admin */
.adm-nav .adm-back{color:#8FA2BE;font-size:13px;height:32px;margin-bottom:4px}
.adm-title{display:flex;align-items:center;gap:8px;margin:2px 4px 2px;padding:10px 10px;border-radius:9px;background:rgba(56,182,255,.1);color:#fff;font-weight:600;font-size:14px}
.adm-sub{display:flex;flex-direction:column;margin:0 0 4px 30px;border-left:1px solid #1E3557;padding-left:8px}
.side nav .adm-sub a{height:28px;font-size:12.8px;color:#8FA2BE;padding:0 8px}
.side nav .adm-sub a.on{color:#fff;background:rgba(255,255,255,.06);box-shadow:none}
.side nav a.adm-entry{background:rgba(56,182,255,.08);color:#fff}
.side nav a.adm-entry .ic:last-child{margin-left:auto}
.tag.bill{background:#E8F3FF;color:#0B5CAD}
.bill-mode{border:1px solid #CFE0F7;background:#F5F9FF;border-radius:12px;padding:12px;margin-bottom:14px}
/* Mes factures */
.bills-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}
.ref-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;padding:16px}
.ref-card{position:relative;border:1px solid var(--line);border-left:4px solid var(--c);border-radius:10px;padding:12px 14px;background:#fff}
.ref-card .ref-x{position:absolute;top:4px;right:6px;border:0;background:none;color:var(--muted);font-size:17px;cursor:pointer}
.bill-ex{margin:8px 0 0}.bill-ex svg{width:100%;height:auto;display:block;border-radius:10px;box-shadow:0 10px 24px -16px rgba(13,24,40,.4)}
.bill-ex figcaption{font-size:12.5px;line-height:1.6;margin-top:8px;display:flex;flex-direction:column;gap:3px}
.bill-ex .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
.bills-nudge{display:flex;gap:14px;align-items:center;border:1px solid #CFE0F7;background:linear-gradient(120deg,#F5F9FF,#fff);border-radius:14px;padding:14px 16px;margin-bottom:18px}
@media (max-width:1000px){.bills-grid{grid-template-columns:1fr}}
.sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px;vertical-align:middle}
.ad-offers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.ad-offers>div{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#FBFCFE}
.ad-offers>div>b{display:block;font-size:22px;color:var(--blue-600)}.ad-offers span{font-size:12.5px;color:var(--muted);line-height:1.5}
.tier-tbl td,.tier-tbl th{padding:8px 12px}.tier-tbl td.num{font-weight:700}
.price-grid.plans{grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width:980px){.price-grid.plans{grid-template-columns:1fr 1fr}}@media (max-width:620px){.price-grid.plans{grid-template-columns:1fr}}
.zone-tarif{border-top:1px solid var(--line)}.zone-tarif .table{margin:0}
.aud-opts{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
/* Abonnés */
.fol-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}
.fol-groups{display:flex;flex-direction:column;padding:8px}
.fol-groups a{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;color:inherit;font-size:14px}
.fol-groups a.on,.fol-groups a:hover{background:var(--surface-2,#F1F4F9)}.fol-groups a b{font-variant-numeric:tabular-nums;color:var(--muted)}
.follow-box{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;text-align:left}
.follow-box b{font-size:18px;display:block}.follow-box small{color:var(--muted);font-size:12px}
.btn.following{background:#E8F7EF;border-color:#A7DDBF;color:#0F6E47}
.avis-list a{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--line);color:inherit}.avis-list a:first-child{border-top:0}
@media (max-width:900px){.fol-grid{grid-template-columns:1fr}}
.om-foot{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--muted);margin:8px 0 2px}.om-foot a{font-weight:600}
.diff-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px}.diff-kpis div{display:flex;flex-direction:column}.diff-kpis b{font-size:20px}.diff-kpis span{font-size:11.5px;color:var(--muted)}
.diff-list{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto;margin-top:8px}
.otp-in{font:600 26px var(--mono);letter-spacing:8px;text-align:center}
.db-kpis>div{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.db-kpis>div b{font-size:24px;line-height:1.1}.db-kpis>div span{font-size:13px;font-weight:600}.db-kpis>div small{font-size:11.5px;color:var(--muted)}
/* Paiements */
.pay-card{border-color:#CFE0F7}.pay-card.paye{border-color:#BFE6CF;background:#F5FCF8}.pay-card.en_verification{border-color:#F3D58A}
.pay-vir summary{cursor:pointer;font-size:13px;font-weight:600;padding:8px 0}
.tag.topay{background:#FFF0E5;color:#A04800}.tag.paid{background:#E7F7EE;color:#0F6E47}
.pay-field select,.pay-field input{width:100%}
.map-notiles::after{content:'Fond de carte indisponible : vérifiez la connexion internet de cet appareil. Les adresses restent affichées.';position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:500;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 12px;font-size:12.5px;color:var(--muted);box-shadow:0 6px 18px -10px rgba(0,0,0,.3)}
.embed-code{width:100%;font:11.5px/1.4 var(--mono);border:1px solid var(--line);border-radius:8px;padding:8px;background:#F7F9FC;resize:none}
.crm-f select,.crm-f input{height:30px;font-size:12.5px}.crm-f textarea{font-size:12.5px}
.foot-qr{display:flex;gap:12px;align-items:center;margin-top:14px;color:inherit;max-width:320px}
.foot-qr>span:first-child{width:74px;flex:none;background:#fff;padding:5px;border-radius:8px}.foot-qr svg{display:block;width:100%;height:auto}
.foot-qr b{display:block;color:#fff;font-size:14px}.foot-qr small{font-size:12px;color:#8FA2BE}
/* Solutions & contact */
.sol-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.sol{display:flex;flex-direction:column;gap:8px}.sol h3{margin:4px 0 0;font-size:17px}.sol p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.6}.sol .checks{margin:6px 0 0;font-size:13.5px}
.sol-cta{display:flex;gap:24px;align-items:center;margin-top:22px;background:linear-gradient(120deg,#F5F9FF,#fff)}
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:start}
.qr-big{width:220px;margin:0 auto}.qr-big svg{width:100%;height:auto;display:block}
@media(max-width:980px){.sol-grid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.sol-grid,.contact-grid{grid-template-columns:1fr}.sol-cta{flex-direction:column;align-items:stretch}}

/* ---------- Coffre-fort COURRIER ---------- */
.seg button { flex: 1; border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 5px; font: 500 13px/1.1 var(--font); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.card-h .seg { width: auto; max-width: 100%; overflow-x: auto; }
.vault-hero { margin-bottom: 16px; }
.vault-hero .gauge { position: relative; width: 150px; height: 150px; flex: none; }
.vault-hero .gauge .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.vault-hero .gauge b { display: block; font: 600 26px/1 var(--font); }
.vault-hero .gauge small { font-size: 12px; color: var(--muted); }
.vault-stats b { font-size: 17px; }
.vault-own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.vault-own > div { background: linear-gradient(160deg, #0B1B33, #12305A); color: #C5D0E0; border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.vault-own svg { color: #6FB3FF; }
.vault-own b { color: #fff; font-size: 14px; }
.vault-own span { font-size: 12.5px; line-height: 1.45; }
.vgb { font: 700 30px/1 var(--font); letter-spacing: -.02em; color: var(--blue-600); }
.vconn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.vconn { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; cursor: pointer; position: relative; font: inherit; color: inherit; }
.vconn:hover { border-color: var(--blue-400); }
.vconn.on { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--info-bg); }
.vconn small { color: var(--muted); font-size: 12px; }
.vconn .badge { position: absolute; top: 10px; right: 10px; }
.vform { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; background: var(--surface-2, #F7F9FC); margin-bottom: 12px; }
.vform .span2 { grid-column: 1 / -1; }
.vassist summary { cursor: pointer; font-weight: 500; font-size: 14px; display: flex; gap: 6px; align-items: center; }
@media (max-width: 760px) {
  .vault-own, .vconn-grid { grid-template-columns: 1fr; }
  .vault-hero .gauge { margin: 0 auto; }
}

/* ---------- Courriers joints (« @ ») ---------- */
.cr-link { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; margin: 0 1px; border-radius: 999px; background: #EAF1FF; color: #1747C9; border: 1px solid #C9D9FB; font-size: .9em; font-weight: 500; white-space: normal; user-select: all; }
.cr-link::before { content: '@'; font-weight: 700; opacity: .7; }
.fi.lnk { background: #EAF1FF; color: #1747C9; font-weight: 700; }
.link-pop { position: fixed; z-index: 1200; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 50px rgba(7,17,31,.22); overflow: hidden; }
.link-pop .lp-h { padding: 8px; border-bottom: 1px solid var(--border); }
.link-pop .lp-h input { width: 100%; }
.link-pop.from-editor .lp-h { display: none; }
.link-pop .lp-list { max-height: 260px; overflow-y: auto; padding: 4px; }
.link-pop .lp-it { display: grid; gap: 1px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.link-pop .lp-it b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-pop .lp-it small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-pop .lp-it.on, .link-pop .lp-it:hover { background: #EEF4FF; }
.link-pop .lp-ref { font: 500 11px/1.2 var(--mono, 'IBM Plex Mono', monospace); color: #1747C9; }
.link-pop .lp-empty { padding: 14px; font-size: 13px; color: var(--muted); }
.link-pop .lp-f { padding: 6px 10px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface-3); }
@media print { .cr-link { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; } }
.v-joint { width: min(860px, 100%); height: 80vh; border: 0; background: #fff; border-radius: 6px; }

/* ---------- Marque blanche ---------- */
.wl-brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.wl-brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px; }
.wl-brand b { display: block; font-size: 15px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.wl-brand small { display: block; font-size: 10.5px; color: #8EA0BB; letter-spacing: .02em; }
.input-pre { display: flex; align-items: stretch; border: 1px solid var(--border-2, #D3DBE7); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.input-pre span { display: flex; align-items: center; padding: 0 8px; background: var(--surface-3); color: var(--muted); font-size: 12px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-pre input { border: 0 !important; border-radius: 0 !important; min-width: 0; flex: 1; box-shadow: none !important; }

/* =========================================================
   Page d'entrée : courriers en orbite autour du logo
   ========================================================= */
.portal { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; color: #DCE6F4;
  background: radial-gradient(120% 90% at 50% 45%, #0B1E3B 0%, #06101F 55%, #030812 100%); }
.pt-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.pt-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.pt-bg .g1 { width: 46vw; height: 46vw; left: 27vw; top: 12vh; background: radial-gradient(closest-side, rgba(31,91,234,.55), transparent); animation: ptGlow 14s ease-in-out infinite alternate; }
.pt-bg .g2 { width: 30vw; height: 30vw; left: 6vw; top: 52vh; background: radial-gradient(closest-side, rgba(56,182,255,.32), transparent); animation: ptGlow 18s ease-in-out infinite alternate-reverse; }
.pt-bg .g3 { width: 26vw; height: 26vw; right: 4vw; top: 6vh; background: radial-gradient(closest-side, rgba(245,183,64,.20), transparent); animation: ptGlow 16s ease-in-out infinite alternate; }
.portal::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(140,180,255,.35) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%); }
@keyframes ptGlow { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(3vw,-2vh,0) scale(1.12); } }
.pt-rings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.pt-rings .r { fill: none; stroke: rgba(150,190,255,.16); stroke-width: 1; }
.pt-rings .r1 { stroke: rgba(150,190,255,.22); }
.pt-rings .tk { fill: none; stroke: rgba(170,205,255,.35); stroke-width: 7; stroke-dasharray: 1 46; animation: ptTick 60s linear infinite; }
.pt-rings .tk1 { stroke-dasharray: 1 62; animation-duration: 90s; animation-direction: reverse; }
.pt-rings .tk2 { stroke-dasharray: 1 80; opacity: .7; animation-duration: 120s; }
.pt-rings .halo { fill: none; stroke: rgba(108,196,255,.12); stroke-width: 1; stroke-dasharray: 2 6; }
@keyframes ptTick { to { stroke-dashoffset: -1000; } }
.pt-orbit { position: absolute; inset: 0; z-index: 2; }
.pc { position: absolute; left: 0; top: 0; border: 0; padding: 0; margin: 0; cursor: pointer; will-change: transform, opacity; transition: box-shadow .3s, filter .3s; opacity: 0; font: inherit; color: inherit; background: none; -webkit-tap-highlight-color: transparent; }
.portal.ready .pc { opacity: 1; }
.pc:focus-visible { outline: 2px solid #6CC4FF; outline-offset: 4px; }
/* Courrier miniature */
.pc-doc { width: 128px; height: 170px; border-radius: 9px; background: linear-gradient(180deg, #FFFFFF, #F3F6FB); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.65) inset; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; overflow: hidden; }
.pc-doc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pd-top { display: flex; align-items: center; gap: 6px; }
.pd-logo { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.pd-from { font: 600 7.5px/1.15 var(--font); color: #34445B; text-transform: uppercase; letter-spacing: .04em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-qr { width: 18px; height: 18px; flex: none; background:
  conic-gradient(from 90deg at 3px 3px, #0B1424 25%, transparent 0) 0 0/6px 6px, linear-gradient(#fff, #fff); border: 1.5px solid #0B1424; border-radius: 2px; opacity: .85; }
.pd-kind { margin-top: 4px; font: 700 11.5px/1.15 var(--font); color: #0B1424; letter-spacing: -.01em; }
.pd-kind::after { content: ''; display: block; width: 26px; height: 2px; margin-top: 5px; background: var(--c); border-radius: 2px; }
.pd-l { height: 4px; border-radius: 3px; background: #DCE3EE; }
.pd-amt { margin-top: auto; align-self: flex-end; font: 700 11px/1 var(--mono, 'IBM Plex Mono', monospace); color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 4px 6px; border-radius: 5px; }
.pd-amt.stamp { transform: rotate(-8deg); border: 1.5px solid var(--c); background: transparent; letter-spacing: .12em; }
.pd-foot { margin-top: auto; display: flex; align-items: center; gap: 5px; font: 600 6.5px/1 var(--mono, monospace); color: #7F92B0; letter-spacing: .14em; }
.pd-amt + .pd-foot { margin-top: 6px; }
.pd-foot i { width: 8px; height: 8px; border-radius: 2px; background: #1F5BEA; }
/* Photos */
.pc-photo { width: 178px; height: 120px; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(160,200,255,.25); background: #0B1B33; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.pc.hot { box-shadow: 0 0 0 2px #6CC4FF, 0 24px 60px rgba(31,91,234,.55); }
.pc-photo.hot img { transform: scale(1.06); }
/* Centre */
.pt-center { position: absolute; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -52%); width: min(640px, 90vw); text-align: center; pointer-events: none; }
.pt-center::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 46%; width: 130%; height: 150%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(4,10,20,.86), rgba(4,10,20,.55) 55%, transparent); }
.pt-center a, .pt-center button { pointer-events: auto; }
.pt-mark { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 18px); margin-bottom: 18px; }
.pt-qr { width: clamp(64px, 8.5vw, 104px); aspect-ratio: 1; flex: none; padding: 6px; border-radius: 10px; background: rgba(4,12,26,.9); box-shadow: 0 0 0 1px rgba(108,196,255,.45), 0 0 30px rgba(56,150,255,.45), inset 0 0 18px rgba(56,150,255,.2); animation: ptPulse 4s ease-in-out infinite; }
.pt-qr svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(108,196,255,.8)); }
@keyframes ptPulse { 50% { box-shadow: 0 0 0 1px rgba(108,196,255,.7), 0 0 46px rgba(56,150,255,.65), inset 0 0 18px rgba(56,150,255,.3); } }
.pt-word { width: clamp(220px, 36vw, 470px); height: auto; filter: brightness(1.55) saturate(1.2) drop-shadow(0 0 14px rgba(56,150,255,.55)); }
.pt-tag { margin: 0; font: 600 clamp(26px, 3.6vw, 44px)/1.08 var(--font); color: #fff; letter-spacing: -.025em; }
.pt-tag em { font-family: 'Source Serif 4', Georgia, serif; font-weight: 500; font-style: italic; color: #9FD3FF; letter-spacing: -.01em; }
.pt-sub { margin: 14px auto 0; max-width: 520px; font-size: clamp(14px, 1.3vw, 16.5px); line-height: 1.55; color: #A9B8CE; }
.pt-cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pt-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 4px; font: 600 12.5px/1 var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .14em; text-transform: uppercase; color: #E9F1FF; border: 1px solid rgba(190,215,255,.45); background: rgba(6,16,31,.55); backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s; }
.pt-btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.pt-btn.main { background: #F2F6FF; color: #06101F; border-color: #F2F6FF; }
.pt-btn.main:hover { background: #fff; color: #06101F; transform: translateY(-1px); }
.pt-meta { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font: 500 10.5px/1 var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: #6E83A3; }
.pt-meta span { display: inline-flex; align-items: center; gap: 5px; }
/* Légende au survol */
.pt-caption { position: absolute; z-index: 95; left: 50%; bottom: clamp(18px, 4.5vh, 42px); transform: translateX(-50%); width: min(560px, 92vw); text-align: center; pointer-events: none; }
.pt-caption .k { display: block; font: 600 10.5px/1 var(--mono, monospace); letter-spacing: .22em; text-transform: uppercase; color: #6CC4FF; margin-bottom: 7px; }
.pt-caption::before { content: ''; position: absolute; z-index: -1; inset: -18px -40px -14px; background: radial-gradient(closest-side, rgba(3,8,18,.9), rgba(3,8,18,.6) 60%, transparent); }
.pt-caption b { display: block; font: 600 clamp(17px, 1.8vw, 21px)/1.2 var(--font); color: #fff; }
.pt-caption small { display: block; margin-top: 5px; font-size: 13px; color: #9FB0C8; }
.pt-caption.in { animation: ptCap .45s ease both; }
@keyframes ptCap { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Menu bas gauche */
.pt-menu { position: absolute; z-index: 95; left: clamp(16px, 3vw, 40px); bottom: clamp(20px, 5vh, 44px); display: grid; gap: 4px; }
.pt-menu a { display: flex; align-items: baseline; gap: 10px; font: 600 clamp(12px, 1.05vw, 14px)/1.25 var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .12em; text-transform: uppercase; color: #8FA3C2; transition: color .2s, transform .2s; }
.pt-menu a i { font-style: normal; font-size: 10px; color: #4D6386; }
.pt-menu a:hover { color: #fff; transform: translateX(4px); }
.pt-menu a:hover i { color: #6CC4FF; }
/* Règle à droite */
.pt-ruler { position: absolute; z-index: 1; right: 0; top: 90px; bottom: 60px; width: 54px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.pt-ruler i { display: block; width: 10px; height: 1px; background: rgba(150,190,255,.3); position: relative; }
.pt-ruler i.big { width: 22px; background: rgba(150,190,255,.6); }
.pt-ruler b { position: absolute; right: 28px; top: -6px; font: 500 9.5px/1 var(--mono, monospace); color: #5C7397; }
.pt-scroll { position: absolute; z-index: 95; right: clamp(18px, 3vw, 40px); bottom: clamp(22px, 5vh, 44px); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(190,215,255,.5); background: none; cursor: pointer; }
.pt-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #CFE3FF; animation: ptScroll 1.8s ease-in-out infinite; }
@keyframes ptScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
/* Barre de navigation fixe après l'entrée */
.nav.nav-fixed { position: fixed; background: rgba(5,12,24,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #12223A; animation: navIn .3s ease; }
@keyframes navIn { from { transform: translateY(-100%); } to { transform: none; } }
@media (max-width: 900px) {
  .pt-ruler { display: none; }
  .pt-menu { display: none; }
  .pt-caption { bottom: 74px; }
  .pt-scroll { left: 50%; right: auto; margin-left: -13px; bottom: 18px; }
}
@media (max-width: 720px) {
  .pc-doc { width: 104px; height: 138px; padding: 9px 9px 8px; gap: 4px; }
  .pd-kind { font-size: 9.5px; }
  .pc-photo { width: 132px; height: 90px; border-radius: 10px; }
  .pt-sub { display: none; }
  .pt-meta { display: none; }
  .pt-center { transform: translate(-50%, -56%); }
  .pt-caption small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pt-bg i, .pt-rings .tk, .pt-qr, .pt-scroll span { animation: none; } }

/* =========================================================
   Accueil : sections illustrées
   ========================================================= */
.hero.hero-finder { padding: 92px 0 80px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
.ba-fig { position: relative; margin: 44px 0 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-lg); }
.ba-fig img { display: block; width: 100%; height: auto; }
.ba-fig figcaption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 18px 22px; background: linear-gradient(0deg, rgba(4,10,20,.6), transparent); }
.ba-fig figcaption span { font: 600 12px/1 var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: #fff; padding: 8px 12px; border-radius: 999px; background: rgba(4,10,20,.55); backdrop-filter: blur(6px); }
.ba-fig .ba-r { background: rgba(31,91,234,.85); }
/* Avantages */
.adv-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.adv-row.flip .adv-txt { order: 2; }
.adv-k { display: inline-flex; gap: 8px; align-items: baseline; font: 600 12px/1 var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.adv-k i { font-style: normal; color: var(--muted); }
.adv-txt h3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.adv-txt p { font-size: 16px; }
.adv-shot { position: relative; }
.frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(7,17,31,.18), 0 0 0 1px rgba(7,17,31,.06); transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transition: transform .6s ease; }
.adv-row.flip .frame { transform: perspective(1600px) rotateY(4deg) rotateX(2deg); }
.frame:hover, .adv-row.flip .frame:hover { transform: none; }
.frame.reveal:not(.in) { transform: perspective(1600px) rotateY(-4deg) translateY(26px); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEF2F8; border-bottom: 1px solid #DDE4EE; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3DAE6; }
.frame-bar i:first-child { background: #F26B5B; } .frame-bar i:nth-child(2) { background: #F5BE4F; } .frame-bar i:nth-child(3) { background: #58C26A; }
.frame-bar span { margin-left: 12px; flex: 1; max-width: 340px; height: 18px; border-radius: 9px; background: #fff; font: 500 10.5px/18px var(--mono, monospace); color: #7F92B0; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame img { display: block; width: 100%; height: auto; }
.adv-photo { position: absolute; width: 44%; right: -4%; bottom: -12%; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(7,17,31,.35); border: 4px solid #fff; }
.adv-row.flip .adv-photo { right: auto; left: -4%; }
.adv-photo img { display: block; width: 100%; height: auto; }
/* Photo + carte QR */
.photo-card { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-lg); }
.photo-card img { display: block; width: 100%; height: auto; }
.pc-over { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(4,10,20,.82); backdrop-filter: blur(8px); color: #DCE6F4; box-shadow: 0 0 0 1px rgba(56,182,255,.3); }
.pc-over [data-qr] { width: 54px; filter: drop-shadow(0 0 6px rgba(56,182,255,.6)); }
.pc-over b { display: block; font-size: 14px; color: #fff; } .pc-over small { font: 500 11px var(--mono, monospace); color: #7F92B0; }
/* Souveraineté */
.sov { background: radial-gradient(90% 120% at 85% 20%, #12305A 0%, #07111F 60%); color: #B9C6D9; overflow: hidden; }
.sov h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; line-height: 1.12; }
.sov p { font-size: 16px; color: #A9B8CE; }
.sov-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sov-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.sov-cards > div { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(150,190,255,.18); display: grid; gap: 6px; align-content: start; }
.sov-cards svg { color: #6CC4FF; } .sov-cards b { color: #fff; font-size: 15px; } .sov-cards span { font-size: 13px; line-height: 1.45; }
.checks.light li { color: #C5D0E0; } .checks.light svg { color: #6CC4FF; }
.sov-visual { position: relative; }
.sov-visual picture img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.sov-chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #fff; color: #0B1424; font-size: 13px; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: chipFloat 6s ease-in-out infinite; }
.sov-chip svg { color: var(--ok, #16A34A); }
.sov-chip.c1 { left: -18px; top: 14%; } .sov-chip.c2 { right: -14px; bottom: 12%; animation-delay: -3s; }
.sov-chip.c2 svg { color: var(--blue-600); }
@keyframes chipFloat { 50% { transform: translateY(-8px); } }
/* Grande photo */
.wide-photo { position: relative; margin: 0 0 28px; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-lg); max-height: 420px; }
.wide-photo img { display: block; width: 100%; height: 420px; object-fit: cover; object-position: 50% 30%; }
.wide-photo figcaption { position: absolute; inset: 0 auto 0 0; width: min(480px, 70%); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: linear-gradient(90deg, rgba(4,10,20,.82), transparent); color: #C5D0E0; }
.wide-photo figcaption b { color: #fff; font-size: 22px; letter-spacing: -.01em; }
/* Application mobile */
.mob-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.mob-phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 34px; padding: 10px; background: #0B1424; box-shadow: 0 30px 70px rgba(7,17,31,.35), inset 0 0 0 2px #2A3A55; left: 18%; top: 0; z-index: 2; }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phone.back { left: 46%; top: 60px; z-index: 1; transform: rotate(6deg); opacity: .95; }
.mob-photo { margin: 22px 0 0; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-md, 0 10px 30px rgba(7,17,31,.12)); }
.mob-photo img { display: block; width: 100%; height: 220px; object-fit: cover; }
/* Bandeau final illustré */
.cta-band.cta-photo { position: relative; overflow: hidden; isolation: isolate; background: #0A2050; }
.cta-band.cta-photo .cta-img { position: absolute; inset: 0; z-index: -2; }
.cta-band.cta-photo .cta-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.cta-band.cta-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,32,80,.96) 0%, rgba(10,32,80,.85) 45%, rgba(10,32,80,.35) 100%); }
@media (max-width: 960px) {
  .adv-row, .adv-row.flip, .sov-grid, .mob-grid { grid-template-columns: 1fr; }
  .adv-row.flip .adv-txt { order: 0; }
  .frame, .adv-row.flip .frame, .frame.reveal:not(.in) { transform: none; }
  .adv-photo { position: relative; width: 70%; right: auto; left: auto; bottom: auto; margin: -40px 0 0 auto; display: block; }
  .adv-row.flip .adv-photo { left: auto; }
  .sov-cards { grid-template-columns: 1fr; }
  .sov-chip.c1 { left: 8px; } .sov-chip.c2 { right: 8px; }
  .mob-phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; left: 6%; } .phone.back { left: 42%; }
  .wide-photo img { height: 300px; } .wide-photo figcaption { width: 100%; padding: 20px; }
}
.push-banner { position: fixed; z-index: 900; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #0B1B33; color: #C5D0E0; box-shadow: 0 20px 50px rgba(7,17,31,.4); font-size: 13px; animation: navIn .3s ease; }
.push-banner svg { color: #6CC4FF; flex: none; }
.push-banner span { flex: 1; min-width: 0; } .push-banner b { display: block; color: #fff; font-size: 14px; }
.push-banner .btn-ghost { --c: #9FB0C8; }
@media (max-width: 560px) { .push-banner { flex-wrap: wrap; bottom: 84px; } .push-banner span { flex-basis: calc(100% - 40px); } }

/* Remonter, installation */
.to-top { position: fixed; z-index: 850; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #0B1B33; color: #fff; box-shadow: 0 12px 30px rgba(7,17,31,.35), 0 0 0 1px rgba(108,196,255,.3); cursor: pointer; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-600); }
body.app .to-top { bottom: 92px; }
@media (min-width: 901px) { body.app .to-top { bottom: 24px; right: 24px; } }
.install-pill { position: fixed; z-index: 880; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #fff; color: #0B1424; box-shadow: 0 18px 50px rgba(7,17,31,.35); animation: navIn .35s ease; }
.install-pill img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-pill span { flex: 1; min-width: 0; } .install-pill b { display: block; font-size: 14px; } .install-pill small { font-size: 12px; color: var(--muted); }
.install-pill .ip-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 6px; cursor: pointer; }
body:has(.install-pill) .to-top { bottom: 84px; }
.inst-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.foot-install { display: none; }
.can-install .foot-install { display: inline-flex; }
.is-app .foot-install, .is-app [data-install-hide] { display: none !important; }
.foot-install { align-items: center; gap: 6px; border: 1px solid #22385A; background: none; color: #C5D0E0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.foot-install:hover { border-color: #6CC4FF; color: #fff; }
.finder-in input { min-width: 0; flex: 1; }
@media (max-width: 560px) {
  .finder-in:has(select) { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .finder-in:has(select) input { flex: 1 1 calc(100% - 36px); }
  .finder-in:has(select) select { flex: 1 1 auto; min-width: 0; height: 44px; }
  .mob { overflow: hidden; }
}
.mob-phones { overflow: visible; }
.adv-row.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
@media (max-width: 960px) { .adv-row.flip { grid-template-columns: 1fr; } }

/* Protection du contenu : sélection réservée aux zones utiles */
html.protect body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.protect input, html.protect textarea, html.protect select, html.protect [contenteditable], html.protect [data-allow-copy], html.protect .ref, html.protect .mono, html.protect code, html.protect .allow-copy { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html.protect img { -webkit-user-drag: none; }

/* ---------- Mobile : aucun débordement horizontal ---------- */
.settings > *, .detail > *, .grid > *, .feature-split > *, .kpi-grid > *, .shell > *, .content > * { min-width: 0; }
.card-h { flex-wrap: wrap; }
.table-wrap { max-width: 100%; }
.content { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .settings, .detail { grid-template-columns: minmax(0, 1fr); }
  .s-nav { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .s-nav::-webkit-scrollbar { display: none; }
}
.db-cols > *, .fol-grid > *, .db-kpis > * { min-width: 0; }
@media (max-width: 900px) { .db-cols { grid-template-columns: minmax(0, 1fr) !important; } .fol-grid { grid-template-columns: minmax(0, 1fr); } }
.db-row .grow, .db-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .alert { flex-wrap: wrap; } .alert > .grow { flex-basis: calc(100% - 34px); } }
.alert > * { min-width: 0; }
@media (max-width: 560px) { .alert > .row { flex-wrap: wrap; } .alert .btn { white-space: normal; } }
.check { display: block; position: relative; padding-left: 26px; }
.check > input[type=checkbox], .check > input[type=radio] { position: absolute; left: 0; top: 7px; margin: 0; }
.card-f { flex-wrap: wrap; gap: 8px; }
.filt-toggle { display: none; }
@media (max-width: 600px) {
  .filt-toggle { display: inline-flex; }
  .toolbar .input-icon { flex: 1 1 calc(100% - 110px); min-width: 0 !important; }
  .toolbar:not(.open) > select, .toolbar:not(.open) > .btn:not(.filt-toggle), .toolbar:not(.open) > .view-toggle { display: none; }
  .toolbar.open > select { flex: 1 1 calc(50% - 6px); min-width: 0; width: auto; }
}
@media (max-width: 560px) {
  .alert { flex-wrap: wrap; }
  .alert > div:not(.row) { flex: 1 1 calc(100% - 34px); }
  .alert > .btn, .alert > a.btn, .alert > form { margin-left: 30px; }
}
@media (max-width: 560px) {
  .bills-nudge { flex-wrap: wrap; }
  .bills-nudge > .grow { flex: 1 1 calc(100% - 56px); min-width: 0; }
  .bills-nudge > .btn, .bills-nudge > a { margin-left: 52px; }
}
/* Accueil : les cartes en orbite passent sous un voile, le logo reste lisible */
.nav:not(.solid):not(.nav-fixed) { background: linear-gradient(180deg, rgba(5,12,24,.92) 0%, rgba(5,12,24,.6) 60%, rgba(5,12,24,0) 100%); }
.pc[hidden] { display: none !important; }
.g-2-1 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
@media (max-width: 900px) { .g-2-1 { grid-template-columns: minmax(0,1fr); } }
[hidden] { display: none !important; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #07111F; color: #DCE6F5; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px rgba(7,17,31,.35); }
.cookie-bar .cb-a { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar .cb-a { justify-content: flex-end; } }

/* ===== Tableau d'affichage public (avis) ===== */
.board { position: relative; border-radius: 18px; padding: 30px 26px 30px; isolation: isolate; box-shadow: 0 22px 44px -22px rgba(60,30,8,.55), 0 2px 0 rgba(255,255,255,.35) inset; }
.board-art, .board-cork { position: absolute; z-index: -1; width: 100%; height: 100%; }
.board-art { inset: 0; }
.board-cork { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); border-radius: 5px; box-shadow: inset 0 3px 10px rgba(58,31,8,.55), 0 0 0 3px #5A3414; }
.board-in { position: relative; }
.board-plate { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: -6px auto 22px; padding: 8px 16px; border-radius: 6px; background: linear-gradient(180deg, #F6E3A1 0%, #D9B65A 48%, #B68E35 100%); box-shadow: 0 3px 6px rgba(58,31,8,.45), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.2); }
.board-plate > div { text-align: center; min-width: 0; }
.board-plate small { display: block; font: 600 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #6B4F12; }
.board-plate b { display: block; font: 700 17px/1.2 var(--serif); color: #3E2A06; text-shadow: 0 1px 0 rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.plate-screw { width: 12px; height: 12px; flex: none; }
.board-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 24px; padding: 4px 6px 6px; }
.note { --paper: #FFF3A6; --ink: #2B2410; --line: rgba(80,60,0,.12); position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 24px 18px 14px; background: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, var(--line) 25px 26px); background-position: 0 82px; color: var(--ink); transform: rotate(var(--r, 0deg)); cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 10px 18px -8px rgba(40,20,4,.55); border-radius: 2px 2px 3px 3px; transition: transform .2s ease, box-shadow .2s ease; }
.note::after { content: ''; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.08) 50%, rgba(255,255,255,.35) 100%); border-top-left-radius: 4px; }
.note:hover, .note:focus-within { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 18px 28px -10px rgba(40,20,4,.6); z-index: 2; }
.note .pin { position: absolute; top: -14px; left: 50%; width: 28px; height: 34px; transform: translateX(-50%) rotate(calc(var(--r, 0deg) * -2)); }
.note-meta { display: flex; justify-content: space-between; gap: 8px; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.note-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-meta time { white-space: nowrap; }
.note h3 { margin: 0 0 8px; font: 700 16.5px/1.3 var(--serif); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: none; overflow-wrap: normal; word-break: normal; }
.note p { margin: 0 0 12px; font-size: 13.5px; line-height: 26px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: .85; }
.note-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note-read { border: 0; background: none; padding: 4px 0; font: 700 13px var(--font); color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note-foot small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; opacity: .7; }
.note.p-jaune { --paper: #FFEF7A; --line: rgba(120,90,0,.14); }
.note.p-blanc { --paper: #FFFFFF; --line: rgba(30,60,120,.10); }
.note.p-bleu { --paper: #7CCBF2; --ink: #0B2A44; --line: rgba(0,40,80,.12); }
.note.p-rose { --paper: #F7A1C8; --ink: #45112B; --line: rgba(90,10,50,.12); }
.note.p-vert { --paper: #A8DB7A; --ink: #18330A; --line: rgba(20,60,0,.12); }
.note.p-creme { --paper: #FBE8C8; --ink: #3A2A10; --line: rgba(110,70,10,.12); }
.note.p-lilas { --paper: #D3C2F2; --ink: #261447; --line: rgba(50,20,100,.12); }
.board-notes.is-empty { grid-template-columns: minmax(0, 360px); justify-content: center; }
.board-notes.is-empty .note { cursor: default; }
.avis-modal { position: fixed; inset: 0; z-index: 80; background: rgba(7,17,31,.62); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.avis-modal[hidden] { display: none; }
.am-box { width: min(920px, 100%); height: min(92vh, 1100px); display: flex; flex-direction: column; background: var(--surface, #fff); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.am-box header { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line, #E3E8F0); }
.am-box header small { font: 600 11px var(--mono); color: var(--muted); }
.am-box header h2 { margin: 2px 0 0; font: 700 18px/1.3 var(--font); }
.am-x { border: 0; background: var(--surface-3, #EEF2F7); width: 36px; height: 36px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.am-box iframe { flex: 1; width: 100%; border: 0; background: #E9EDF3; }
.am-box footer { padding: 8px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line, #E3E8F0); }
.org-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.org-links a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #E3ECF8; font-size: 13px; font-weight: 600; text-decoration: none; }
.org-links a:hover { background: rgba(255,255,255,.16); }
.org-links svg { width: 20px; height: 20px; flex: none; }
.org-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 640px) {
  .board { padding: 22px 14px; border-radius: 14px; }
  .board-cork { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .board-notes { grid-template-columns: 1fr; gap: 26px; }
  .board-plate b { font-size: 15px; }
  .note { min-height: 0; }
  .avis-modal { padding: 0; }
  .am-box { height: 100%; border-radius: 0; }
}

/* ===== Mobile : pied de page réduit à l'essentiel, en-tête et légende d'accueil ===== */
.foot-m { display: none; }
.foot-legal { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.foot-legal .m-only { display: none; }
@media (max-width: 1180px) and (min-width: 901px) { .nav .links { gap: 16px; } .nav .links a { font-size: 13.5px; } }
.nav .links a { white-space: nowrap; }
@media (max-width: 700px) {
  .foot { padding: 30px 0 calc(76px + env(safe-area-inset-bottom)); text-align: center; }
  .foot .cols { display: none; }
  .foot-m { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .foot-m p { margin: 0; font-size: 13.5px; color: #8FA2BE; }
  .foot-m nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; font-weight: 600; }
  .foot-m .foot-install { margin-top: 2px; }
  .foot .bottom { margin-top: 22px; padding-top: 16px; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; }
  .foot-legal .m-only { display: inline; }
  .pt-caption { bottom: 92px; }
  .pt-caption small { display: none; }
}
@media (max-width: 640px) {
  .org-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .org-hero .avatar.lg { width: 56px !important; height: 56px !important; font-size: 19px !important; border-radius: 12px !important; }
  .org-hero h1 { font-size: 26px; line-height: 1.2; }
  .org-cta { flex-direction: column; align-items: stretch; }
  .org-cta .btn { justify-content: center; }
  .org-links a { height: 32px; font-size: 12.5px; }
}

/* ===== Tableau de bord : audience de la page publique ===== */
.ps-grid { display: grid; grid-template-columns: minmax(170px, .8fr) 1.6fr 1fr; gap: 24px; align-items: start; }
.ps-kpis { display: grid; gap: 14px; }
.ps-kpis b { display: block; font: 600 26px/1.1 var(--font); letter-spacing: -.02em; margin-top: 2px; }
.ps-kpis small { font-size: 12px; color: var(--muted); }
.ps-kpis small.up { color: var(--ok); } .ps-kpis small.down { color: var(--danger); }
.ps-p { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.ps-p .f { font-size: 18px; width: 24px; text-align: center; }
.ps-p .bar { display: block; height: 5px; margin-top: 4px; }
@media (max-width: 1000px) { .ps-grid { grid-template-columns: 1fr 1fr; } .ps-chart { grid-column: 1 / -1; order: 3; } }
@media (max-width: 600px) { .ps-grid { grid-template-columns: 1fr; } .ps-kpis { grid-template-columns: repeat(3, 1fr); } .ps-kpis b { font-size: 21px; } }
.ps-p .cc { flex: none; width: 30px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 700 10.5px var(--mono); letter-spacing: .04em; color: var(--blue-700, #123BA8); background: var(--info-bg, #E8EFFE); }
.ps-chart .spark .col { flex: 1 1 0; min-width: 0; }
.ps-chart .spark .col small { white-space: nowrap; overflow: visible; }
.captcha { margin-top: 6px; padding: 12px 14px; border: 1px dashed var(--line, #D6DCE6); border-radius: 10px; background: var(--surface-2, #F7F9FC); }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.captcha-row input { width: 110px; font-size: 18px; text-align: center; letter-spacing: .08em; }
.captcha-img { display: block; border-radius: 8px; user-select: none; }
.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; }

/* ===== Tableau blanc (remplace le liège) ===== */
.board { padding: 34px 28px 46px; box-shadow: 0 24px 44px -24px rgba(19,32,58,.45), 0 1px 0 rgba(255,255,255,.8) inset; }
.board-cork { inset: 14px 14px 30px; width: calc(100% - 28px); height: calc(100% - 44px); border-radius: 4px; box-shadow: inset 0 1px 3px rgba(19,32,58,.18), 0 0 0 1px #AEB6C2; }
.board-tray { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 18px; border-radius: 3px 3px 6px 6px; background: linear-gradient(180deg, #E3E7ED, #B4BBC6); box-shadow: 0 3px 6px rgba(19,32,58,.25); display: flex; align-items: center; gap: 14px; padding: 0 12%; }
.board-tray svg { height: 14px; width: auto; transform: translateY(-7px); filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.board-tray .eraser { height: 18px; margin-left: auto; transform: translateY(-9px); }
.board-plate { background: none; box-shadow: none; padding: 2px 10px 10px; margin: -8px auto 22px; border-bottom: 3px solid #1747C9; border-radius: 0; }
.board-plate .plate-screw { display: none; }
.board-plate small { color: #5B6B84; }
.board-plate b { color: #13203A; text-shadow: none; font: 700 21px/1.2 var(--serif); }
.note.p-blanc { --paper: #FFFFFF; --ink: #13203A; --line: rgba(23,71,201,.08); border: 1px solid #E3E8F0; }
.note { box-shadow: 0 1px 2px rgba(19,32,58,.08), 0 12px 22px -12px rgba(19,32,58,.35); }
.note::after { background: linear-gradient(135deg, transparent 50%, rgba(19,32,58,.06) 50%, #F1F4F8 100%); }
.note .pin { top: -12px; width: 26px; height: 26px; transform: translateX(-50%); }
.note .note-meta span { color: #1747C9; opacity: 1; }
.note-read { color: #1747C9; }
@media (max-width: 640px) { .board { padding: 26px 16px 40px; } .board-cork { inset: 10px 10px 26px; width: calc(100% - 20px); height: calc(100% - 36px); } .board-plate b { font-size: 17px; } }

/* ===== La Banque de courriers publics ===== */
.bq-hero h1 { max-width: 760px; }
.bq-search { display: flex; align-items: center; gap: 10px; max-width: 720px; margin-top: 22px; padding: 6px 6px 6px 16px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); color: var(--muted); }
.bq-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15.5px; background: none; color: var(--text); height: 42px; }
.bq-search select { border: 0; background: var(--surface-2, #F1F4F9); height: 40px; border-radius: 10px; padding: 0 10px; max-width: 150px; }
.bq-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: #9FB3D1; font-size: 14px; }
.bq-stats b { color: #fff; font-size: 17px; margin-right: 4px; }
.bq { background: linear-gradient(180deg, #EEF1F5 0%, #F5F7FA 100%); padding: 30px 0 70px; }
.bq-rubs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 12px; }
.bq-rubs::-webkit-scrollbar { display: none; }
.bq-rubs a { --ac: var(--blue-600); flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px; background: #fff; border: 1px solid #DCE2EA; color: #2B3A52; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: .15s; }
.bq-rubs a i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
.bq-rubs a small { color: var(--muted); font-weight: 600; font-size: 12px; }
.bq-rubs a:hover { border-color: var(--ac); }
.bq-rubs a.on { background: #13203A; border-color: #13203A; color: #fff; } .bq-rubs a.on small { color: #9FB3D1; }
.bq-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin: 6px 0 22px; }
.bq-views { display: inline-flex; background: #fff; border: 1px solid #DCE2EA; border-radius: 12px; padding: 3px; }
.bq-views a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #5B6B84; }
.bq-views a.on { background: #13203A; color: #fff; }
.bq-sel { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bq-sel select { height: 38px; min-width: 150px; border: 1px solid #DCE2EA; border-radius: 10px; background: #fff; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); }
.bq-h { display: flex; align-items: center; gap: 8px; font: 700 13px var(--font); text-transform: uppercase; letter-spacing: .06em; color: #2B3A52; margin-bottom: 12px; }
.bq-une { margin-bottom: 30px; }
.bq-une-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Piles : on sent le volume de chaque catégorie */
.bq-piles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 46px 30px; padding: 18px 8px 10px; }
.bq-pile { --ac: var(--blue-600); position: relative; display: block; color: inherit; min-height: 250px; isolation: isolate; }
.bq-sheet { position: absolute; inset: 0; z-index: -1; border-radius: 10px; background: #FBFCFD; border: 1px solid #D9DFE8; box-shadow: 0 1px 2px rgba(19,32,58,.06);
  transform: translate(calc(var(--i) * 4px), calc(var(--i) * -5px)) rotate(calc(var(--i) * .9deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.bq-sheet:nth-child(even) { background: #F4F6F9; }
.bq-pile:hover .bq-sheet { transform: translate(calc(var(--i) * 9px), calc(var(--i) * -9px)) rotate(calc(var(--i) * 2.6deg)); }
.bq-top { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 18px 18px 16px 22px; border-radius: 10px; background: #fff; border: 1px solid #D9DFE8;
  box-shadow: 0 2px 4px rgba(19,32,58,.06), 0 18px 34px -18px rgba(19,32,58,.45); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.bq-top::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ac); }
.bq-pile:hover .bq-top { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(19,32,58,.08), 0 26px 44px -20px rgba(19,32,58,.5); }
.bq-top-h { display: flex; align-items: center; gap: 12px; }
.bq-top-h b { display: block; font: 700 16px/1.25 var(--font); color: #13203A; }
.bq-top-h small { color: var(--muted); font-size: 12.5px; }
.bq-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, #fff); }
.bq-new { flex: none; font: 700 11.5px var(--mono); color: #fff; background: var(--ac); padding: 4px 8px; border-radius: 99px; }
.bq-line { display: block; padding: 8px 0 0; border-top: 1px dashed #E3E8F0; }
.bq-lt { display: block; font: 600 13.5px/1.35 var(--serif); color: #1F2A3D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-lm { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bq-more { margin-top: auto; font: 700 13px var(--font); color: var(--ac); }
/* Cartes (grille, à la une) */
.bq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bq-card { --ac: var(--blue-600); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 14px; background: #fff; border: 1px solid #DCE2EA; border-radius: 12px; color: inherit;
  box-shadow: 0 1px 2px rgba(19,32,58,.05); border-top: 4px solid var(--ac); transition: transform .2s, box-shadow .2s; min-height: 210px; }
.bq-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -18px rgba(19,32,58,.45); }
.bq-rub { font: 700 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ac); }
.bq-t { font: 700 16.5px/1.3 var(--serif); color: #13203A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bq-card.big .bq-t { font-size: 18.5px; -webkit-line-clamp: 3; }
.bq-x { font-size: 13.5px; color: #4B5A72; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bq-org { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #EEF1F5; font-size: 13px; }
.bq-org b { color: #13203A; } .bq-org small { display: block; color: var(--muted); font-size: 11.5px; }
.bq-org > span:nth-child(2) { min-width: 0; flex: 1; }
.bq-av { width: 34px; height: 34px; flex: none; border-radius: 9px; background: #13203A; color: #fff; display: grid; place-items: center; font: 700 12px var(--font); overflow: hidden; }
.bq-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bq-av.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 16px; }
.bq-v { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.bq-dot { --ac: var(--blue-600); display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); margin-right: 7px; }
.bq-count { margin: 0 0 14px; font-size: 14px; color: #4B5A72; }
.bq-count a { margin-left: 10px; font-weight: 600; }
.bq-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 50px 20px; text-align: center; color: var(--muted); }
.bq-empty b { color: #13203A; font-size: 16px; }
.bq-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.bq-pages a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid #DCE2EA; font-weight: 600; font-size: 13.5px; }
.bq-pages a.on { background: #13203A; color: #fff; border-color: #13203A; }
/* Page d'un courrier */
.bq-hero-s { padding-bottom: 34px; }
.bq-rub-pill { --ac: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 11px; border-radius: 99px; font: 700 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--ac); }
.bq-title { font: 700 clamp(24px, 3.4vw, 36px)/1.2 var(--serif) !important; margin: 12px 0 0; max-width: 900px; }
.bq-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: #9FB3D1; font-size: 13.5px; }
.bq-meta span { display: inline-flex; align-items: center; gap: 6px; } .bq-meta b { color: #fff; }
.bq-show { background: #EEF1F5; }
.bq-show-g { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.bq-aside { position: sticky; top: 90px; }
.bq-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bq-links a { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface-2, #F1F4F9); }
.bq-mini a { display: block; padding: 10px 16px; border-top: 1px solid #EEF1F5; color: inherit; }
.bq-mini a:first-child { border-top: 0; }
.bq-mini b { display: -webkit-box; font-size: 13.5px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bq-mini small { color: var(--muted); font-size: 12px; }
.bq-mini a:hover b { color: var(--blue-600); }
@media (max-width: 960px) { .bq-show-g { grid-template-columns: 1fr; } .bq-aside { position: static; } .bq-une-g { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bq-piles { grid-template-columns: 1fr; gap: 38px; padding: 12px 6px; } .bq-sel select { min-width: 0; width: 100%; } .bq-tools .bq-sel { flex: 1 1 45%; } .bq-search { flex-wrap: wrap; } .bq-search select { max-width: none; flex: 1; } }

/* ===== Boost ===== */
.bo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.bo-recap { position: sticky; top: 80px; }
.bo-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 12px; margin-right: 6px; }
.bo-cibles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bo-cible input { position: absolute; opacity: 0; }
.bo-cible span { display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 2px solid var(--line, #DCE2EA); border-radius: 12px; cursor: pointer; transition: .15s; }
.bo-cible span b { font-size: 16px; } .bo-cible span small { color: var(--muted); } .bo-cible span em { font-style: normal; font-size: 12.5px; color: var(--blue-600); font-weight: 600; }
.bo-cible input:checked + span { border-color: var(--blue-600); background: var(--info-bg, #EEF3FE); }
.bo-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow: auto; }
.bo-chips label input { position: absolute; opacity: 0; }
.bo-chips label span { display: inline-block; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line, #DCE2EA); font-size: 13px; cursor: pointer; }
.bo-chips label input:checked + span { background: #13203A; border-color: #13203A; color: #fff; }
.bo-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-total { font: 700 24px var(--font); color: #13203A; }
@media (max-width: 900px) { .bo-grid { grid-template-columns: 1fr; } .bo-recap { position: static; } .bo-cibles { grid-template-columns: 1fr; } }
/* ===== CGU ===== */
.cgu-toc { background: var(--surface-2, #F5F7FA); border: 1px solid var(--line, #E3E8F0); border-radius: 12px; padding: 16px 20px; margin-bottom: 26px; }
.cgu-toc ol { columns: 2; column-gap: 28px; margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
@media (max-width: 640px) { .cgu-toc ol { columns: 1; } }
.cgu-modal { position: fixed; inset: 0; z-index: 90; background: rgba(7,17,31,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cgu-modal[hidden] { display: none; }
.cgu-box { width: min(820px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.cgu-box header, .cgu-box footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #E3E8F0; }
.cgu-box footer { border-top: 1px solid #E3E8F0; border-bottom: 0; justify-content: flex-end; }
.cgu-box iframe { flex: 1; border: 0; width: 100%; }

/* ===== Aide & support ===== */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sp-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sp-opt { cursor: pointer; }
.sp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sp-opt span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line, #E3E8F0); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sp-opt span svg { color: var(--primary, #1E5BD8); }
.sp-opt small { color: var(--muted, #5B6B84); font-size: 12px; line-height: 1.35; }
.sp-opt input:checked + span { border-color: var(--primary, #1E5BD8); box-shadow: 0 0 0 3px rgba(30,91,216,.12); background: #F6F9FF; }
.sp-opt input:focus-visible + span { outline: 2px solid var(--primary, #1E5BD8); outline-offset: 2px; }
.sp-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line, #E3E8F0); color: inherit; text-decoration: none; }
.sp-list a:hover { background: var(--surface-2, #F5F7FA); }
.sp-list a > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.sp-list small { color: var(--muted, #5B6B84); font-size: 12px; }
.sp-thread { display: flex; flex-direction: column; gap: 10px; }
.sp-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; background: var(--surface-2, #F5F7FA); font-size: 14px; line-height: 1.5; }
.sp-msg.equipe { align-self: flex-end; background: #EEF3FD; border: 1px solid #D3DFF5; }
.sp-admin { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.sp-admin.has-t { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.sp-admin tr.on td { background: #F6F9FF; }
@media (max-width: 900px) { .sp-grid, .sp-admin.has-t { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sp-svc { grid-template-columns: 1fr; } }
.sp-admin.has-t th:nth-child(3), .sp-admin.has-t td:nth-child(3) { display: none; }

/* ===== Suggestion vocale ===== */
.sg-rec { margin: 2px 0 14px; padding: 12px 14px; border: 1px solid var(--line, #E3E8F0); border-radius: 12px; background: var(--surface-2, #F7F9FC); }
.sg-rec-live, .sg-rec-done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sg-rec-live[hidden], .sg-rec-done[hidden], .sg-rec-btn[hidden] { display: none; }
.sg-dot { width: 10px; height: 10px; border-radius: 50%; background: #D92D20; animation: sgp 1s ease-in-out infinite; }
@keyframes sgp { 50% { opacity: .3; } }
.sg-bar { flex: 1; min-width: 120px; height: 6px; border-radius: 3px; background: #E3E8F0; overflow: hidden; }
.sg-bar i { display: block; height: 100%; width: 0; background: var(--primary, #1E5BD8); transition: width .2s linear; }
.sg-rec-done audio, .sg-voice audio { height: 36px; max-width: 100%; }
.sg-voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line, #E3E8F0); border-radius: 8px; }

/* ===== Choix de formule à l'arrivée ===== */
.pc-box { max-width: 980px; padding: 0; }
.pc-head { padding: 22px 24px 6px; }
.pc-head h3 { margin: 6px 0 4px; font-size: 22px; }
.pc-head p { margin: 0; color: var(--muted); font-size: 14px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 16px 24px 24px; overflow-y: auto; }
.pc-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1.5px solid var(--line, #E3E8F0); border-radius: 14px; background: var(--surface, #fff); }
.pc-card.hl { border-color: var(--primary, #1E5BD8); box-shadow: 0 0 0 3px rgba(30,91,216,.10); }
.pc-free { background: var(--surface-2, #F7F9FC); }
.pc-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5B6B84); }
.pc-name { font-size: 17px; }
.pc-price { font-size: 22px; font-weight: 800; }
.pc-price small { font-size: 13px; font-weight: 500; color: var(--muted, #5B6B84); }
.pc-card .checks { margin: 4px 0 8px; font-size: 13px; }
@media (max-width: 640px) { .pc-head, .pc-grid { padding-left: 16px; padding-right: 16px; } .pc-head h3 { font-size: 19px; } }
.pc-card .ribbon { position: absolute; top: -10px; right: 12px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }

/* ===== Parcours des comptes (super-admin) ===== */
.dp-funnel { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-funnel a { display: flex; flex-direction: column; gap: 4px; min-width: 104px; padding: 8px 12px; border: 1px solid var(--line, #E3E8F0); border-radius: 10px; color: inherit; text-decoration: none; background: var(--surface, #fff); }
.dp-funnel a:hover { border-color: var(--blue-600, #1E5BD8); }
.dp-funnel a.on { border-color: var(--blue-600, #1E5BD8); box-shadow: 0 0 0 3px rgba(30,91,216,.12); }
.dp-funnel b { font-size: 20px; }
.dp-funnel span { font-size: 12px; color: var(--muted, #5B6B84); }

/* ===== Scanner (caméra + OCR) ===== */
.scan-modal { position: fixed; inset: 0; z-index: 200; background: rgba(4,10,20,.82); display: flex; align-items: center; justify-content: center; padding: 12px; }
.scan-modal.flash .scan-stage::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .7; }
.scan-box { width: min(960px, 100%); max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: #0B1424; color: #fff; border-radius: 14px; overflow: hidden; }
.scan-box header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.scan-box header .am-x { margin-left: auto; color: #fff; background: none; border: 0; font-size: 26px; cursor: pointer; }
.scan-st { font-size: 13px; color: #A9B8D3; }
.scan-stage { position: relative; flex: 1; min-height: 240px; background: #000; }
.scan-stage video, .scan-ov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scan-nocam { position: absolute; inset: 0; display: grid; place-items: center; color: #A9B8D3; padding: 20px; text-align: center; }
.scan-nocam[hidden] { display: none; }
.scan-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 14px; font-size: 13px; color: #D5DEEE; }
.scan-pages { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px; }
.scan-pages:empty { display: none; }
.scan-pages figure { margin: 0 0 6px; flex: none; width: 88px; }
.scan-pages img { width: 88px; height: 112px; object-fit: cover; border-radius: 6px; background: #fff; display: block; }
.scan-pages figcaption { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #A9B8D3; margin-top: 3px; }
.scan-pages figcaption button { background: #1C2A44; color: #fff; border: 0; border-radius: 4px; padding: 1px 5px; cursor: pointer; }
.scan-box footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid #1C2A44; }
.scan-shot { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; background: #1747C9; cursor: pointer; flex: none; }
.scan-shot:disabled { opacity: .35; cursor: default; }
.scan-shot:active { transform: scale(.94); }
.ocr-box { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line, #D6DCE6); border-radius: 10px; background: var(--surface-2, #F7F9FC); }
.ocr-box[hidden] { display: none; }
.ocr-box .chip { border: 1px solid var(--line, #D6DCE6); background: #fff; border-radius: 99px; padding: 2px 10px; margin: 2px; cursor: pointer; font-size: 12px; }
.ocr-filled { background: #FFF8DB !important; }
@media (max-width: 640px) { .scan-modal { padding: 0; } .scan-box { max-height: 100vh; height: 100vh; border-radius: 0; } }

/* ===== Institutions en cours d'activation ===== */
.pend-badge { display: inline-flex; vertical-align: -2px; cursor: help; }
.pend-badge svg { display: block; filter: drop-shadow(0 1px 1px rgba(146,64,14,.25)); }
.pend-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.45); font-size: 13.5px; line-height: 1.45; max-width: 760px; }
.pend-note .pend-badge { margin-top: 1px; }
.pr-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-groups form { display: inline; }
.pr-row-act { display: flex; flex-wrap: wrap; gap: 4px; }

/* ===== Menu regroupé ===== */
.side nav .nav-more summary { list-style: none; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 7px; color: #B7C3D6; font-size: 14px; cursor: pointer; }
.side nav .nav-more summary::-webkit-details-marker { display: none; }
.side nav .nav-more summary:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav .nav-more summary .ic { color: #7F92B0; }
.side nav .nav-more summary > .ic:last-child { margin-left: auto; transition: transform .15s; width: 15px; }
.side nav .nav-more summary .n + .ic { margin-left: 6px; }
.side nav .nav-more[open] summary > .ic:last-child { transform: rotate(90deg); }
.side nav .nav-more > div { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.08); margin: 2px 0 4px 18px; }
.side nav .nav-more > div a { height: 32px; font-size: 13.5px; }
.side .sec:empty { padding: 8px 0 4px; border-top: 1px solid rgba(255,255,255,.06); margin: 8px 10px 0; }

/* ===== Avant / Avec COURRIER (accueil) ===== */
.ba-sec { padding: 84px 0 76px; background: radial-gradient(1200px 500px at 50% 0, #EAF2FF 0, transparent 70%), var(--surface, #fff); }
.ba-head { text-align: center; max-width: 860px; margin: 0 auto; }
.ba-head h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 14px; color: #8A96AB; }
.ba-head h2 span { color: var(--blue-600, #1747C9); }
.ba-head p { font-size: 18px; color: var(--muted, #5B6B84); margin: 0 auto; max-width: 680px; }
.ba-sec .ba-fig { margin-top: 36px; }
.ba-table { margin: 34px auto 0; max-width: 1040px; display: flex; flex-direction: column; gap: 10px; }
.ba-cols { display: grid; grid-template-columns: 1fr 40px 1fr; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 0 6px; }
.ba-cols .ba-cb { color: #8A96AB; display: flex; align-items: center; gap: 6px; }
.ba-cols .ba-ca { grid-column: 3; color: var(--blue-600, #1747C9); display: flex; align-items: center; gap: 6px; }
.ba-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: stretch; }
.ba-row p { margin: 0; padding: 18px 20px; border-radius: 14px; font-size: 16.5px; line-height: 1.45; }
.ba-b { background: #F3F4F7; color: #66728A; border: 1px solid #E6E8EE; }
.ba-a { background: linear-gradient(135deg, #1747C9, #2E6BF0); color: #fff; font-weight: 600; box-shadow: 0 10px 26px -14px rgba(23,71,201,.65); }
.ba-arrow { display: grid; place-items: center; color: var(--blue-600, #1747C9); }
.ba-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
@media (max-width: 760px) {
  .ba-cols { display: none; }
  .ba-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px dashed var(--line, #E3E8F0); }
  .ba-arrow { transform: rotate(90deg); height: 18px; }
  .ba-b::before { content: "Avant · "; font-weight: 700; }
  .ba-a::before { content: "Avec COURRIER · "; font-weight: 800; opacity: .85; }
}
/* Votre code, votre adresse */
.code-card { background: #0B1424; color: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 12px; }
.code-card .cc-top { display: flex; align-items: center; gap: 12px; }
.code-card .cc-top small { display: block; color: #A9B8D3; font-size: 12.5px; }
.code-card .cc-top .verified { margin-left: auto; color: #38B6FF; }
.code-card .cc-av { width: 46px; height: 46px; border-radius: 12px; background: #FF7900; display: grid; place-items: center; font-weight: 800; }
.code-card .cc-code { font-size: 26px; letter-spacing: .06em; color: #6CC4FF; padding: 6px 0 2px; }
.code-card .cc-line { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 14.5px; }
.code-card .cc-line.ok { background: rgba(34,197,94,.16); color: #BBF7D0; }
.side nav .nav-more summary .n { margin-left: auto; font: 600 11px/1 var(--mono); background: var(--blue-500); color: #fff; border-radius: 999px; padding: 4px 7px; }
.side nav .nav-more summary .n + .ic { margin-left: 6px; }

/* ===== Visite guidée (Driver.js) aux couleurs COURRIER ===== */
.driver-popover.cr-tour { background: #fff; color: #13203A; border-radius: 16px; padding: 22px 22px 16px; max-width: 360px; min-width: 280px; box-shadow: 0 24px 60px -18px rgba(4,10,20,.55), 0 0 0 1px rgba(23,71,201,.08); font-family: inherit; border-top: 4px solid #1747C9; }
.driver-popover.cr-tour .driver-popover-title { font-size: 17px; font-weight: 800; line-height: 1.25; color: #0B1424; margin: 0 26px 8px 0; }
.driver-popover.cr-tour .driver-popover-description { font-size: 14px; line-height: 1.55; color: #3B4A63; }
.driver-popover.cr-tour .driver-popover-close-btn { color: #8A96AB; font-size: 22px; top: 6px; right: 8px; width: 30px; height: 30px; }
.driver-popover.cr-tour .driver-popover-close-btn:hover { color: #1747C9; }
.driver-popover.cr-tour .driver-popover-footer { margin-top: 16px; gap: 8px; flex-wrap: wrap; align-items: center; }
.driver-popover.cr-tour .driver-popover-progress-text { font-size: 12px; font-weight: 700; color: #1747C9; letter-spacing: .02em; }
.driver-popover.cr-tour .driver-popover-navigation-btns { gap: 6px; flex: none; margin-left: auto; }
.driver-popover.cr-tour .driver-popover-footer button { font: inherit; font-size: 13.5px; font-weight: 600; text-shadow: none; border-radius: 9px; padding: 8px 14px; border: 1px solid #D3DFF5; background: #fff; color: #1747C9; transition: background .15s; }
.driver-popover.cr-tour .driver-popover-footer button:hover { background: #F2F6FD; }
.driver-popover.cr-tour .driver-popover-next-btn { background: #1747C9 !important; border-color: #1747C9 !important; color: #fff !important; }
.driver-popover.cr-tour .driver-popover-next-btn:hover { background: #1239A6 !important; }
.driver-popover.cr-tour .cr-tour-skip { order: -1; flex-basis: 100%; text-align: left; background: none !important; border: 0 !important; padding: 0 !important; color: #8A96AB !important; font-size: 12.5px !important; font-weight: 500 !important; text-decoration: underline; cursor: pointer; margin-bottom: 4px; }
.driver-popover.cr-tour .cr-tour-skip:hover { color: #1747C9 !important; }
.driver-popover.cr-tour.cr-tour-first { border-top-width: 6px; }
.driver-popover.cr-tour.cr-tour-first .driver-popover-title { font-size: 20px; }
.driver-popover.cr-tour .driver-popover-arrow-side-right.driver-popover-arrow { border-right-color: #fff; }
.driver-popover.cr-tour .driver-popover-arrow-side-left.driver-popover-arrow { border-left-color: #fff; }
.driver-popover.cr-tour .driver-popover-arrow-side-bottom.driver-popover-arrow { border-bottom-color: #1747C9; }
.driver-popover.cr-tour .driver-popover-arrow-side-top.driver-popover-arrow { border-top-color: #fff; }
.driver-active-element { box-shadow: 0 0 0 3px #38B6FF, 0 0 24px 4px rgba(56,182,255,.45) !important; border-radius: 10px; }
@media (max-width: 640px) { .driver-popover.cr-tour { max-width: calc(100vw - 24px); } }
.driver-popover.cr-tour.cr-tour-first .driver-popover-prev-btn { display: none !important; }

/* ===== Comptes de démonstration et chiffres de l'accueil ===== */
.demo-badge { display: inline-flex; align-items: center; vertical-align: 1px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5B6B84; background: #EEF1F6; border: 1px solid #D6DCE6; border-radius: 99px; padding: 1px 7px; cursor: help; line-height: 1.5; }
.ba-try { text-align: center; color: var(--muted, #5B6B84); font-size: 14px; margin: 12px auto 0; max-width: 620px; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 22px 0 4px; color: #C9D6EA; font-size: 15px; }
.hero-stats:empty { display: none; }
.hero-stats b { color: #fff; font-size: 20px; margin-right: 4px; }

/* ===================================================================
   Stabilité mobile : téléphone, tablette, application installée, petite fenêtre
   =================================================================== */
/* Aucune page ne glisse sur le côté sous le doigt, même si un élément dépasse. */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
body { overflow-wrap: break-word; }
img, video, canvas, iframe, embed, object { max-width: 100%; }
pre { white-space: pre-wrap; word-break: break-word; }
.mono, .ref, code { overflow-wrap: anywhere; }
/* Les colonnes d'une grille ne peuvent jamais être plus larges que l'écran. */
.grid > *, .ps-grid > *, .feature-split > *, .sp-grid > *, .dd-grid > *, .row > .grow { min-width: 0; }
.ps-chart, .ps-pays { overflow: hidden; }
/* Les longs libellés de bouton passent à la ligne au lieu de pousser la page. */
.btn { max-width: 100%; }
.btn-block, .ba-cta .btn, .scan-btn { white-space: normal; height: auto; min-height: 40px; padding-top: 9px; padding-bottom: 9px; line-height: 1.3; text-align: center; flex-wrap: wrap; }
/* Hauteur réelle de l'écran (barre d'adresse comprise) pour le menu. */
.side { height: 100vh; height: 100dvh; }
/* iPhone : pas de zoom automatique quand on touche un champ (il faut au moins 16 px). */
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select, textarea { font-size: 16px; }
}
/* Application installée et téléphones à encoche : rien sous l'heure ni sous la barre du bas. */
@supports (padding: env(safe-area-inset-top)) {
  .topbar { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
  .side { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .nav { padding-top: env(safe-area-inset-top); }
  .fab { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .modal-box { padding-bottom: env(safe-area-inset-bottom); }
  .install-pill, .cookie-bar { margin-bottom: env(safe-area-inset-bottom); }
}
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } }

/* Tablettes et petites fenêtres */
@media (max-width: 1080px) {
  .content { max-width: 100%; }
  .card-h { flex-wrap: wrap; gap: 8px; }
}
/* Téléphones : plus d'air, gestes faciles, lecture confortable */
@media (max-width: 640px) {
  .content { padding: 14px 12px 96px; }
  .page-h { align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .page-h > div:first-child { flex: 1 1 100%; }
  .page-h h1 { font-size: 22px; line-height: 1.25; }
  .page-h > .row, .page-h > .btn, .page-h > a.btn { width: 100%; }
  .page-h > .row .btn { flex: 1 1 auto; }
  .card { border-radius: 14px; }
  .card-b { padding: 14px; }
  .card-h { padding: 12px 14px; }
  /* Les indicateurs restent deux par ligne : lisibles d'un coup d'œil. */
  .grid.g4:has(> .kpi), .grid.g3:has(> .kpi), .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .v { font-size: 24px; }
  .kpi .s { font-size: 11.5px; }
  .btn-lg { white-space: normal; height: auto; min-height: 46px; padding-top: 11px; padding-bottom: 11px; line-height: 1.3; text-align: center; }
  .ba-cta .btn, .ba-cta a { width: 100%; }
  .table th, .table td { padding-left: 10px; padding-right: 10px; }
  .tabs a { white-space: nowrap; }
  h1 { overflow-wrap: anywhere; }
  .ps-chart .spark .col small { font-size: 9px; }
  .ps-chart .spark .col:nth-child(even) small { visibility: hidden; }
}
/* Accueil : maquette de téléphones contenue dans l'écran */
@media (max-width: 640px) {
  .mob-phones { height: 430px; max-width: 340px; overflow: hidden; }
  .phone { width: 180px; left: 4%; } .phone.back { left: 40%; }
}
/* En-têtes de blocs : sélecteurs et boutons passent à la ligne sur petit écran */
@media (max-width: 640px) {
  .card-h .row { flex-wrap: wrap; }
  .seg-mini { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg-mini::-webkit-scrollbar { display: none; }
}
/* Sélecteurs à onglets (« Citoyens / Entreprises / Institutions »…) : tiennent sur les plus petits écrans */
@media (max-width: 400px) {
  .seg label span { padding-left: 8px; padding-right: 8px; font-size: 13px; gap: 4px; }
  .seg label span .ic { display: none; }
}
/* Éditeur de courrier : bord à bord, calé sur les marges du téléphone et sous la barre du haut */
@media (max-width: 640px) { .composer { margin: -14px -12px -96px; } }
@supports (padding: env(safe-area-inset-top)) { @media (max-width: 1080px) { .c-bar { top: calc(60px + env(safe-area-inset-top)); } } }
/* Boutons à libellé long : l'icône reste à côté du texte, seul le texte passe à la ligne */
.btn-block, .ba-cta .btn, .scan-btn { flex-wrap: nowrap; }
.btn-block > .ic, .ba-cta .btn > .ic, .scan-btn > .ic { flex: none; }

/* ===== Dites-nous tout ===== */
.btn-dnt { --b: #FFB020; --c: #1A1200; --bd: #FFB020; font-weight: 600; }
.btn-dnt:hover { --b: #FFC14D; }
.dnt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dnt-chips a { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: #FFF4DC; color: #7A4B00; border: 1px solid #FFE0A3; text-decoration: none; }
.dnt-chips a:hover { background: #FFE9BF; }
.dnt-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 10px 0 8px; }
.dnt-hero p { max-width: 680px; font-size: 17px; }
.dnt-promise { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: #C9D6EA; font-size: 14px; }
.dnt-promise span { display: inline-flex; align-items: center; gap: 6px; }
.dnt-step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.dnt-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-600, #1747C9); color: #fff; display: grid; place-items: center; font-size: 13px; }
.dnt-motifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.dnt-motif { cursor: pointer; }
.dnt-motif input { position: absolute; opacity: 0; pointer-events: none; }
.dnt-motif span { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line, #E3E8F0); border-radius: 12px; background: #fff; font-weight: 600; font-size: 14.5px; transition: border-color .15s, box-shadow .15s, background .15s; }
.dnt-motif input:checked + span { border-color: var(--blue-600, #1747C9); background: #F3F7FF; box-shadow: 0 0 0 3px rgba(23,71,201,.12); }
.dnt-motif input:focus-visible + span { outline: 2px solid var(--blue-600, #1747C9); outline-offset: 2px; }
.dnt-media { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2, #D3DBE7); border-radius: 12px; cursor: pointer; color: var(--muted, #5B6B84); }
.dnt-media:hover { border-color: var(--blue-500, #2E6BF0); color: var(--text, #13203A); }
.dnt-media span { display: flex; flex-direction: column; } .dnt-media b { color: var(--text, #13203A); font-size: 14px; } .dnt-media small { font-size: 12px; }
.dnt-preview { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.dnt-preview img, .dnt-preview video { max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line, #E3E8F0); }
.dnt-preview[hidden] { display: none; }
.dnt-rows { display: flex; flex-direction: column; gap: 6px; }
.dnt-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.dnt-notify { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dnt-tag { background: #FFF4DC !important; color: #7A4B00 !important; border-color: #FFE0A3 !important; }
@media (max-width: 640px) { .dnt-row { grid-template-columns: 1fr auto; } .dnt-row select { grid-column: 1 / -1; grid-row: 2; } .dnt-motifs { grid-template-columns: 1fr 1fr; } }

/* ===== Organigramme ===== */
.oc-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.oc-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.oc-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; }
.oc-steps .done { color: var(--text-2); } .oc-steps .done b { background: var(--ok-bg); color: var(--ok); }
.oc-steps .cur { background: var(--blue-50); color: var(--blue-700); } .oc-steps .cur b { background: var(--blue-600); color: #fff; }
.oc-sources .card { display: flex; flex-direction: column; } .oc-sources .card-b { flex: 1; } .oc-sources h3 { margin: 0; }
.oc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.oc-tree { overflow-x: auto; }
.oc-tree ul { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px dashed var(--line-2); }
.oc-tree > ul { padding-left: 0; border-left: 0; }
.oc-tree li { position: relative; padding: 4px 0 4px 10px; }
.oc-tree ul ul > li::before { content: ""; position: absolute; left: -18px; top: 20px; width: 24px; border-top: 1px dashed var(--line-2); }
.oc-node { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue-400); max-width: 100%; }
.oc-node b { font-size: 13.5px; } .oc-node small { color: var(--muted); font-size: 12px; }
.oc-node.lv-dg { border-left-color: var(--ink-900); background: var(--surface-2); } .oc-node.lv-direction { border-left-color: var(--blue-600); }
.oc-node.lv-sous_direction { border-left-color: var(--blue-400); } .oc-node.lv-secretariat { border-left-color: var(--warn); }
.oc-resp { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 3px; }
.oc-n { font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.oc-bo { font-size: 11px; font-weight: 700; color: #7A4B00; background: #FFF4DC; border-radius: 999px; padding: 1px 8px; }
.oc-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 18px; align-items: start; }
.oc-aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 96px); overflow: auto; }
.oc-row .card-b { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.oc-row .field { margin-bottom: 6px; }
.oc-g1 { display: grid; grid-template-columns: minmax(0, 2fr) 90px minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 0 10px; }
.oc-g2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.oc-g3 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.oc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 2px; }
.oc-kpi .card-b { display: flex; flex-direction: column; gap: 2px; } .oc-kpi b { font-size: 26px; line-height: 1.1; } .oc-kpi span { color: var(--muted); font-size: 13px; }
.oc-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.oc-flow > div { position: relative; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.oc-flow small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.oc-flow span { color: var(--text-2); font-size: 12.5px; }
.oc-circ { padding: 10px 0; border-top: 1px solid var(--line); } .oc-circ:first-of-type { border-top: 0; }
.oc-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.oc-chain span { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; }
.oc-chain span small { color: var(--muted); font-weight: 500; font-size: 11px; }
.oc-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 72px 12px 0; background: var(--bg); border-top: 1px solid var(--line); }
@media (max-width: 980px) { .oc-edit { grid-template-columns: 1fr; } .oc-aside { position: static; max-height: none; order: -1; } .oc-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .oc-g1 { grid-template-columns: 1fr 90px; } .oc-g2, .oc-g3, .oc-flow { grid-template-columns: 1fr; } .oc-side { flex-direction: row; justify-content: space-between; align-items: center; } .oc-bar .btn { flex: 1 1 100%; } }
.oc-promo { color: inherit; text-decoration: none; border-color: var(--blue-100); background: linear-gradient(90deg, var(--blue-50), var(--surface) 60%); } .oc-promo:hover { border-color: var(--blue-400); }

.dnt-row4 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 760px) { .dnt-row4 { grid-template-columns: 1fr auto; } .dnt-row4 select { grid-column: 1 / -1; } }
.warn-t { color: var(--warn); } .danger-t { color: var(--danger); font-weight: 700; }

/* ===== Agences ===== */
.br-map { height: 320px; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 14px; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.br-c { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.seg a { flex: 1; text-align: center; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }

/* ===== File d attente : public ===== */
.q-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.q-lf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.q-lf small { color: var(--muted); font-size: 12px; font-weight: 600; } .q-lf b { font: 700 24px var(--mono); } .q-lf span { font-size: 12.5px; color: var(--text-2); }
.q-prestas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.q-presta { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.q-presta input { position: absolute; opacity: 0; pointer-events: none; }
.q-presta span { display: flex; flex-direction: column; gap: 2px; } .q-presta small { color: var(--muted); font-size: 12px; }
.q-presta.on, .q-presta:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.q-tips { border-top: 1px dashed var(--line); padding-top: 14px; }
.q-cons { display: flex; gap: 8px; background: var(--info-bg); color: var(--text); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; font-size: 14px; }
.q-check { padding: 6px 0; }
.q-more { gap: 8px; } .q-branches { display: grid; gap: 8px; }
.q-branch { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; color: inherit; text-decoration: none; } .q-branch span { grid-column: 1; } .q-branch svg { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* Ticket (telephone) */
.tq-body { background: linear-gradient(180deg, #07111F 0, #0E1D33 260px, var(--bg) 260px); min-height: 100vh; }
.tq { max-width: 460px; margin: 0 auto; padding: 14px 16px 30px; }
.tq-h { display: flex; align-items: center; gap: 10px; color: #E3ECF8; padding: 4px 0 16px; }
.tq-h b { display: block; font-size: 16px; } .tq-h small { color: #8FA3BF; font-size: 13px; }
.tq-logo, .tq-av { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #fff; display: grid; place-items: center; font-weight: 700; color: #0B1424; }
.tq-card { background: var(--surface); border-radius: 20px; padding: 22px 18px 18px; text-align: center; box-shadow: var(--sh-lg); }
.tq-k { color: var(--muted); font-size: 13px; font-weight: 600; }
.tq-num { font: 700 64px/1.05 var(--mono); letter-spacing: .02em; margin: 6px 0 2px; color: var(--text); }
.tq-status { font-weight: 700; color: var(--blue-700); margin-bottom: 14px; }
.tq-card[data-st="termine"] .tq-status { color: var(--ok); } .tq-card[data-st="absent"] .tq-status, .tq-card[data-st="annule"] .tq-status { color: var(--danger); }
.tq-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 12px; }
.tq-meta div { display: flex; flex-direction: column; } .tq-meta b { font: 700 20px var(--mono); } .tq-meta span { font-size: 11.5px; color: var(--muted); }
.tq-call { margin-top: 14px; background: #0F8A4B; color: #fff; border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: tqPulse 1.2s ease-in-out infinite; }
.tq-call[hidden] { display: none; }
.tq-call b { font-size: 26px; } .tq-call span { font-size: 16px; }
@keyframes tqPulse { 50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(15,138,75,.18); } }
.tq-box { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; align-items: start; }
.tq-box[hidden], .tq-rate[hidden], .tq-thanks[hidden] { display: none; }
.tq-box b { display: block; font-size: 14px; } .tq-box span { font-size: 12.5px; color: var(--text-2); } .tq-box .btn { grid-column: 1 / -1; }
.tq-rate { margin-top: 14px; background: var(--surface); border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh); }
.tq-stars { display: flex; justify-content: center; gap: 6px; }
.tq-stars button { font-size: 38px; line-height: 1; background: none; border: 0; color: #CBD5E1; cursor: pointer; padding: 2px; }
.tq-stars button.on { color: #F5A623; } .tq-lbl { font-size: 13px; color: var(--muted); min-height: 18px; }
.tq-thanks { margin-top: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ok); }
.tq-thanks span { color: var(--text-2); font-size: 14px; }
.tq-foot { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tq-legal { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 14px; }

/* Ecran d affichage */
.qs-body, .qk-body { background: #050C18; color: #E6EEF9; overflow: hidden; }
.qs, .qk { height: 100vh; display: flex; flex-direction: column; }
.qs-h { display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: #0A1628; border-bottom: 1px solid #14253F; }
.qs-logo { height: 46px; border-radius: 8px; background: #fff; padding: 3px; }
.qs-t b { display: block; font-size: 24px; } .qs-t span { color: #8FA3BF; font-size: 17px; }
.qs-clock { margin-left: auto; font: 600 34px var(--mono); color: #CFE0FF; }
.qs > .qs-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding: 24px 32px; min-height: 0; overflow: visible; background: none; }
.qs-calls { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.qs-now { background: linear-gradient(135deg, #1747C9, #0E2F8A); border-radius: 22px; padding: 22px 28px; display: flex; flex-direction: column; }
.qs-now small { font-size: 18px; color: #BFD2FF; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.qs-now b { font: 700 clamp(64px, 9vw, 130px)/1 var(--mono); color: #fff; } .qs-now span { font-size: clamp(22px, 2.6vw, 38px); font-weight: 700; color: #FFD66B; }
.qs-now.flash { animation: qsFlash 1s ease 3; } @keyframes qsFlash { 50% { background: #F5A623; } }
.qs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qs-list div { display: flex; justify-content: space-between; align-items: center; background: #0D1B30; border-radius: 12px; padding: 12px 18px; font-size: 22px; }
.qs-list b { font: 700 28px var(--mono); } .qs-list span { color: #8FA3BF; } .qs-list .cur { display: none; }
.qs-empty { color: #5F7393; font-size: 18px; }
.qs-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.qs-files div { background: #0D1B30; border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 150px; }
.qs-files small { color: #8FA3BF; font-size: 15px; } .qs-files b { font: 700 30px var(--mono); } .qs-files span { color: #5F7393; font-size: 13px; }
.qs-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.qs-media { flex: 1; border-radius: 22px; overflow: hidden; background: #0D1B30; display: grid; place-items: center; min-height: 0; }
.qs-m { width: 100%; height: 100%; object-fit: cover; }
.qs-welcome { padding: 30px; text-align: center; } .qs-welcome b { display: block; font-size: 34px; margin-bottom: 10px; } .qs-welcome span { font-size: 20px; color: #A9BCD8; }
.qs-qr { display: flex; gap: 18px; align-items: center; background: #fff; color: #0B1424; border-radius: 18px; padding: 14px 18px; }
.qs-qr [data-qr] { width: 132px; height: 132px; flex: none; } .qs-qr [data-qr] svg { width: 100%; height: 100%; }
.qs-qr b { display: block; font-size: 22px; } .qs-qr span { display: block; font-size: 15.5px; color: #334155; margin: 4px 0; } .qs-qr small { font-size: 14px; color: #64748B; }
.qs-ticker { background: #F5A623; color: #1B1200; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; padding: 10px 0; }
.qs-ticker span { display: inline-block; padding-left: 100%; animation: qsTick 28s linear infinite; } @keyframes qsTick { to { transform: translateX(-100%); } }
.qs-start { position: fixed; inset: 0; background: rgba(5,12,24,.92); display: grid; place-items: center; text-align: center; z-index: 9; }
.qs-start b { font-size: 26px; } .qs-start p { color: #A9BCD8; max-width: 520px; margin: 10px auto 18px; }
/* Borne */
.qk-pick, .qk-done, .qk-sf { flex: 1; padding: 30px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.qk-pick[hidden], .qk-done[hidden], .qk-sf[hidden] { display: none; }
.qk-pick h1 { font-size: 34px; margin: 0; color: #fff; }
.qk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; width: 100%; max-width: 1100px; }
.qk-b { background: #12305F; color: #fff; border: 0; border-radius: 18px; padding: 26px 18px; font-size: 22px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.qk-b:active { transform: scale(.98); } .qk-b.sf { background: #1D3A2E; } .qk-b small { font-size: 14px; color: #A9BCD8; }
.qk-done small { font-size: 20px; color: #A9BCD8; text-transform: uppercase; letter-spacing: .1em; }
.qk-done > b { font: 700 120px/1 var(--mono); color: #fff; } .qk-done > span { font-size: 24px; color: #FFD66B; }
.qk-qr { display: flex; gap: 14px; align-items: center; background: #fff; color: #0B1424; border-radius: 16px; padding: 12px 16px; } .qk-qr div { width: 120px; height: 120px; } .qk-qr svg { width: 100%; height: 100%; }
.qk-cons, .qk-sf p { font-size: 19px; color: #C9D6EA; max-width: 760px; } .qk-sf b { font-size: 32px; } .qk-off { font-size: 22px; color: #FFD66B; }
@media print { .qk-body * { visibility: hidden; } .qk-done, .qk-done * { visibility: visible; color: #000 !important; } .qk-done { position: absolute; inset: 0; } .qk-done .row, .qk-cons { display: none !important; } }
@media (max-width: 900px) { .qs > .qs-body { grid-template-columns: 1fr; overflow: auto; } .qs-list { grid-template-columns: 1fr; } }

/* Guichet et reglages */
.gc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.gc-k { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.gc-num { font: 700 84px/1.05 var(--mono); margin: 6px 0; } .gc-info { color: var(--text-2); min-height: 22px; margin-bottom: 16px; }
.gc-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .gc-next { grid-column: 1 / -1; font-size: 18px; padding: 16px; }
.gc-next kbd { font-size: 11px; background: rgba(255,255,255,.2); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.gc-tr { display: flex; gap: 8px; margin-top: 12px; } .gc-tr select { flex: 1; }
.gc-w { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .gc-w b { font: 700 22px var(--mono); }
.gc-kpi { display: grid; grid-template-columns: 1fr 1fr; } .gc-kpi div { display: flex; flex-direction: column; } .gc-kpi b { font-size: 24px; } .gc-kpi span { font-size: 12px; color: var(--muted); }
.gc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .gc-g { padding: 14px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; } .gc-g:hover { border-color: var(--blue-400); }
.qa-plan { border-color: var(--blue-100); background: linear-gradient(90deg, var(--blue-50), var(--surface) 55%); }
.qa-url { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-g, .qa-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.qa-g input[name="nom"], .qa-f input[name="nom"] { height: 34px; } .qa-files { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.qa-f { grid-template-columns: minmax(0, 1fr) 70px 90px 70px auto; } .qa-f label { display: flex; flex-direction: column; } .qa-f label small { font-size: 11px; color: var(--muted); } .qa-f input { height: 32px; }
.qa-hours { display: flex; align-items: flex-end; gap: 4px; height: 170px; } .qa-hours div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.qa-hours span { width: 100%; background: var(--blue-500); border-radius: 4px 4px 0 0; } .qa-hours small { font-size: 10px; color: var(--muted); }
.qa-avis { border-left: 3px solid var(--line-2); padding: 4px 0 4px 10px; } .qa-avis.n1, .qa-avis.n2 { border-left-color: var(--danger); }
.qa-avis b { color: #F5A623; } .qa-avis b span { color: var(--line-2); } .qa-avis p { margin: 2px 0; font-size: 14px; } .qa-avis small { color: var(--muted); font-size: 12px; }
.cq-why { gap: 10px; } .cq-why div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; } .cq-why span { font-size: 13px; color: var(--text-2); }
@media (max-width: 860px) { .gc { grid-template-columns: 1fr; } .qa-g, .qa-f { grid-template-columns: 1fr 1fr; } .qa-files { grid-column: 1 / -1; } }

.s-lock { margin-left: auto; color: var(--muted); display: inline-flex; }
.up-card h2 { font-size: 24px; line-height: 1.25; margin: 12px 0 8px; max-width: 760px; }
.up-list { gap: 8px; margin-top: 14px; } .up-list div { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); } .up-list div.on { background: var(--blue-50); outline: 1.5px solid var(--blue-400); }
.up-list span { display: flex; flex-direction: column; } .up-list small { color: var(--text-2); font-size: 12.5px; } .up-list svg { color: var(--ok); flex: none; margin-top: 2px; }
/* ===== Tarifs par gamme ===== */
.pr-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto 26px; }
.pr-tab input { position: absolute; opacity: 0; pointer-events: none; } .pr-tab { position: relative; cursor: pointer; }
.pr-tab span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; height: 100%; }
.pr-tab b { font-size: 16px; } .pr-tab small { font-size: 12px; color: var(--muted); } .pr-tab svg { color: var(--blue-600); }
.pr-tab input:checked + span { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(23,71,201,.12); }
.pr-intro { max-width: 760px; margin: 0 auto 22px; text-align: center; } .pr-intro h2 { font-size: 26px; margin: 0 0 8px; } .pr-intro p { color: var(--text-2); margin: 0; }
.pr-who { margin-top: 36px; } .pr-who h2 { text-align: center; font-size: 24px; margin: 0 0 16px; } .pr-who .grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; } .pr-who b { display: flex; align-items: center; gap: 6px; font-size: 16px; } .pr-who p { font-size: 14px; color: var(--text-2); margin: 6px 0 0; }
.pr-cmp td.c, .pr-cmp th.c { text-align: center; width: 110px; } .pr-cmp td.c svg { color: var(--ok); }
@media (max-width: 640px) { .pr-tabs { grid-template-columns: 1fr; } .pr-tab span { flex-direction: row; justify-content: flex-start; text-align: left; flex-wrap: wrap; } .pr-tab small { width: 100%; } }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #FFF4DC; border: 1.5px solid #FFD27A; color: #5A3A00; border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; font-size: 13.5px; }
.demo-bar select { height: 32px; width: auto; max-width: 360px; flex: 1 1 220px; }

/* Pages de référencement */
.seo-crumbs{color:#8FA3BF;margin-bottom:10px}.seo-crumbs a{color:#C5D0E0}.seo-def{max-width:820px;margin:14px auto 0;font-size:17px;line-height:1.7;color:#C5D0E0}.seo-cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.seo-h2{font-size:22px;margin:0 0 16px}.seo-links{display:flex;flex-wrap:wrap;gap:8px}.seo-links a{display:inline-flex;gap:6px;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;font-size:13.5px;color:var(--text-2);background:var(--surface)}.seo-links a:hover{border-color:var(--blue-600);color:var(--blue-600)}
.seo-gloss{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.seo-gloss dt{font-weight:600;font-size:16px;margin-bottom:6px}.seo-gloss dd{margin:0;color:var(--muted);line-height:1.6;font-size:14.5px}@media(max-width:720px){.seo-gloss{grid-template-columns:1fr}}

/* Tri des tableaux (clic sur l'en-tête) */
th.th-sort{cursor:pointer;user-select:none;white-space:nowrap}th.th-sort:hover{color:var(--blue-600)}th.th-sort::after{content:"";display:inline-block;width:0;height:0;margin-left:6px;vertical-align:middle;border:4px solid transparent;border-top-color:currentColor;opacity:.25;transform:translateY(2px)}th.th-sort[aria-sort=ascending]::after{border-top-color:transparent;border-bottom-color:currentColor;opacity:.9;transform:translateY(-2px)}th.th-sort[aria-sort=descending]::after{opacity:.9}th.th-sort:focus-visible{outline:2px solid var(--blue-600);outline-offset:-2px}

/* Fiche entreprise (admin) */
.org-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}.org-steps li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.org-steps li>svg{color:var(--warn);flex:none;margin-top:2px}.org-steps li.ok>svg{color:var(--ok,#1a8f4c)}.org-steps li>div{flex:1}.org-steps li.ok b{color:var(--muted);font-weight:500}

/* Organigramme dessiné (SVG) */
.ocs { position: relative; }
.ocs-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ocs-bar .grow { flex: 1; }
.ocs-view { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle, var(--line) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--surface-2); padding: 10px; cursor: grab; text-align: center; -webkit-overflow-scrolling: touch; }
.ocs-view.grab { cursor: grabbing; user-select: none; }
.ocs-view svg { display: inline-block; vertical-align: top; max-width: none; }
.ocs-n rect:first-child { transition: filter .15s; }
.ocs-n:hover rect:first-child { filter: drop-shadow(0 4px 10px rgba(11, 27, 51, .18)); }
.ocs-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ocs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ocs-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ocs-legend i.dot { border-radius: 50%; width: 9px; height: 9px; }
.ocs-legend b { font-size: 10px; padding: 1px 6px; border-radius: 9px; }
.ocs-bo { background: #FEF3C7; color: #92400E; }
.ocs-plus { background: var(--surface-2); color: var(--ink-900); border: 1px solid var(--line); }
.ocs:fullscreen { background: var(--bg, #fff); padding: 16px; overflow: auto; }
.ocs:fullscreen .ocs-view { max-height: calc(100vh - 110px); }
.oc-listview summary { cursor: pointer; color: var(--muted); }
.oc-h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 22px 0 8px; }
/* Activation des comptes */
.act-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.act-bar i { display: block; min-width: 0; }
.act-kpis { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.act-kpis span { display: inline-flex; align-items: center; gap: 6px; }
.act-kpis i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.act-list summary { cursor: pointer; }
.act-list .table-wrap { margin-top: 8px; }
/* Mon périmètre */
.peri-head { display: flex; flex-wrap: wrap; gap: 8px; }
.peri-head .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.peri-circ { padding: 12px 18px; border-top: 1px solid var(--line); }
.peri-circ .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
@media (max-width: 640px) { .ocs-view { max-height: 60vh; padding: 6px; } .ocs-bar .xs { display: none; } }

/* Organigramme à dessiner (Drawflow) */
.od-wrap { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.od-wrap:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.od-wrap:fullscreen .od-canvas { flex: 1; height: auto; }
.od-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 3; }
.od-tools .grow, .od-bar .grow { flex: 1; }
.od-canvas { height: 62vh; min-height: 420px; background: radial-gradient(circle, var(--line) 1px, transparent 1.2px) 0 0 / 20px 20px, var(--surface-2); }
.od-canvas .drawflow .drawflow-node { width: 210px; min-height: 86px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(11, 27, 51, .06); color: var(--ink-900); cursor: pointer; }
.od-canvas .drawflow .drawflow-node.selected { background: var(--surface); border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.od-canvas .drawflow .drawflow-node.head { background: #0B1B33; border-color: #0B1B33; color: #fff; }
.od-canvas .drawflow .drawflow-node.head .odn small, .od-canvas .drawflow .drawflow-node.head .odn-r { color: #C7D2E5; }
.od-canvas .drawflow-node .drawflow_content_node { width: 100%; display: block; position: static; }
.od-canvas .drawflow .drawflow-node .inputs, .od-canvas .drawflow .drawflow-node .outputs { position: absolute; left: 50%; width: 0; height: 16px; display: block; }
.od-canvas .drawflow .drawflow-node .inputs { top: -9px; } .od-canvas .drawflow .drawflow-node .outputs { bottom: -9px; top: auto; }
.od-canvas .drawflow .drawflow-node .input, .od-canvas .drawflow .drawflow-node .output { position: absolute; left: -9px; top: 0; right: auto; width: 18px; height: 18px; box-sizing: border-box; margin: 0; border: 2px solid var(--blue-500); background: var(--surface); }
.od-canvas .drawflow .drawflow-node .input:hover, .od-canvas .drawflow .drawflow-node .output:hover { background: var(--blue-500); }

.od-canvas .drawflow .connection .main-path { stroke: var(--line-2, #B8C2D3); stroke-width: 2.2px; }
.od-canvas .drawflow .connection .main-path.selected, .od-canvas .drawflow .connection .main-path:hover { stroke: var(--blue-500); }
.od-canvas .drawflow-delete { background: var(--danger, #DC2626); border: 2px solid #fff; color: #fff; line-height: 26px; }
.odn { padding: 10px 12px 12px 16px; position: relative; }
.odn::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 3px; background: var(--c); }
.drawflow-node.head .odn::before { display: none; }
.odn-t { display: flex; align-items: center; gap: 6px; } .odn-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odn small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odn-r { margin-top: 6px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odn-r.odn-none { display: block; font-weight: 400; font-style: italic; color: var(--muted); padding-right: 26px; }
.odn-r .dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; flex: none; }
.odn-bo { font-style: normal; font-size: 10px; font-weight: 700; background: #FEF3C7; color: #92400E; padding: 1px 6px; border-radius: 9px; }
.odn-add { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--blue-600); font-weight: 700; line-height: 20px; padding: 0; cursor: pointer; opacity: .75; }
.odn-add:hover { opacity: 1; background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.drawflow-node.head .odn-add { background: #1E3354; border-color: #1E3354; color: #fff; }
.od-msg { position: absolute; left: 50%; top: 62px; transform: translateX(-50%); z-index: 4; margin: 0; }
.od-help { padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.od-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.od-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(7, 17, 31, .45); padding: 16px; }
.od-modal.open { display: flex; }
.od-modal .modal-box { width: min(560px, 100%); max-height: 92vh; overflow: auto; }
.od-modal input.err { border-color: var(--danger, #DC2626); }
@media (max-width: 640px) { .od-canvas { height: 58vh; min-height: 360px; } .od-help { display: none; } }

/* Assistant de configuration */
.setup-head { margin-bottom: 16px; }
.setup-head h1 { font-size: 24px; }
.setup-pct { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.setup-pct span, .setup-mini { display: inline-block; width: 120px; height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.setup-pct i, .setup-mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), #16A34A); border-radius: 6px; }
.setup-steps { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.setup-steps a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-700, inherit); font-size: 13px; text-decoration: none; }
.setup-steps a .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 12px; }
.setup-steps a.ok .n { background: #DCFCE7; color: #15803D; }
.setup-steps a.cur { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); font-weight: 600; }
.setup-steps a.cur .n { background: var(--blue-500); color: #fff; }
.setup-intro { margin: 10px 0 0; color: var(--muted); max-width: 860px; }
.setup-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding: 14px 0 6px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg, var(--surface)); z-index: 5; }
.setup-bar .grow { flex: 1; }
.setup-embed > .stack-lg { display: flex; flex-direction: column; gap: 18px; }
.setup-final { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.setup-check { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.setup-check span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #FEE2E2; color: #B91C1C; flex: none; }
.setup-check.ok span { background: #DCFCE7; color: #15803D; }
.setup-check b { flex: 1; font-size: 13.5px; } .setup-check small { color: var(--muted); }
.setup-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid #BFDBFE; background: #EFF6FF; color: #1E3A8A; text-decoration: none; font-size: 13.5px; }
.setup-banner .grow { flex: 1; min-width: 200px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .setup-banner { background: rgba(37, 99, 235, .14); border-color: rgba(96, 165, 250, .35); color: #BFDBFE; } }
:root[data-theme="dark"] .setup-banner { background: rgba(37, 99, 235, .14); border-color: rgba(96, 165, 250, .35); color: #BFDBFE; }
@media (max-width: 860px) { .setup-final { grid-template-columns: 1fr; } }

/* Relation usagers (tableau de bord) */
.usg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.usg { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface); }
.usg:hover { border-color: var(--blue-400); }
.usg .ic-w { width: 30px; height: 30px; }
.usg-l { font-size: 13px; color: var(--muted); }
.usg-v { font-size: 26px; line-height: 1.1; }
.usg-d { font-size: 12px; color: var(--muted); } .usg-d.up { color: #15803D; } .usg-d.down { color: #B45309; } .usg-d small { color: var(--muted); }
.usg-o { font-size: 12px; color: var(--muted); } .usg-o.hot { color: var(--danger, #DC2626); font-weight: 600; }
@media (max-width: 900px) { .usg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Accueil resserré : mise en place, pour qui, campagne, fenêtre « Découvrir » */
.spot-head { text-align: center; margin-bottom: 26px; } .spot-head h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); }
.spot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spot { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.spot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 27, 51, .12); }
.spot b { font-size: 21px; line-height: 1.25; max-width: 80%; } .spot p { margin: 0; color: var(--muted); max-width: 520px; }
.spot .btn { margin-top: 6px; }
.spot-oc { background: linear-gradient(135deg, #0B1B33, #1D3A6B); color: #fff; border-color: #0B1B33; } .spot-oc p { color: #C7D2E5; }
.spot-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(37, 99, 235, .12); color: var(--blue-600); }
.spot-oc .spot-ic { background: rgba(255, 255, 255, .12); color: #9DC3FF; }
.spot-art { position: absolute; right: 18px; top: 18px; width: 150px; color: var(--blue-500); opacity: .5; pointer-events: none; }
.spot-oc .spot-art { color: #6CC4FF; opacity: .45; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.who:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.who b { font-size: 18px; } .who > span:not(.spot-ic) { color: var(--muted); font-size: 14.5px; } .who em { font-style: normal; color: var(--blue-600); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }
.camp-sec { overflow: hidden; padding: 26px 0; background: #07111F; }
.camp-track { display: flex; gap: 16px; width: max-content; animation: camp 60s linear infinite; }
.camp-sec:hover .camp-track { animation-play-state: paused; }
.camp-it { flex: none; height: 230px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #0B1B33; }
.camp-it img { height: 100%; width: auto; display: block; }
@keyframes camp { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .camp-track { animation: none; } }
html.disc-on { overflow: hidden; }
.disc { width: min(1180px, 100vw - 24px); height: min(92vh, 100%); max-height: 100vh; padding: 0; border: 0; border-radius: 18px; background: var(--bg, #fff); color: inherit; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.disc[open] { display: flex; flex-direction: column; }
.disc::backdrop { background: rgba(4, 10, 20, .62); backdrop-filter: blur(3px); }
.disc-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 2; }
.disc-bar > b { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.disc-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.disc-nav a { white-space: nowrap; padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; }
.disc-nav a:hover { background: var(--surface-2); color: inherit; }
.disc-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.disc-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 28px; padding-bottom: 10px; }
.disc-prof { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.disc-prof h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; } .disc-prof ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 14px; } .disc-prof li { margin: 6px 0; } .disc-prof li b { color: var(--ink-900, inherit); }
.disc-gal { columns: 3 260px; column-gap: 14px; padding-top: 20px; }
.disc-gal a { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; break-inside: avoid; } .disc-gal img { width: 100%; display: block; }
@media (max-width: 860px) { .spot-grid, .who-grid, .disc-profiles { grid-template-columns: 1fr; } .spot b { max-width: 100%; } .spot-art { display: none; } .camp-it { height: 170px; } .disc { width: 100vw; height: 100vh; border-radius: 0; } .disc-bar > b { display: none; } }

/* Organigramme gratuit (site) */
.ocf-hero { padding-bottom: 18px; } .ocf-hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 44px); } .ocf-hero .lead { max-width: 820px; color: var(--muted); }
.ocf-models { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.ocf-editor { padding-bottom: 40px; }
.ocf-editor .od-bar .field input { height: 38px; min-width: 240px; }
.ocf-next { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ocf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .ocf-list li { display: flex; gap: 8px; align-items: flex-start; } .ocf-list svg { color: #16A34A; flex: none; margin-top: 3px; }
@media (max-width: 860px) { .ocf-next { grid-template-columns: 1fr; } }

/* ===== Agenda & événements (v55) ===== */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ev-layout { grid-template-columns: 1fr; } }
.ev-list { display: flex; flex-direction: column; }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--text); }
.ev-row:first-child { border-top: 0; }
.ev-row:hover { background: var(--surface-2); }
.ev-row.off { opacity: .55; }
.ev-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-row .grow small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-date { width: 46px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 0; line-height: 1.1; background: var(--surface); }
.ev-date b { display: block; font-size: 18px; }
.ev-date small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.ev-stat { text-align: right; font-size: 13px; white-space: nowrap; }
.ev-stat small { color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-h { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 2px 0 4px; }
.cal-d { min-height: 62px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; background: var(--surface); }
.cal-d.off { border-color: transparent; background: transparent; }
.cal-n { font-size: 11px; color: var(--muted); align-self: flex-start; padding: 0 2px; border-radius: 4px; }
.cal-n:hover { background: var(--surface-2); color: var(--text); }
.cal-d.has-abs { background-image: linear-gradient(to bottom, var(--warn-bg) 0 4px, transparent 4px); }
.cal-d.today { border-color: var(--blue-500); box-shadow: inset 0 0 0 1px var(--blue-500); }
.cal-d.today .cal-n { color: var(--blue-600); font-weight: 700; }
.cal-it { display: block; font-size: 10.5px; line-height: 1.25; padding: 1px 4px; border-radius: 4px; background: var(--info-bg); color: var(--blue-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-it.k-audience, .cal-it.k-rendez_vous { background: var(--warn-bg); color: var(--warn); }
.cal-it.k-ceremonie, .cal-it.k-lancement { background: var(--ok-bg); color: var(--ok); }
.cal-d small { font-size: 10px; color: var(--muted); }
@media (max-width: 600px) { .cal-d { min-height: 44px; } .cal-d .cal-it { font-size: 0; height: 6px; padding: 0; } }
.ev-guests { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .ev-guests { grid-template-columns: 1fr; } }
.ev-guests .lbl { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 6px; }
.ev-filter { max-width: 150px; padding: 4px 8px; font-size: 12px; }
.ev-clist { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; }
.ev-c { display: flex; gap: 8px; align-items: flex-start; padding: 6px; border-radius: 6px; }
.ev-c:hover { background: var(--surface-2); }
.ev-c span { display: flex; flex-direction: column; min-width: 0; }
.ev-c small { color: var(--muted); font-size: 11.5px; }
.ev-dir { position: relative; }
.ev-dir-res { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh); max-height: 260px; overflow: auto; }
.ev-dir-res button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; color: var(--text); cursor: pointer; }
.ev-dir-res button:hover { background: var(--surface-2); }
.ev-dir-res small { color: var(--muted); font-size: 11.5px; }
.ev-follow { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--info-bg); }
.ev-answer { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--info-bg); }
.rdv-ro fieldset[disabled] { opacity: .6; }

.cal-it.tent { background: transparent; border: 1px dashed var(--warn); color: var(--warn); }
.cal-it.warn { box-shadow: inset 3px 0 0 var(--warn); }
.cal-it small { display: block; font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-nav { gap: 6px; flex-wrap: wrap; }
.cal-nav .grow { flex: 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 12px; height: 8px; border-radius: 3px; background: var(--info-bg); display: inline-block; }
.cal-legend i.k-audience { background: var(--warn-bg); }
.cal-legend i.tent { background: transparent; border: 1px dashed var(--warn); }
.cal-legend i.abs { background: var(--warn-bg); height: 4px; }
.ev-warn { color: var(--warn) !important; white-space: normal !important; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-day { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; min-height: 180px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); min-width: 0; }
.wk-day.we { background: var(--surface-2); }
.wk-day.today { border-color: var(--blue-500); box-shadow: inset 0 0 0 1px var(--blue-500); }
.wk-h { font-size: 12px; display: flex; justify-content: space-between; gap: 4px; color: var(--muted); margin-bottom: 2px; }
.wk-h b { color: var(--text); }
.wk-day .cal-it { font-size: 12px; padding: 4px 6px; white-space: normal; }
.wk-abs { font-size: 11px; color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-add { margin-top: auto; align-self: center; color: var(--faint); padding: 4px; border-radius: 6px; opacity: 0; }
.wk-day:hover .wk-add { opacity: 1; }
.wk-add:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 900px) { .wk-grid { grid-template-columns: 1fr; } .wk-day { min-height: 0; } .wk-add { opacity: 1; } }
.ev-staff summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-top: 12px; }
.dash-agenda { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; }
.dash-agenda > div { padding: 14px 18px; }
.dash-agenda > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .dash-agenda { grid-template-columns: 1fr; } .dash-agenda > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.dash-rate { font-size: 28px; font-weight: 700; line-height: 1; }
/* ===== Modèles de courrier ===== */
.tp { border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; margin-bottom: 16px; background: var(--surface-2); }
.tp-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; } .tp-h b { display: inline-flex; align-items: center; gap: 6px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.tp-chip.on { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); } .tp-free { color: var(--muted); }
.tp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; } .tp-fields .tp-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .tp-fields { grid-template-columns: 1fr; } }

.org-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; }
.org-tpl span { color: #8FA3BF; }
.org-tpl a { color: #E3ECF8; border: 1px solid rgba(227,236,248,.28); border-radius: 999px; padding: 4px 11px; text-decoration: none; font-weight: 600; }
.org-tpl a:hover { background: rgba(227,236,248,.1); border-color: rgba(227,236,248,.5); }

.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ml-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.ml-card:hover { border-color: var(--blue-400); } .ml-card b { font-size: 17px; }
.ml-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.ml-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blue-700); display: inline-flex; align-items: center; gap: 4px; }
.ml-why { margin-top: 24px; } .ml-why h2 { margin: 0 0 12px; font-size: 22px; } .ml-why b { display: flex; align-items: center; gap: 6px; } .ml-why p { font-size: 14px; color: var(--text-2); margin: 4px 0 0; }
.ml-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ml-letter .card-b { font-family: var(--serif); font-size: 16px; line-height: 1.6; } .ml-obj { font-family: var(--font); font-size: 14.5px; }
.ml-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; } .ml-steps li span { display: block; color: var(--text-2); font-size: 14px; }
.ml-faq { border-top: 1px solid var(--line); padding: 10px 0; } .ml-faq summary { font-weight: 600; cursor: pointer; } .ml-faq p { color: var(--text-2); margin: 6px 0 0; }
.ml-send { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 80px; } .ml-send p { margin: 0; }
.ml-others { margin: 8px 0; padding-left: 18px; font-size: 14px; }
@media (max-width: 900px) { .ml-detail { grid-template-columns: 1fr; } .ml-send { position: static; } }

.sig-prev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
.sig-how summary { font-weight: 600; cursor: pointer; } .sig-how ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ===== Nouveautés ===== */
.np { position: fixed; inset: 0; z-index: 90; background: rgba(5,12,24,.55); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.np.in { opacity: 1; pointer-events: auto; } .np.out { opacity: 0; }
.np-box { position: relative; background: var(--surface); border-radius: 18px; padding: 26px 26px 22px; max-width: 540px; width: 100%; box-shadow: var(--sh-lg); max-height: calc(100vh - 32px); overflow: auto; transform: translateY(8px); transition: transform .2s; }
.np.in .np-box { transform: none; }
.np-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 6px; }
.np-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-radius: 999px; padding: 4px 10px; }
.np h2 { font-size: 22px; margin: 12px 0 8px; line-height: 1.25; } .np h3 { font-size: 16px; margin: 0 0 4px; } .np p { color: var(--text-2); margin: 0 0 10px; }
.np-item + .np-item { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.np-adv { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; font-size: 14px; } .np-adv span { display: flex; align-items: center; gap: 8px; } .np-adv svg { color: var(--ok); }
.np-tpl { display: flex; flex-wrap: wrap; gap: 6px; } .np-tpl a { font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--text); text-decoration: none; } .np-tpl a:hover { border-color: var(--blue-400); }

/* ===== Bien démarrer ===== */
.st { position: fixed; inset: 0; z-index: 91; background: rgba(5,12,24,.6); display: grid; place-items: center; padding: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.st.in { opacity: 1; pointer-events: auto; } .st.out { opacity: 0; }
.st-box { position: relative; background: var(--surface); border-radius: 20px; width: 100%; max-width: 640px; max-height: calc(100vh - 28px); overflow: auto; box-shadow: var(--sh-lg); padding: 24px 24px 18px; }
.st-head h2 { font-size: 22px; margin: 10px 0 6px; } .st-head p { color: var(--text-2); margin: 0 0 14px; }
.st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.st-tabs button { border: 0; background: none; padding: 9px 8px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.st-tabs button b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; }
.st-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); } .st-tabs button.on b { background: var(--blue-600); color: #fff; }
.st-n { background: var(--warn); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }
.st-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-todo li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.st-todo li b { display: block; font-size: 14.5px; } .st-todo li small { color: var(--text-2); font-size: 12.5px; }
.st-todo li.done b { color: var(--muted); text-decoration: line-through; } .st-todo li .grow { flex: 1 1 260px; }
.st-chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; font-size: 12px; }
.st-todo li.done .st-chk { background: var(--ok); border-color: var(--ok); }
.st-act { display: flex; gap: 6px; flex-wrap: wrap; }
.st-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; margin: 0 0 8px; }
.st-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.st-lesson { display: none; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; min-height: 170px; }
.st-lesson.on { display: grid; animation: stIn .3s ease; } @keyframes stIn { from { opacity: 0; transform: translateX(10px); } }
.st-lesson h3 { margin: 4px 0 6px; font-size: 18px; } .st-lesson p { color: var(--text-2); margin: 0 0 8px; font-size: 14.5px; }
.st-step { font-size: 12px; font-weight: 700; color: var(--blue-700); }
.st-art { background: var(--blue-50); border-radius: 14px; padding: 8px; }
.st-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; } .st-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; padding: 0; } .st-dots button.on { background: var(--blue-600); width: 22px; border-radius: 4px; }
.st-svg { width: 100%; height: auto; display: block; }
.st-svg .s-paper { fill: #fff; stroke: #1747C9; stroke-width: 2; } .st-svg .s-line { fill: none; stroke: #9DB2D8; stroke-width: 2.5; stroke-linecap: round; }
.st-svg .s-tray, .st-svg .s-box { fill: #fff; stroke: #64748B; stroke-width: 2; } .st-svg .s-lbl { font: 600 10px var(--font, sans-serif); fill: #334155; text-anchor: middle; }
.st-svg .s-ok { fill: #0F8A4B; } .st-svg .s-tick { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.st-svg .s-arrow { fill: none; stroke: #1747C9; stroke-width: 2.5; stroke-dasharray: 6 5; } .st-svg .s-note { fill: #FFE08A; stroke: #E0B000; stroke-width: 1.5; }
.st-svg .s-bell { fill: #F5A623; } .st-svg .s-stamp { fill: #C2410C; } .st-svg .s-sign { fill: none; stroke: #0B1424; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 80; }
.st-svg .s-scan { fill: rgba(23,71,201,.35); } .st-svg .s-globe { fill: #E6EEFF; stroke: #1747C9; stroke-width: 2; } .st-svg .s-track { stroke: #CBD5E1; stroke-width: 4; } .st-svg .s-dot { fill: #CBD5E1; }
.st-svg .a-drop { animation: aDrop 2.6s ease-in-out infinite; } @keyframes aDrop { 0% { transform: translate(10px, -10px); opacity: 0; } 25% { opacity: 1; } 55%, 100% { transform: translate(104px, 34px); } }
.st-svg .a-pop { animation: aPop 2.6s ease infinite; transform-box: fill-box; transform-origin: center; } @keyframes aPop { 0%, 55% { transform: scale(0); } 70% { transform: scale(1.15); } 80%, 100% { transform: scale(1); } }
.st-svg .a-scan { animation: aScan 2.2s linear infinite; } @keyframes aScan { from { transform: translateY(0); } to { transform: translateY(66px); } }
.st-svg .a-dash { animation: aDash 1.2s linear infinite; } @keyframes aDash { to { stroke-dashoffset: -22; } }
.st-svg .a-hl { animation: aHl 2.4s ease infinite; } @keyframes aHl { 0%, 40% { fill: #fff; stroke: #64748B; } 60%, 100% { fill: #E6EEFF; stroke: #1747C9; } }
.st-svg .a-ring { animation: aRing 1.4s ease infinite; transform-box: fill-box; transform-origin: center; } @keyframes aRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(6deg); } }
.st-svg .a-stamp { animation: aStamp 2.6s ease infinite; } @keyframes aStamp { 0%, 20% { transform: translate(-12px, -18px); opacity: 0; } 45% { transform: translate(-30px, 30px); opacity: 1; } 55%, 100% { transform: translate(-30px, 28px); } }
.st-svg .a-draw { animation: aDraw 2.6s ease infinite; } @keyframes aDraw { 0%, 50% { stroke-dashoffset: 80; } 90%, 100% { stroke-dashoffset: 0; } }
.st-svg .a-fly { animation: aFly 2.8s ease-in-out infinite; } @keyframes aFly { 0% { transform: translate(0, 40px); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: translate(90px, 26px) scale(.7); opacity: .0; } }
.st-svg .a-d1, .st-svg .a-d2, .st-svg .a-d3, .st-svg .a-d4 { animation: aDot 4s ease infinite; } .st-svg .a-d2 { animation-delay: .8s; } .st-svg .a-d3 { animation-delay: 1.6s; } .st-svg .a-d4 { animation-delay: 2.4s; }
@keyframes aDot { 0% { fill: #CBD5E1; } 15%, 85% { fill: #0F8A4B; } 100% { fill: #CBD5E1; } }
@media (prefers-reduced-motion: reduce) { .st-svg * { animation: none !important; } }
@media (max-width: 600px) { .st-lesson { grid-template-columns: 1fr; } .st-art { max-width: 260px; } .st-box { padding: 20px 16px 14px; } }
.st-dash { border-color: #FFD27A; background: #FFFBF0; margin-bottom: 16px; } .st-dash-l { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .st-dash-l a { font-size: 13px; border: 1px solid #FFD27A; background: #fff; border-radius: 999px; padding: 3px 10px; text-decoration: none; color: var(--text); }
.gd-h { font-size: 20px; margin: 24px 0 12px; } .gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; } .gd-card .st-art { border-radius: 12px 12px 0 0; } .gd-card b { display: block; margin: 2px 0 4px; }.demo-bar select { min-width: 0; max-width: 100%; } .demo-bar > span { min-width: 0; }

/* ===== Téléchargements ===== */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dl-card { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.dl-card.is-mine { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(23,71,201,.12); }
.dl-mine { display: none; position: absolute; top: -9px; right: 12px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; } .dl-card.is-mine .dl-mine { display: block; }
.dl-h { display: flex; align-items: center; gap: 10px; } .dl-h b { display: block; font-size: 16px; } .dl-h small { color: var(--muted); font-size: 12px; }
.dl-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.dl-card p { margin: 0; } .dl-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.dl-compact .dl-card { padding: 12px 14px; }
.st-app { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.st-app b { display: block; font-size: 14px; } .st-app small { color: var(--text-2); font-size: 12px; } .st-app .grow { flex: 1 1 200px; }
