/* Eden Family — copie de maquettes/static/mds.css pour l'application. Les écarts portent la mention « Correction application ». */
@font-face {
  font-family: "Space Grotesk"; src: url("polices/SpaceGrotesk.woff2") format("woff2");
  font-style: normal; font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "Inter"; src: url("polices/Inter.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #f3f5f1; --surface: #ffffff; --surface-soft: #eaf0eb;
  --ink: #172d32; --muted: #53646a; --line: #c7d1cc;
  --brand: #086348; --brand-hover: #064b37; --brand-soft: #e2f2e9;
  --nav: #142f34; --nav-text: #e8f0ed; --nav-muted: #b5cbc5;
  --warning: #754100; --warning-bg: #fff0d5; --danger: #a32229; --danger-bg: #ffebeb;
  --info: #1d5277; --info-bg: #e6f1fa; --focus: #ae4800;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  --radius-sm: .4rem; --radius: .85rem; --radius-lg: 1.25rem;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --shadow: 0 8px 28px #142f340a;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--font); }
button, input, select, textarea { font: inherit; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }
h1, h2, h3, p, dl, figure { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.3rem); letter-spacing: -.045em; line-height: 1.16; }
h2 { font-size: 1.17rem; letter-spacing: -.025em; line-height: 1.3; }
h3 { font-size: 1rem; line-height: 1.4; }
p + p { margin-top: var(--space-3); }
small, .small { font-size: .84rem; }
strong { font-weight: 700; }
.muted, .hint { color: var(--muted); }
.eyebrow { color: var(--brand); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mono, .code { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .8rem; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.icon { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); font-size: 1.14rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: var(--brand); }
.brand-mark .icon { width: 25px; height: 25px; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-meta { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.topbar-meta > span { font-size: .8rem; }
.avatar { display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-soft); width: 44px; height: 44px; border-radius: 50%; text-decoration: none; color: var(--ink); font-size: .8rem; font-weight: 800; }
.desktop-only { display: none; }
.topbar-tagline { display: none; } /* Correction application : voir le point de rupture 1280 px. */
.sitebar { padding: .7rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .82rem; }
.site-name { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.demo-note { font-size: .73rem; color: var(--muted); }
.sidebar { display: none; }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 1.5rem 1rem 7.5rem; min-width: 0; }
.page-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading p { margin-top: .5rem; color: var(--muted); max-width: 65ch; }
.page-heading .eyebrow { margin: 0 0 .5rem; }
.page-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.btn { min-height: 44px; padding: .65rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.3; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--brand-hover); }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-quiet { background: transparent; color: var(--brand); }
.btn-quiet:hover { background: var(--brand-soft); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #801b20; }
.btn-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; font-weight: 700; }
.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .25rem; min-height: 56px; background: transparent; border: 0; border-radius: .6rem; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 700; padding: .25rem; }
.bottom-nav [aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.bottom-nav.seller-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 1rem; }
.grid { display: grid; gap: 1rem; }
.split { display: grid; gap: 1rem; align-items: start; }
.grid > *, .stack > *, .split > *, .field, .card, main { min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.metric-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }
.metric-value { display: block; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.045em; font-weight: 800; overflow-wrap: anywhere; }
.metric-value small { font-size: .7rem; font-weight: 600; letter-spacing: 0; }
.metric-foot { display: block; color: var(--muted); font-size: .75rem; margin-top: .6rem; }
.metric-featured { background: var(--nav); border-color: var(--nav); color: #fff; }
.metric-featured .metric-label, .metric-featured .metric-foot { color: #c9ded6; }
.card { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.card-header { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.card-header p { margin-top: .3rem; }
.card-footer { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.feature { position: relative; background: var(--nav); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.feature .eyebrow { color: #b9e9d5; }
.feature p { color: #d6e4df; margin-top: .6rem; }
.feature .btn { margin-top: 1rem; background: #d8f6ac; color: #17342c; }
.feature h2 { font-size: 1.65rem; margin-top: .5rem; max-width: 24ch; }
.pill { display: inline-flex; align-items: center; gap: .4rem; border-radius: 2rem; padding: .25rem .6rem; font-size: .75rem; font-weight: 750; background: var(--surface-soft); color: var(--muted); line-height: 1.45; max-width: 100%; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill-good { background: var(--brand-soft); color: var(--brand); }
.pill-warning { color: var(--warning); background: var(--warning-bg); }
.pill-danger { color: var(--danger); background: var(--danger-bg); }
.pill-info { color: var(--info); background: var(--info-bg); }
.alert { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .7rem; padding: 1rem; background: var(--warning-bg); color: var(--warning); border: 1px solid currentColor; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.alert > div { flex: 1; min-width: 180px; }
.alert p { font-size: .88rem; margin-top: .25rem; }
.alert a { color: inherit; }
.alert-danger { color: var(--danger); background: var(--danger-bg); }
.alert-info { color: var(--info); background: var(--info-bg); }
.alert-good { color: var(--brand); background: var(--brand-soft); }
.field { display: grid; align-content: start; gap: .4rem; }
.field label, .field-label, legend { font-size: .86rem; font-weight: 700; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: .65rem .75rem; color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: var(--radius-sm); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 100px; resize: vertical; }
input[readonly] { background: var(--surface-soft) !important; }
[aria-invalid="true"] { border: 2px solid var(--danger) !important; }
.field-error { color: var(--danger); font-size: .85rem; }
.hint { font-size: .8rem; }
.form-grid { display: grid; gap: 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .75rem; }
.check { display: flex; align-items: center; gap: .75rem; min-height: 44px; cursor: pointer; }
.check input, .plan-radio input { accent-color: var(--brand); width: 20px; height: 20px; flex-shrink: 0; }
.filters { display: grid; gap: 1rem; align-items: end; margin-bottom: 1.2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.2rem; }
.tabs a { display: flex; align-items: center; justify-content: center; padding: .5rem .8rem; min-height: 44px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 700; flex-grow: 1; }
.tabs [aria-current="page"] { color: #fff; background: var(--brand); }
.table-wrap { min-width: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table caption { text-align: left; margin-bottom: 1rem; color: var(--muted); font-size: .8rem; }
.table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.table, .table tbody { display: block; }
.table tbody { display: grid; gap: .75rem; }
.table tr { display: block; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table td { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .75rem; padding: .5rem 0; align-items: start; overflow-wrap: anywhere; }
.table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
.table td > * { min-width: 0; }
.table td .text-link { margin-top: -.5rem; margin-bottom: -.5rem; }
.cell-sub { display: block; font-size: .77rem; color: var(--muted); margin-top: .2rem; }
.table .actions { gap: .3rem; }
.table .btn { padding: .6rem .65rem; }
.table-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; color: var(--muted); font-size: .8rem; }
.details { display: grid; gap: 0; }
.details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: .85rem; }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.list-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-row > div { min-width: 0; }
.list-row p { font-size: .83rem; color: var(--muted); margin-top: .25rem; }
.price { font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.05em; margin: 1rem 0; }
.price small { font-size: .85rem; letter-spacing: 0; font-weight: 600; }
.plan-featured { border: 2px solid var(--brand); }
.plan-radio { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); min-height: 88px; cursor: pointer; background: var(--surface); }
.plan-radio:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-soft); padding: calc(1rem - 1px); }
.plan-radio strong, .plan-radio small { display: block; }
.plan-radio small { color: var(--muted); font-size: .77rem; }
.plan-radio .plan-price { font-weight: 800; text-align: right; font-size: 1.1rem; }
.plan-radio .plan-price small { font-size: .65rem; }
.empty { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty .icon { width: 32px; height: 32px; color: var(--muted); margin-bottom: .75rem; }
.empty p { color: var(--muted); margin-top: .5rem; font-size: .9rem; }
.empty .btn { margin-top: 1rem; }
.progress { height: .6rem; border-radius: 1rem; width: 100%; accent-color: var(--brand); background: var(--surface-soft); }
progress::-webkit-progress-bar { background: var(--surface-soft); border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--brand); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 1rem; }
.bar-chart { display: flex; align-items: end; gap: .5rem; height: 150px; margin: 1rem 0 .5rem; }
.bar-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: .45rem; font-size: .7rem; color: var(--muted); }
.bar { width: 100%; max-width: 44px; background: var(--muted); border-radius: .25rem .25rem 0 0; }
.bar-today { background: var(--brand); }
/* Correction application : hauteurs de 0 à 100 % par pas de 5 (aucun attribut style permis par la CSP). */
.bar-0 { height: 0%; } .bar-5 { height: 5%; } .bar-10 { height: 10%; } .bar-15 { height: 15%; } .bar-20 { height: 20%; } .bar-25 { height: 25%; } .bar-30 { height: 30%; } .bar-35 { height: 35%; } .bar-40 { height: 40%; } .bar-45 { height: 45%; } .bar-50 { height: 50%; } .bar-55 { height: 55%; } .bar-60 { height: 60%; } .bar-65 { height: 65%; } .bar-70 { height: 70%; } .bar-75 { height: 75%; } .bar-80 { height: 80%; } .bar-85 { height: 85%; } .bar-90 { height: 90%; } .bar-95 { height: 95%; } .bar-100 { height: 100%; }
.bar-0 { min-height: 2px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid var(--line); margin-left: .3rem; padding: 0 0 1.2rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .4rem; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline p { font-size: .83rem; color: var(--muted); margin-top: .3rem; }
dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; width: calc(100% - 2rem); max-width: 480px; max-height: calc(100dvh - 2rem); overflow-y: auto; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #0005; }
dialog::backdrop { background: #0d222bb8; }
dialog h2 { margin-bottom: .75rem; }
dialog .actions { margin-top: 1.5rem; }
.menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.menu-links a { min-height: 48px; display: flex; align-items: center; padding: .6rem; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; }
.toast { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: calc(6rem + env(safe-area-inset-bottom)); max-width: 560px; margin: auto; padding: 1rem; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); box-shadow: var(--shadow); }
.toast:empty { display: none; }
.toast .btn { margin-top: .75rem; }
.toast { max-height: 50svh; overflow-y: auto; }
.auth-layout { display: grid; min-height: 100svh; }
.auth-story { background: var(--nav); color: white; padding: 1.5rem; }
.auth-story .brand, .auth-story .brand em { color: #fff; }
.auth-story h1 { margin-top: 2rem; max-width: 17ch; font-size: 2.3rem; }
.auth-story p { color: #c9ded6; max-width: 35ch; margin-top: 1rem; }
.auth-form { padding: 1.5rem 1rem; width: 100%; max-width: 480px; margin: auto; }
.auth-form h2 { font-size: 1.65rem; margin-bottom: .5rem; }
.auth-form form { margin-top: 1.5rem; }
.client-page { background: var(--paper); }
.client-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; max-width: 480px; margin: auto; }
.client-main { max-width: 480px; width: 100%; padding: 1.25rem 1rem 2rem; margin: auto; }
.client-main h1 { font-size: 2rem; }
.client-heading { margin-bottom: 1.5rem; }
.client-heading .eyebrow { margin-bottom: .5rem; }
.client-heading > p:last-child { margin-top: .65rem; color: var(--muted); }
.client-footer { max-width: 480px; margin: auto; text-align: center; padding: 1rem 1rem 2rem; color: var(--muted); font-size: .77rem; }
.client-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.ticket-hero { max-width: 480px; margin: auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: var(--radius-lg); padding: 1.5rem 1rem; }
.ticket-hero .code { font-size: clamp(1.8rem, 7vw, 2.5rem); letter-spacing: .09em; margin: .75rem 0; overflow-wrap: anywhere; }
.qr { display: block; width: 168px; height: 168px; background: white; margin: 1rem auto; }
.ticket-hero .details { text-align: left; margin-top: 1rem; }
.ticket-hero .actions { margin-top: 1.2rem; }
.ticket-hero .actions .btn { flex: 1; }
.ticket-layout { display: grid; gap: 1.5rem; align-items: start; }
.ticket-layout .ticket-hero { width: 100%; }
.result-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border-radius: 50%; margin: 0 auto 1rem; }
.result-icon .icon { width: 28px; height: 28px; }
.result-icon.error { color: var(--danger); background: var(--danger-bg); }
.result-icon.pending { color: var(--info); background: var(--info-bg); }
.center { text-align: center; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; }
.catalog-section { margin-top: 2rem; }
.catalog-grid { display: grid; gap: .75rem; margin-top: 1rem; }
.catalog-link { display: flex; gap: .75rem; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--ink); min-height: 80px; }
.catalog-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.catalog-link > span:last-child { margin-left: auto; color: var(--brand); }
.catalog-link small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.print-sheet { display: grid; grid-template-columns: 1fr; gap: .75rem; max-width: 210mm; margin: auto; }
.print-ticket { background: white; color: #162b30; padding: 5mm; border: 1px dashed #687c74; break-inside: avoid; text-align: center; }
.print-ticket h2 { font-size: 14pt; }
.print-ticket .code { font-size: 17pt; margin-top: 3mm; }
.print-ticket .qr { width: 26mm; height: 26mm; margin: 2mm auto; }
.print-ticket p { font-size: 9pt; margin-top: 1mm; }
.receipt-paper { width: 58mm; max-width: 100%; margin: auto; background: #fff; color: #162b30; padding: 3mm; border: 1px dashed #687c74; }
.receipt-paper .print-ticket { padding: 0 0 5mm; border: 0; border-bottom: 1px dashed #687c74; margin-bottom: 5mm; }
.receipt-paper .print-ticket:last-child { margin-bottom: 0; border: 0; }
@media (min-width: 768px) {
  .topbar, .sitebar { padding-inline: 2rem; }
  .desktop-only { display: inline; }
  .content { padding: 2rem 2rem 7rem; }
  .page-heading { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
  .page-actions { justify-content: flex-end; flex-shrink: 0; max-width: 45%; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .metric { padding: 1.25rem; }
  .grid-2, .grid-3, .form-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: 1 / -1; }
  .card { padding: 1.5rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table, .table tbody { display: table; }
  .table tbody { display: table-row-group; }
  .table thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; }
  .table tr { display: table-row; border: 0; }
  .table th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); padding: .75rem .5rem; }
  .table td { display: table-cell; padding: 1rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .table td::before { display: none; }
  .table { table-layout: fixed; }
  .table td .text-link { margin: 0; }
  .ticket-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .auth-story { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
  .auth-story h1 { font-size: 3rem; }
  .auth-form { padding: 2rem; }
  .print-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .app { padding-left: 248px; }
  .sidebar { display: flex; flex-direction: column; position: fixed; z-index: 25; inset: 0 auto 0 0; width: 248px; padding: 1.5rem 1rem; background: var(--nav); color: var(--nav-text); overflow-y: auto; }
  .sidebar .brand { margin: 0 .5rem 1.75rem; color: white; }
  .sidebar .brand em { color: var(--nav-muted); }
  .sidebar .brand-mark { background: #b9e9d5; color: #142f34; }
  .nav-section { margin: 1rem .75rem .5rem; color: var(--nav-muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
  .side-link { display: flex; align-items: center; gap: .75rem; color: var(--nav-text); text-decoration: none; min-height: 44px; padding: .65rem .75rem; border-radius: .5rem; font-size: .85rem; }
  .side-link:hover { background: #24464b; }
  .side-link[aria-current="page"] { color: #d5f8b1; background: #2b4b42; font-weight: 750; }
  .sidebar-footer { margin-top: auto; padding: 1.5rem .75rem 0; font-size: .77rem; color: var(--nav-muted); }
  .sidebar-footer a { color: white; }
  .topbar { min-height: 76px; }
  .topbar > .brand { display: none; }
  /* Correction application : le slogan vient du gabarit (textes/fr.json), plus d'un content en dur. */
  .topbar-tagline { display: inline; color: var(--muted); font-size: .85rem; }
  .bottom-nav { display: none; }
  .content { padding: 2rem 2rem 3rem; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toast { bottom: 2rem; left: 264px; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #101c20; --surface: #192a2f; --surface-soft: #233b3e; --ink: #eef4f1; --muted: #b3c5c1; --line: #48605e; --brand: #8dddb6; --brand-hover: #b6eccf; --brand-soft: #214336; --warning: #ffd18d; --warning-bg: #49341b; --danger: #ffb4b8; --danger-bg: #4b262b; --info: #acd8ff; --info-bg: #203c52; --focus: #ffbc75; --shadow: none; }
  .btn { color: #0d3022; }
  .btn-secondary { color: var(--ink); }
  .btn-quiet { color: var(--brand); }
  .btn-danger { color: #42141a; }
  .brand-mark { color: #103323; }
  .metric-featured { border: 1px solid var(--line); }
  .tabs [aria-current="page"] { color: #103323; }
  input[type="date"] { color-scheme: dark; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
/* Identité de console : les classes historiques restent la base des gabarits. */
:root {
  --paper: #f4f6fa; --surface: #fff; --surface-soft: #edf1f7;
  --ink: #19263c; --muted: #53627a; --line: #dbe2ed;
  --brand: #354fcb; --brand-hover: #293eaa; --brand-soft: #edf0ff;
  --nav: #111b30; --nav-text: #dce4f5; --nav-muted: #a8b5ce;
  --focus: #a44a00; --radius-sm: .5rem; --radius: .75rem; --radius-lg: 1rem;
  --shadow: 0 2px 5px #16264105, 0 8px 24px #16264104;
  --chart-secondary: #178077; --chart-third: #c8d2e8;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { font-size: .9375rem; -webkit-font-smoothing: antialiased; }
h1 { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.25rem); }
h2 { font-size: 1.06rem; font-weight: 700; }
.content { padding-top: 2rem; }
.page-heading { margin-bottom: 1.75rem; }
.brand { letter-spacing: -.035em; }
.brand-mark { background: var(--brand); border: 1px solid #ffffff26; box-shadow: 0 3px 8px #111b3015; }
.brand em { display: block; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; line-height: 1.2; }
.logo-symbol { stroke-width: 1.5; }
.topbar { gap: 1rem; min-height: 78px; padding: 1rem; }
.topbar > .brand { flex-shrink: 0; }
.console-label { font-size: .875rem; }
.workspace-context { display: none; }
.console-search { display: flex; align-items: center; gap: .5rem; flex: 1 1 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding-left: .75rem; }
.console-search .icon { width: 18px; color: var(--muted); flex-shrink: 0; }
.console-search input { border: 0; background: transparent; min-width: 0; width: 100%; padding: .6rem 0; box-shadow: none; }
.console-search button { border: 0; background: transparent; color: var(--muted); min-width: 44px; min-height: 44px; }
.console-search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.topbar-meta { margin-left: auto; }
.avatar { border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.sitebar { background: var(--paper); padding: .65rem 1rem; }
.card, .metric, .ticket-hero, .catalog-link { box-shadow: var(--shadow); }
.card { border-color: var(--line); }
.card-header { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.card-header .eyebrow { margin-bottom: .25rem; }
.metric { position: relative; border-top: 3px solid var(--line); }
.metric-featured { background: var(--surface); color: var(--ink); border-top-color: var(--brand); }
.metric-featured .metric-label, .metric-featured .metric-foot { color: var(--muted); }
.metric-label { font-size: .78rem; font-weight: 600; }
.metric-value { font-size: clamp(1.7rem, 2.8vw, 2.25rem); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: .7rem; letter-spacing: 0; color: var(--muted); }
.metric-foot { font-size: .74rem; }
.trend { font-size: .72rem; color: #176348; margin-top: .7rem; display: block; font-weight: 600; }
.analytics-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.line-chart { margin-top: 1.25rem; }
.line-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); fill: none; stroke-dasharray: 3 5; }
.chart-area { fill: var(--brand-soft); }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }
.chart-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); padding-top: .25rem; }
.distribution-content { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.donut-chart { width: 140px; height: 140px; flex-shrink: 0; margin: auto; }
.donut-chart circle { fill: none; stroke-width: 13; transform: rotate(-90deg); transform-origin: center; }
.donut-track { stroke: var(--chart-third); }
.donut-first { stroke: var(--brand); }
.donut-second { stroke: var(--chart-secondary); }
.donut-value { text-anchor: middle; fill: var(--ink); font-size: 23px; font-weight: 750; }
.donut-label { text-anchor: middle; fill: var(--muted); font-size: 10px; }
.chart-legend { flex: 1; min-width: 155px; font-size: .78rem; }
.chart-legend > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .65rem 0; }
.chart-legend dt { display: flex; align-items: center; gap: .5rem; }
.chart-legend dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.legend-first { background: var(--brand); }.legend-second { background: var(--chart-secondary); }.legend-third { background: var(--chart-third); }
.bar-chart { background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--line) 25%); padding: 1rem .5rem 0; }
.bar { background: var(--brand-soft); border: 1px solid var(--brand); border-bottom: 0; border-radius: 4px 4px 0 0; }
.bar-day:last-child .bar { background: var(--brand); }
.alert { border-radius: var(--radius-sm); border-left-width: 3px; box-shadow: none; }
.pill { border: 1px solid currentColor; font-size: .69rem; font-weight: 650; padding: .2rem .55rem; }
.btn { font-size: .84rem; box-shadow: 0 1px 2px #17243c0a; }
.btn-quiet { box-shadow: none; }
input, select, textarea { border-color: #aab7cb; border-radius: .5rem; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
.field label, .field > label { font-size: .84rem; }
.filters { padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
dialog { box-shadow: 0 24px 100px #0005; border: 1px solid var(--line); padding: 1.75rem; }
dialog::backdrop { background: #0c152c99; backdrop-filter: blur(3px); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 34rem; overflow: auto; scrollbar-color: var(--line) var(--surface); }
.table td { font-size: .8rem; font-variant-numeric: tabular-nums; }
.table tr:hover td { background: var(--brand-soft); }
.sort-button { display: inline-flex; align-items: center; justify-content: space-between; gap: .4rem; text-align: left; width: 100%; min-height: 44px; padding: .25rem 0; border: 0; background: transparent; font: inherit; color: inherit; font-weight: 650; }
.sort-button::after { content: '↕'; color: var(--muted); }
th[aria-sort="ascending"] .sort-button::after { content: '↑'; color: var(--brand); }
th[aria-sort="descending"] .sort-button::after { content: '↓'; color: var(--brand); }
.table-pagination { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: .75rem 0 0; margin-top: 1rem; font-size: .76rem; color: var(--muted); }
.pagination-controls { display: flex; gap: .35rem; align-items: center; }
.pagination-controls select { min-height: 44px; width: auto; padding: .4rem; }
.table-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); background: var(--surface-soft); border-radius: var(--radius-sm); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; }
.auth-layout { background: var(--surface); max-width: 1180px; border: 1px solid var(--line); box-shadow: 0 20px 80px #111b3010; }
.auth-story { position: relative; overflow: hidden; background: radial-gradient(ellipse at 0 0, #2b4380, transparent 75%), #111b30; color: #f3f6ff; padding: 2rem; }
.auth-story .brand { color: #fff; }.auth-story .brand em { color: #b8c8e8; }
.auth-story > p { color: #ced9ef; }
.auth-story h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -.055em; }
.auth-preview { margin-top: 2rem; padding: 1.25rem; border: 1px solid #53678a; border-radius: 12px; background: #ffffff08; box-shadow: 0 12px 40px #0002; }
.preview-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; }
.preview-heading .pill { margin-left: auto; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; gap: 1rem; }
.preview-grid span { display: block; color: #c4d1ea; font-size: .75rem; }
.preview-grid strong { font-size: 1.1rem; }
.preview-signal { display: flex; align-items: end; gap: 8px; height: 80px; margin: 1rem 0; }
.preview-signal span { flex: 1; background: #a4b7ff; height: 35%; border-radius: 3px 3px 0 0; }
.preview-signal span:nth-child(3n) { height: 68%; }.preview-signal span:nth-child(2n) { height: 52%; }.preview-signal span:nth-child(5n) { height: 90%; }
.auth-preview p, .auth-assurance { font-size: .75rem; color: #ced9ef; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #91e5ba; }
.auth-form { align-self: center; }
.auth-form > h2 { font-size: 1.75rem; margin: .4rem 0; }
.client-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.client-main { max-width: 510px; padding-top: 2rem; }
.client-heading h1 { font-size: 2.2rem; }
.plan-radio { box-shadow: var(--shadow); transition: border-color .15s; }
.plan-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-radio strong { font-size: .95rem; }
.plan-price { letter-spacing: -.04em; }
.client-footer { border-top: 1px solid var(--line); }
@media (max-width: 767px) {
  .auth-preview, .auth-assurance { display: none; }
  .auth-story { display: block; padding: 1.5rem; }
  .auth-story h1 { font-size: 1.75rem; margin-top: 1rem; }
  .auth-story h1 br { display: none; }
  .auth-story > p { font-size: .85rem; }
  .auth-layout { margin: 0; border: 0; border-radius: 0; }
  .table th .sort-button { min-width: 44px; }
}
@media (min-width: 768px) {
  .topbar { flex-wrap: nowrap; }
  .console-search { flex: 1 1 220px; max-width: 340px; }
  .content { padding: 2rem 1.5rem 7.5rem; }
  .analytics-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .table thead { position: sticky; top: 0; z-index: 2; background: var(--surface-soft); }
  .table th { padding: .2rem .75rem; border-bottom: 1px solid var(--line); }
  .table td { padding: .8rem .75rem; }
  .table { table-layout: auto; }
  .auth-story { padding: 3rem; }
}
@media (min-width: 1280px) {
  .sidebar { padding: 1.5rem .85rem; border-right: 1px solid #26324a; }
  .sidebar .brand { margin-bottom: 1rem; }
  .sidebar .brand-mark { background: #354fcb; color: white; }
  .side-link { border: 1px solid transparent; font-size: .81rem; margin: 2px 0; border-radius: 6px; }
  .side-link .icon { width: 18px; height: 18px; color: var(--nav-muted); }
  .side-link[aria-current="page"] { color: white; background: #2b3e72; border-color: #435b99; box-shadow: inset 3px 0 #a2b5ff; }
  .side-link[aria-current="page"] .icon { color: #c4d1ff; }
  .side-link:hover { background: #22304d; color: white; }
  .topbar { padding: .85rem 2rem; }
  .topbar > .brand { display: none; }
  .workspace-context { display: grid; gap: .15rem; min-width: 210px; }
  .workspace-context .eyebrow { font-size: .6rem; color: var(--muted); }
  .workspace-context strong { font-size: .85rem; }
  .console-search { margin-left: auto; }
  .topbar-meta { margin-left: 0; }
  .sitebar { padding-inline: 2rem; }
  .content { padding: 2rem 2rem 3rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0e1523; --surface: #172133; --surface-soft: #202d43; --ink: #edf2fc; --muted: #b0bfd6; --line: #34435b; --brand: #afbeff; --brand-hover: #cbd5ff; --brand-soft: #293859; --focus: #ffce8a; --shadow: 0 4px 18px #00000014; --chart-secondary: #72d6c6; --chart-third: #586c8f; }
  .btn { color: #16213d; }.btn-secondary { color: var(--ink); }.btn-quiet { color: var(--brand); }.btn-danger { color: #42141a; }
  .brand-mark { background: #354fcb; color: white; }
  .trend { color: #90dfba; }
  .metric-featured { background: var(--surface); }
  .metric-featured .metric-label, .metric-featured .metric-foot { color: var(--muted); }
  input, select, textarea { border-color: #60718c; }
}
@media (prefers-reduced-motion: reduce) { .plan-radio { transition: none; } }

.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-feed li { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.activity-feed li:last-child { border: 0; }
.activity-feed strong { font-size: .8rem; }.activity-feed p, .activity-feed small { font-size: .75rem; color: var(--muted); }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: .4rem; flex-shrink: 0; }
.activity-warning { background: var(--warning); }
.table-wrap + .table-empty + .table-pagination { margin-bottom: .5rem; }
@media screen { .table .page-hidden { display: none !important; } }
@media print { .analytics-grid, .console-search, .workspace-context, .auth-preview { display: none !important; } }

.console-search input[type="search"] { border: 0; background: transparent; padding: .6rem 0; box-shadow: none; }
.metric-featured { border-color: var(--line); border-top-color: var(--brand); }
.pagination-controls { flex-wrap: wrap; }
.mobile-table-sort { display: flex; align-items: center; gap: .75rem; padding-top: .75rem; }
.mobile-table-sort label { font-size: .8rem; white-space: nowrap; }
.mobile-table-sort select { max-width: 250px; }
@media (min-width: 768px) { .mobile-table-sort { display: none; } }
@media (max-width: 1279px) { .topbar-meta .desktop-only { display: none; } }
@media (min-width: 1280px) { .topbar-tagline { display: none; } } /* Correction application : même règle, sur le slogan du gabarit. */

.mobile-column-label { display: none; }
@media (max-width: 767px) {
  .table .sort-button { display: none; }
  .mobile-column-label { display: inline; }
}

@media (max-width: 767px) {
  .topbar > .brand { order: 0; }
  .topbar-meta { order: 1; }
  .console-search { order: 2; }
}

.feature .eyebrow { color: #b7c7ff; }
.feature p { color: #d5def1; }
.feature .btn { background: #b7c7ff; color: #182746; }
.btn-danger:hover { background: var(--danger); box-shadow: 0 0 0 2px var(--danger-bg); }

/* Accueil public : illustrations locales et galerie progressive. */
/* Correction application : le nom du produit est écrit par le serveur dans le gabarit ; la variable --product-name
   de la maquette n'a plus de lecteur, elle est retirée. */
.public-page { --public-accent: #ae4b2d; --preview-paper: #f4f6fa; --preview-surface: #fff; --preview-soft: #edf1f7; --preview-ink: #19263c; --preview-muted: #53627a; --preview-line: #c0cadd; --preview-brand: #354fcb; --preview-button: #fff; background: var(--paper); font-size: 1rem; }
.public-page h1, .public-page h2, .public-page h3 { text-wrap: balance; }
.public-page h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -.05em; }
.public-page h3 { font-size: 1.2rem; }
.public-header { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1rem max(1.25rem, calc((100vw - 1440px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.public-header .brand { min-width: 0; font-family: var(--font-heading); font-size: 1.1rem; }
.public-header .brand-mark { flex: 0 0 38px; }
.public-header .logo-symbol { width: 25px; height: 25px; }
.public-header nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.public-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.public-header nav a:hover { color: var(--brand); }
.public-main, .public-footer { width: min(1440px, calc(100% - 3rem)); margin-inline: auto; }
.public-main > section { scroll-margin-top: 11rem; }
.public-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1rem, 4vw, 5rem); padding: 5rem 0 3rem; }
.public-hero-copy { min-width: 0; }
.public-hero h1 { font-size: clamp(3rem, 5.3vw, 5.8rem); font-weight: 700; letter-spacing: -.07em; margin: 1.2rem 0 1.5rem; line-height: 1.02; }
.public-hero h1 em { color: var(--public-accent); font-style: normal; }
.public-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; max-width: 38ch; }
.public-hero-copy > p:not(.eyebrow):not(.public-lead) { color: var(--muted); max-width: 53ch; }
.public-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.public-actions .btn { min-height: 48px; padding-inline: 1.3rem; }
.public-caption { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.public-hero .public-caption { margin-top: 1.5rem; }
.public-network { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; min-width: 0; border-radius: 50%; background: radial-gradient(ellipse, var(--brand-soft), transparent 68%); }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.network-wire { fill: none; stroke: var(--line); stroke-width: .45; }
.network-pulse { fill: none; stroke: var(--brand); stroke-width: .65; stroke-dasharray: 3 65; stroke-dashoffset: 0; opacity: 0; animation: network-flow 1.4s ease-out 3; }
.pulse-1 { animation-delay: .25s; }.pulse-2 { animation-delay: .5s; }
.network-center { position: absolute; inset: 36% 37% 40%; display: grid; place-items: center; align-content: center; gap: .35rem; border: 1px solid var(--brand); border-radius: 28%; background: var(--surface); box-shadow: 0 0 0 12px var(--brand-soft), 0 18px 48px #18274614; }
.network-center svg { width: 52%; height: 52%; min-height: 38px; fill: none; stroke: var(--brand); stroke-width: 1.4; }
.network-center span { font-size: clamp(.55rem, 1vw, .75rem); font-weight: 700; text-align: center; }
.network-node { position: absolute; width: 18%; transform: translate(-50%, -38%); display: grid; justify-items: center; gap: .5rem; text-align: center; }
.network-node > span { width: clamp(38px, 4.6vw, 65px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 1.5rem; box-shadow: 0 6px 16px #19263c0a; }
.network-node b { color: var(--ink); font-size: clamp(.58rem, 1vw, .78rem); line-height: 1.3; }
.node-0 { left: 50%; top: 10%; }.node-1 { left: 80%; top: 19%; }.node-2 { left: 92%; top: 41%; }.node-3 { left: 86%; top: 67%; }.node-4 { left: 66%; top: 88%; }.node-5 { left: 34%; top: 88%; }.node-6 { left: 14%; top: 67%; }.node-7 { left: 8%; top: 41%; }.node-8 { left: 20%; top: 19%; }
.public-section, .public-peek { padding: 5rem 0; border-top: 1px solid var(--line); }
.public-intro { max-width: 760px; margin-bottom: 2.5rem; }
.public-intro h2 { margin: .6rem 0 1rem; }
.public-intro > p:not(.eyebrow) { color: var(--muted); }
.peek-composition { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3rem; align-items: center; padding: 1rem; }
.peek-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 40px; }
.peek-pair > .device { grid-area: 1 / 1; align-self: start; min-width: 0; width: 72%; animation: capture-float 1.6s ease-in-out 2 alternate; }
.peek-pair > .device:first-child { justify-self: start; transform: rotate(-5deg); }
.peek-pair > .device:last-child { justify-self: end; margin-top: 70px; transform: rotate(4deg); animation-delay: .15s; }
.device { --preview-paper: var(--paper); --preview-surface: var(--surface); --preview-soft: var(--surface-soft); --preview-ink: var(--ink); --preview-muted: var(--muted); --preview-line: var(--line); --preview-brand: var(--brand); --preview-button: #fff; border: 1px solid var(--preview-line); border-radius: .85rem; background: var(--preview-paper); color: var(--preview-ink); box-shadow: 0 20px 50px #111b3014; overflow: hidden; min-width: 0; }
.preview-light { color-scheme: light; --preview-paper: #f4f6fa; --preview-surface: #fff; --preview-soft: #edf1f7; --preview-ink: #19263c; --preview-muted: #53627a; --preview-line: #c0cadd; --preview-brand: #354fcb; --preview-button: #fff; }
.preview-dark { color-scheme: dark; --preview-paper: #0e1523; --preview-surface: #172133; --preview-soft: #202d43; --preview-ink: #edf2fc; --preview-muted: #b0bfd6; --preview-line: #536680; --preview-brand: #afbeff; --preview-button: #16213d; }
.device-chrome { display: flex; gap: .3rem; align-items: center; padding: .6rem .75rem; border-bottom: 1px solid var(--preview-line); background: var(--preview-surface); }
.device-chrome i { width: 5px; height: 5px; border-radius: 50%; background: var(--preview-muted); }
.device-chrome span { margin-inline: auto; font-size: .58rem; color: var(--preview-muted); }
.show-screen { font-size: .7rem; line-height: 1.5; }
.show-screen small { font-size: .61rem; color: var(--preview-muted); }
.show-brand { display: flex; align-items: center; gap: .4rem; padding: .7rem; background: var(--preview-surface); border-bottom: 1px solid var(--preview-line); font-weight: 700; }
.show-brand > span:last-child { margin-left: auto; }
.show-brand svg { width: 20px; height: 20px; fill: none; stroke: var(--preview-brand); }
.show-layout { display: flex; min-height: 300px; }
.show-sidebar { width: 22%; flex-shrink: 0; display: flex; flex-direction: column; gap: .9rem; padding: 1rem .6rem; background: #111b30; color: #dce4f5; font-size: .63rem; }
.show-content { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem; overflow-wrap: anywhere; }
.show-content h4 { font: 700 1.1rem/1.2 var(--font-heading); margin: 0; letter-spacing: -.04em; }
.show-content h5 { font: 700 .76rem/1.4 var(--font-heading); margin: 0; }
.show-content p { margin: 0; }
.show-stats { display: flex; flex-wrap: wrap; gap: .4rem; font-variant-numeric: tabular-nums; }
.show-stats > div { flex: 1 1 70px; display: flex; flex-direction: column; padding: .6rem; background: var(--preview-surface); border: 1px solid var(--preview-line); border-radius: .4rem; }
.show-stats strong { font: 700 1rem/1.5 var(--font-heading); }
.show-notice { padding: .55rem; border-left: 3px solid var(--preview-brand); background: var(--preview-soft); color: var(--preview-ink); }
.show-rows { display: grid; background: var(--preview-surface); border: 1px solid var(--preview-line); border-radius: .4rem; }
.show-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .6rem; font-variant-numeric: tabular-nums; }
.show-rows > div + div { border-top: 1px solid var(--preview-line); }
.show-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.show-fields > div { min-width: 0; display: grid; gap: .25rem; }
.show-fields span { border: 1px solid var(--preview-line); border-radius: .3rem; padding: .5rem; background: var(--preview-surface); }
.show-action { display: block; align-self: flex-start; padding: .5rem .7rem; border-radius: .3rem; background: var(--preview-brand); color: var(--preview-button); font-weight: 700; }
.show-bars { display: flex; align-items: end; gap: 5%; height: 90px; padding: .5rem; border-bottom: 1px solid var(--preview-line); background: repeating-linear-gradient(to top, transparent 0 28px, var(--preview-line) 29px 30px); }
.show-bars i { width: 7%; height: 42%; background: var(--preview-brand); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: bars-rise .65s ease-out both; }
.show-bars i:nth-child(2n) { height: 65%; }.show-bars i:nth-child(3n) { height: 54%; }.show-bars i:nth-child(4n) { height: 85%; }.show-bars i:nth-child(7) { height: 95%; }
.device-phone { border: 5px solid var(--preview-ink); border-radius: 1.9rem; max-width: 270px; width: 100%; margin-inline: auto; }
.device-phone .device-chrome { min-height: 22px; padding: .4rem; justify-content: center; border: 0; }
.device-phone .device-chrome i { display: none; }.device-phone .device-chrome span { font-size: .5rem; }
.device-phone .show-screen { font-size: .73rem; }
.device-phone .show-layout { min-height: 350px; }
.device-phone .show-content { padding: .8rem; }
.device-phone .show-fields { grid-template-columns: 1fr; }
.device-phone .show-stats > div { flex-basis: 100%; }
.device-phone .show-rows > div { display: grid; }
.show-bottom { text-align: center; padding: .7rem .3rem; background: var(--preview-surface); border-top: 1px solid var(--preview-line); font-size: .6rem; }
.show-client .show-content { text-align: center; }
.show-client .show-action { align-self: stretch; }
.show-code { font: 700 1.15rem/1.6 var(--mono); letter-spacing: .12em; padding: .65rem .2rem; background: var(--preview-soft); text-align: center; color: var(--preview-ink); }
.show-wait { font-size: 2rem; color: var(--preview-brand); }
.show-receipt { width: min(100%, 220px); margin: auto; display: grid; gap: .6rem; text-align: center; padding: 1rem .6rem; color: #19263c; background: #fff; border: 1px dashed #53627a; font-family: var(--mono); }
.show-receipt small { color: #53627a; }.show-receipt .show-code { background: #edf1f7; color: #19263c; }
.show-qr { display: grid; place-content: center; width: 64px; height: 64px; margin: auto; border: 6px double #19263c; color: #19263c; font-size: .7rem; }
.router-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.router-card h3 { margin-top: .7rem; }.router-drawing { height: 160px; display: grid; align-content: end; padding: 1rem .5rem; position: relative; }
.router-antenna { position: absolute; width: 9px; height: 75px; background: var(--muted); right: 20%; bottom: 70px; transform: rotate(10deg); border-radius: 1rem; }
.router-case { position: relative; padding: 1.2rem; border: 1px solid var(--line); border-bottom-width: 8px; border-radius: .7rem; background: var(--surface-soft); transform: perspective(550px) rotateX(15deg) rotateY(-10deg); box-shadow: 0 15px 20px #19263c0a; }
.router-case b { font-size: .7rem; }.router-ports { display: flex; gap: .35rem; margin: .5rem 0; }.router-ports i { width: 20px; height: 15px; border: 3px solid var(--muted); background: var(--nav); }
.router-led { display: inline-block; margin-right: .3rem; width: 5px; height: 5px; background: var(--brand); border-radius: 50%; animation: router-live .7s ease-in-out 5 alternate; }.router-led:nth-last-child(2) { animation-delay: .2s; }
.router-reading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 1rem 0; font-size: .8rem; }.router-reading strong { font: 700 2rem var(--font-heading); font-variant-numeric: tabular-nums; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.5rem; }
.screen-tabs button { min-height: 44px; border: 1px solid var(--line); padding: .65rem .85rem; border-radius: 2rem; color: var(--ink); background: var(--surface); font-size: .78rem; font-weight: 600; }
.screen-tabs button[aria-selected="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.screen-tabs button:hover { border-color: var(--brand); }
.screen-panel { padding: 2rem; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface-soft); min-width: 0; }
.screen-description { max-width: 740px; margin-bottom: 2rem; }.screen-description h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: .5rem 0 .7rem; }.screen-description p:not(.eyebrow) { color: var(--muted); }.screen-description a { display: inline-block; min-height: 44px; padding-top: .8rem; font-size: .85rem; }
.screen-pair { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; max-width: 1080px; margin-inline: auto; }
.screen-pair figure { min-width: 0; }.screen-pair figcaption { font-size: .8rem; text-align: center; margin-top: 1rem; color: var(--muted); }.screen-pair .device-desktop .show-layout { min-height: 390px; }
.public-client-journey { background: var(--surface-soft); border-radius: 1.5rem; padding-inline: 2rem; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }.journey-step { min-width: 0; }.journey-step > figcaption { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }.journey-step > figcaption > span { font-family: var(--font-heading); color: var(--brand); font-size: 1.4rem; }.journey-step h3 { font-size: 1rem; }
.journey-themes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }.journey-themes > div { min-width: 0; }.journey-themes .show-stats > div { flex-basis: 100%; }.theme-caption { margin-top: .7rem; text-align: center; font-size: .75rem; color: var(--muted); }
.public-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }.public-roles article { border-top: 2px solid var(--line); padding-top: 1.5rem; }.role-number { display: block; color: var(--brand); font: 700 2rem var(--font-heading); margin-bottom: 1rem; }.public-roles p { margin: .7rem 0 1rem; color: var(--muted); }.public-roles a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.public-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 0; list-style: none; counter-reset: setup; margin: 2rem 0 4rem; }.public-steps li { counter-increment: setup; border-top: 1px solid var(--line); padding-top: 1rem; }.public-steps li::before { content: "0" counter(setup); display: block; color: var(--brand); font: 700 2rem var(--font-heading); margin-bottom: 1rem; }.public-steps p { margin-top: .7rem; color: var(--muted); }
.public-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }.public-facts article { padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }.public-facts h3 { margin: .6rem 0 1rem; }.public-facts p:not(.eyebrow) { color: var(--muted); }
.public-final { padding: 3rem; background: var(--brand-soft); border-radius: 1.5rem; }.public-final h2 { margin: .7rem 0 1rem; max-width: 24ch; }.public-final p { max-width: 65ch; }.public-support { padding: 4rem 0; }.public-support h2 { font-size: 1.3rem; margin-bottom: 1rem; }.public-support p { color: var(--muted); }
.public-footer { display: flex; gap: 1rem 2rem; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }.public-footer details { flex-basis: 100%; }.public-footer summary { cursor: pointer; min-height: 44px; padding-block: .6rem; }
.public-reveal.is-visible { animation: public-enter .45s ease-out both; }
@keyframes network-flow { 0% { stroke-dashoffset: 0; opacity: 0; } 20% { opacity: .85; } 100% { stroke-dashoffset: -65; opacity: 0; } }
@keyframes capture-float { from { translate: 0 0; } to { translate: 0 -7px; } }
@keyframes bars-rise { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@keyframes router-live { from { opacity: .35; } to { opacity: 1; } }
@keyframes public-enter { from { transform: translateY(12px); } to { transform: translateY(0); } }
@media (prefers-color-scheme: dark) {
 .public-page { --public-accent: #ffb49a; --preview-button: #16213d; }
 .device { --preview-button: #16213d; }.device.preview-light { --preview-button: #fff; }
}
@media (min-width: 1500px) {
 .journey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
 .journey-themes { gap: .5rem; }.journey-themes .device-phone { border-width: 3px; border-radius: 1.2rem; }.journey-themes .show-screen { font-size: .6rem; }.journey-themes .show-content { padding: .6rem; }.journey-themes .show-content h4 { font-size: .9rem; }.journey-themes .show-code { font-size: .8rem; letter-spacing: .04em; }.journey-themes .show-screen small { font-size: .55rem; }
}
@media (max-width: 1099px) {
 .public-hero { gap: 1rem; padding-top: 3rem; }.public-hero h1 { font-size: clamp(2.5rem, 5.3vw, 4rem); }.public-header { gap: .5rem 1rem; }.public-header nav { gap: 1rem; }.peek-composition { grid-template-columns: 1fr; padding-inline: 0; }.peek-pair { max-width: 750px; width: 100%; margin: auto; }.router-card { max-width: 500px; width: 100%; margin: auto; }.public-roles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
 .public-main, .public-footer { width: calc(100% - 2.5rem); }.public-header { padding: .65rem 1.25rem; }.public-header .brand { font-size: .95rem; }.public-header .btn { font-size: .72rem; padding: .6rem; }.public-header nav { width: 100%; order: 3; justify-content: space-between; gap: .5rem; }.public-header nav a { font-size: .75rem; }
 .public-hero { grid-template-columns: 1fr; padding: 2.5rem 0; gap: 2rem; }.public-hero h1 { font-size: clamp(3.2rem, 9vw, 5rem); }.public-network { max-width: 510px; margin: auto; }.network-node > span { width: 44px; }.network-node b { font-size: .65rem; }.network-center span { font-size: .6rem; }
 .public-section, .public-peek { padding-block: 3rem; }.public-intro { margin-bottom: 1.75rem; }.public-intro h2 { font-size: 2rem; }.peek-composition { gap: 1rem; }.peek-pair { padding: 32px 16px; }.peek-pair > .device { width: 86%; }.peek-pair > .device:first-child { transform: rotate(-2deg); }.peek-pair > .device:last-child { margin-top: 95px; transform: rotate(2deg); }.peek-pair .show-screen { font-size: .56rem; }.peek-pair .show-screen small { font-size: .52rem; }.peek-pair .show-content { padding: .65rem; gap: .5rem; }.peek-pair .show-stats strong { font-size: .7rem; }.peek-pair .show-layout { min-height: 270px; }.peek-pair .show-sidebar { font-size: .5rem; padding-inline: .35rem; }.peek-pair .show-content h4 { font-size: .9rem; }
 .screen-panel { padding: 1rem; border-radius: 1rem; }.screen-pair { grid-template-columns: 1fr; gap: 2rem; }.screen-pair .device-desktop .show-layout { min-height: 320px; }.screen-pair .device-desktop .show-content { padding: .65rem; }.screen-pair .device-desktop .show-fields { grid-template-columns: 1fr; }.screen-pair .device-desktop .show-screen { font-size: .64rem; }.screen-pair .device-desktop .show-sidebar { font-size: .55rem; padding-inline: .35rem; }.screen-tabs { gap: .4rem; max-height: 220px; overflow: auto; padding: .25rem .25rem 1rem; border-block: 1px solid var(--line); margin-block: 1rem; }.screen-tabs button { padding: .6rem .7rem; font-size: .72rem; }
 .public-client-journey { padding-inline: 1rem; }.journey-grid { grid-template-columns: 1fr; gap: 2rem; }.journey-themes { gap: .6rem; }.journey-themes .device-phone { border-width: 3px; border-radius: 1.1rem; }.journey-themes .show-content { padding: .5rem; gap: .65rem; }.journey-themes .show-screen { font-size: .6rem; }.journey-themes .show-screen small { font-size: .55rem; }.journey-themes .show-content h4 { font-size: .9rem; }.journey-themes .show-code { font-size: .75rem; letter-spacing: .02em; }.journey-themes .show-brand { padding: .45rem; gap: .25rem; font-size: .55rem; }.journey-themes .show-brand svg { width: 15px; flex-shrink: 0; }.journey-themes .show-brand > span:last-child { display: none; }.journey-themes .show-layout { min-height: 345px; }
 .public-steps, .public-facts { grid-template-columns: 1fr; }.public-steps { gap: 1.5rem; margin-bottom: 2rem; }.public-facts article { padding: 1.25rem; }.public-roles { gap: 1.5rem 1rem; }.public-roles h3 { font-size: 1rem; }.public-roles p { font-size: .85rem; }.public-final { padding: 1.5rem; }.public-final .btn { width: 100%; }
}
@media print {
 .public-header { position: static; }.screen-tabs { display: none; }.public-page .screen-panel[hidden] { display: block !important; }.public-page .screen-panel { break-inside: avoid; }.peek-pair > .device { animation: none; }.public-page * { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
 .public-page *, .public-page *::before, .public-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.public-header .logo-symbol { fill: none; stroke: currentColor; }
.show-curve { display: block; width: 100%; height: 65px; overflow: visible; }
.show-curve path { fill: none; stroke: var(--preview-line); }
.show-curve polyline { fill: none; stroke: var(--preview-brand); stroke-width: 2.5; stroke-linejoin: round; }
.public-hero-copy > a, .public-support a, .public-footer > a { display: inline-flex; align-items: center; min-height: 44px; }

@page { size: A4 portrait; margin: 10mm; }
@page receipt { size: 58mm 100mm; margin: 0; }
@media print {
  :root { color-scheme: light; }
  html, body { background: white !important; color: black !important; }
  .app { padding: 0; }
  .sidebar, .topbar, .sitebar, .bottom-nav, .no-print, .page-heading, .alert, .toast, dialog, .skip-link { display: none !important; }
  .content { max-width: none; padding: 0; margin: 0; }
  .print-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; width: 190mm; max-width: 100%; }
  .print-ticket { box-shadow: none; border-radius: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-ticket .qr { width: 26mm; height: 26mm; }
  .print-sheet { grid-auto-rows: 65mm; }
  .print-sheet .print-ticket { padding: 2.5mm; }
  .print-sheet .print-ticket h2 { font-size: 11pt; line-height: 1.2; }
  .print-sheet .print-ticket p { font-size: 7pt; line-height: 1.25; margin-top: .7mm; }
  .print-sheet .print-ticket .code { font-size: 13pt; margin-top: 1mm; }
  .print-sheet .print-ticket .qr { width: 20mm; height: 20mm; margin: 1mm auto; }
  .receipt-page { page: receipt; width: 58mm; margin: 0; }
  .receipt-paper { width: 58mm; max-width: none; border: 0; margin: 0; padding: 3mm; }
  .receipt-paper .print-ticket { break-inside: avoid; }
  .receipt-paper .print-ticket { break-after: page; }
  .receipt-paper .print-ticket:last-child { break-after: auto; }
}

/* Correction application : la règle qui écrivait le nom du produit dans les [data-product-name] vides est retirée ;
   le serveur rend le nom ({{ produit }}) dans chaque élément. */
