/* Charte Ordidoo (back-office, connexion, pages de la plateforme) : polices libres hébergées avec l'application */
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/static/fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --primary: #c0392b;
  --ink: #222;
  --muted: #666;
  --line: #ddd;
  --bg: #f6f5f2;
  --card: #fff;
  --ok: #2e7d32;
  --warn: #b26a00;
  --err: #c62828;
  --btn: var(--primary);
  --add: #2e7d32;
  --danger: #c62828;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; }
.container { max-width: 860px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1200px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.right { text-align: right; }
.btn, .btn.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px;
  font: 500 .95rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; border: 1px solid var(--btn); border-radius: 6px;
  background: var(--btn); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.btn:hover { filter: brightness(.92); }
.btn.secondary { background: #fff; color: var(--ink); border-color: #c4c4c4; }
.btn.secondary:hover { filter: none; background: #f3f3f1; }
/* Format compact : uniquement pour les actions par ligne (tableaux, éditeur). */
.btn.small { min-height: 30px; padding: 0 10px; font-size: .85rem; }
/* Code couleur : vert = ajout / création, rouge = suppression ou opération délicate. */
.btn.add { background: var(--add); border-color: var(--add); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.secondary.add { background: #fff; color: var(--add); border-color: var(--add); }
.btn.secondary.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn.secondary.add:hover { background: #edf6ee; }
.btn.secondary.danger:hover { background: #fcecec; }
.btn:disabled { opacity: .6; cursor: wait; }
/* Back-office : couleurs Ordidoo (ardoise et cresson) ; boutons principaux ardoise, distincts du vert et du rouge. */
body.admin { --primary: #24384F; --btn: #24384F; --add: #1F7A55; --bg: #F4F6F8; --ink: #111A24; --muted: #5A6675; --line: #D8DEE5;
  --accent: #35B37E; font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.admin .btn { font-family: inherit; }
body.admin h1 { font-family: "Baloo 2", "Figtree", system-ui, sans-serif; font-weight: 700; letter-spacing: -.005em; color: var(--ink); }
body.admin .btn.secondary.add:hover { background: #E8F5EF; }
.brand-logo { height: 26px; width: auto; display: block; }
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; }
.topbar .brand .shop-name { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); }
.login-brand { display: flex; justify-content: center; margin: 28px 0 6px; }
.login-brand img { height: 46px; width: auto; }
.login-tagline { text-align: center; color: var(--muted); margin: 0 0 18px; }
input[type=text], input[type=url], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  font: inherit; padding: 7px 9px; border: 1px solid #bbb; border-radius: 6px; background: #fff; max-width: 100%;
}
textarea { width: 100%; }
label { cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 3px; }
.field input, .field select { width: 100%; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* En-tête du formulaire */
.form-head { display: flex; gap: 16px; align-items: center; }
.form-head img { max-height: 90px; }
.form-head h1 { color: var(--primary); margin: 0; font-size: 1.5rem; }

/* Produits */
.section-title { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 4px; margin: 22px 0 4px; }
.product { border-top: 1px solid var(--line); padding: 14px 0; }
.product:first-child { border-top: 0; }
.product-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.product-name { font-weight: 600; font-size: 1.05rem; }
.price { white-space: nowrap; font-weight: 600; }
.product .desc { font-size: .9rem; color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.qty-row .qty { width: 90px; }
.qty-row select.qty { width: 110px; }
.qty-label { color: var(--primary); font-style: italic; font-size: .9rem; }
.variants { margin-top: 6px; }
.variants .qty-row { margin-top: 4px; justify-content: space-between; max-width: 520px; flex-wrap: nowrap; }
.variants .qty-row > span { white-space: nowrap; }
.choices { margin: 8px 0 0 4px; columns: 2; column-gap: 24px; }
.choices > div { break-inside: avoid; padding: 2px 0; }
.choices .children { margin-left: 22px; font-size: .92rem; }
@media (max-width: 640px) { .choices { columns: 1; } }
.choice-group { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0 0; padding: 6px 12px 8px; }
.choice-group legend { font-weight: 600; padding: 0 4px; }
.choice-group label { display: block; padding: 3px 0; }
.line-total { font-size: .9rem; color: var(--muted); }
.product.selected { background: linear-gradient(90deg, rgba(192,57,43,.06), transparent); }

.sticky-total { position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--primary); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 5; }
.sticky-total .total { font-size: 1.3rem; font-weight: 700; }
.errors { background: #fdecea; color: var(--err); border-radius: 8px; padding: 10px 14px; }
.errors:empty { display: none; }
.warnings { background: #fff4e5; color: var(--warn); border-radius: 8px; padding: 10px 14px; }
.notes li { margin: 4px 0; }
.slot { display: block; padding: 6px 0; }

/* Back-office */
.topbar { background: #24384F; color: #fff; border-bottom: 3px solid #35B37E; }
.topbar .container { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #fff; text-decoration: none; opacity: .85; }
.topbar a:hover, .topbar a.active { opacity: 1; text-decoration: underline; }
.topbar .brand { font-weight: 700; opacity: 1; }
.topbar .spacer { flex: 1; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fafafa; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; border-radius: 10px; padding: 1px 9px; font-size: .8rem; background: #eee; white-space: nowrap; }
.badge.a_verifier { background: #fff4e5; color: var(--warn); font-weight: 600; }
.badge.confirmee { background: #e8f5e9; color: var(--ok); }
.badge.prete { background: #e3f2fd; color: #1565c0; }
.badge.retiree { background: #eceff1; color: #455a64; }
.badge.annulee { background: #fdecea; color: var(--err); text-decoration: line-through; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.stat .v { font-size: 1.6rem; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.scan img, .scan iframe { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.scan iframe { height: 80vh; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.inline { display: inline; }
.sub td:first-child { padding-left: 28px; color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Mention « propulsé par Ordidoo » : pied de chaque page imprimée (production, commande du client) */
.print-brand { display: none; }
@media print {
  .print-brand { display: flex; position: fixed; right: 0; bottom: 0; align-items: center; gap: 3px;
    font: 7pt/1 system-ui, sans-serif; color: #777; background: #fff; padding: 2px 0 0 6px; }
  .print-brand img { height: 9pt; width: auto; }
}
@media print {
  .topbar, .no-print, .filters, .btn { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; margin: 8px 0; }
  .container { max-width: none; padding: 0; }
  .page-break { page-break-before: always; }
  tr { page-break-inside: avoid; }
}
@media (max-width: 640px) { .variants .qty-row { flex-wrap: wrap; } .variants .qty-row > span { white-space: normal; } }

/* Éditeur de formulaire */
.ed-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; background: var(--bg); padding: 10px 0; z-index: 10; border-bottom: 1px solid var(--line); }
.ed-bar .spacer { flex: 1; }
.ed-tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.ed-tab { background: none; border: 0; padding: 9px 14px; font: inherit; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--muted); }
.ed-tab.active { color: var(--ink); border-bottom-color: var(--primary); font-weight: 600; }
.ed-wide { grid-column: 1 / -1; }
.ed-check { display: flex; gap: 6px; align-items: center; font-weight: normal !important; margin: 4px 0; }
.ed-check input { width: auto !important; }
.ed-logo { display: block; max-height: 70px; margin-bottom: 6px; }
.ed-table td { border: 0; padding: 4px 6px 4px 0; vertical-align: bottom; }
.ed-table { background: none; }
.ed-product { padding: 10px 14px; margin: 8px 0; }
.ed-product.open { border-color: var(--primary); }
.ed-product-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ed-product-head .btn { padding: 0 8px; }
.ed-toggle { background: none; border: 0; font: inherit; text-align: left; cursor: pointer; padding: 4px 0; flex: 1; min-width: 0; }
.ed-summary .badge { margin-left: 6px; }
.ed-product .grid2 { margin-top: 10px; }
.ed-sub { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ed-sub h4 { margin: 0 0 6px; }
.ed-row { display: flex; gap: 6px; align-items: center; margin: 4px 0; flex-wrap: wrap; }
.ed-row input[type=text] { flex: 1; min-width: 160px; }
.ed-row input.ed-id, input.ed-id { flex: 0 1 150px; min-width: 90px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--muted); }
.ed-children { margin-left: 28px; }
.warnings.ok { background: #e8f5e9; color: var(--ok); }
.field input[type=color] { width: 80px; height: 38px; padding: 2px; }
.ed-group { border-left: 3px solid var(--primary); padding-left: 8px; margin: 8px 0; }
.ed-rule { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin: 2px 0 6px 28px; }
.ed-rule .field { width: 110px; }
.inline-details { display: inline-block; text-align: left; } .inline-details summary { list-style: none; } .inline-details[open] { display: block; }
.sms-offer { margin-top: 12px; }

/* Liste de retrait */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 8px 0 4px; }
.tabs .tab { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs .tab.active { color: var(--ink); border-bottom-color: var(--primary); font-weight: 600; }
.slot-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 8px; }
.slot-head h2 { margin: 0; }
.progress { flex-basis: 100%; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); }
table.pickup tr.st-retiree td { opacity: .55; }
table.pickup tr.st-annulee td { opacity: .4; text-decoration: line-through; }
table.pickup tr:target td { background: #fff8e1; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  table.pickup thead { display: none; }
  table.pickup tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.pickup td { border: 0; padding: 2px 4px; }
  table.pickup td:nth-child(3) { grid-column: 1 / -1; }
}
.fulfillment { background: #f8f8f6; border-left: 4px solid var(--primary); padding: 10px 14px; margin: 10px 0 14px; border-radius: 4px; }
.errors-text { color: var(--err); }
/* Thèmes du formulaire en ligne */
.container.themed { background: var(--card); border-radius: 14px; margin: 24px auto; box-shadow: 0 6px 30px rgba(0, 0, 0, .12); padding: 0 24px 16px; overflow: hidden; }
.container.themed > :first-child:not(.theme-header) { margin-top: 20px; }
.theme-header { display: block; width: calc(100% + 48px); margin: 0 -24px 16px; height: auto; max-height: 260px; object-fit: cover; }
.theme-footer { display: block; width: calc(100% + 48px); margin: 16px -24px -16px; height: auto; max-height: 160px; object-fit: cover; }
.container.themed .sticky-total { margin: 0 -24px; }
@media (max-width: 600px) { .container.themed { margin: 0; border-radius: 0; padding: 0 14px 12px; }
  .theme-header, .theme-footer { width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; }
  .container.themed .sticky-total { margin: 0 -14px; } }
@media print { body { background: #fff !important; } .container.themed { box-shadow: none; margin: 0; } }
/* Éditeur : choix du thème */
.theme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.theme-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.theme-thumb { position: relative; height: 84px; border-radius: 6px; overflow: hidden; background-size: 60px; }
.theme-thumb img { width: 100%; height: 46px; object-fit: cover; display: block; }
.theme-thumb-blank { height: 46px; background: rgba(255, 255, 255, .6); }
.theme-swatch { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; }
.theme-image-preview { display: block; max-width: 100%; max-height: 70px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 4px; }
.theme-image-preview.tile { width: 70px; height: 70px; object-fit: cover; }
.closed-message p:first-child { font-size: 1.2rem; }
/* Sélecteur de formulaire du back-office */
.form-filter { background: #E6EBF0; border-bottom: 1px solid var(--line); }
.form-filter form { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.form-filter label { font-weight: 600; font-size: .9rem; }
.form-filter select { max-width: 100%; }
.badge.form-open { background: #e8f5e9; color: var(--ok); }
.badge.form-scheduled { background: #e3f2fd; color: #1565c0; }
.badge.form-closed { background: #eceff1; color: #546e7a; }
.badge.form-standby { background: #fff3e0; color: #b45309; }
.badge.form-draft { background: #fff4e5; color: var(--warn); }
.ed-dates { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; } .ed-dates input { padding: 4px 6px; }
.badge.paid { background: #e8f5e9; color: var(--ok); font-weight: 600; }
/* Bandeau « DÉMO » (DEMO_MODE) */
.demo-banner { background: repeating-linear-gradient(-45deg, #f0a43a 0 14px, #f3b04f 14px 28px); color: #1f2a2a;
  text-align: center; font: .85rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding: 6px 12px;
  position: relative; z-index: 50; }
.demo-banner strong { background: #1f2a2a; color: #f0a43a; border-radius: 4px; padding: 1px 7px; margin-right: 6px; letter-spacing: .08em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; text-align: left; }
.logo-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.logo-box { width: 140px; height: 100px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; background: #fff; }
.logo-box img { max-width: 128px; max-height: 88px; }
.available-from { color: var(--primary); font-weight: 600; font-style: italic; }
.product.unavailable { background: #fff4e5; border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.product.unavailable .available-from::after { content: " — pas pour la date choisie"; color: var(--warn); }
/* Liste des commandes : recherche d'un côté, actions de l'autre */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-card { padding-top: 12px; }
.card-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.actions-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.actions-bar .spacer { flex: 1; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Menu « Gestion » du back-office */
.topbar .menu { position: relative; }
.topbar .menu summary { cursor: pointer; list-style: none; opacity: .85; }
.topbar .menu summary::-webkit-details-marker { display: none; }
.topbar .menu summary::after { content: " ▾"; font-size: .8em; }
.topbar .menu summary:hover, .topbar .menu[open] summary, .topbar .menu summary.active { opacity: 1; text-decoration: underline; }
.topbar .menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 100; min-width: 230px; background: #fff;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); padding: 6px; display: flex; flex-direction: column; }
.topbar .menu-panel a { color: var(--ink); opacity: 1; padding: 8px 12px; border-radius: 6px; }
.topbar .menu-panel a:hover, .topbar .menu-panel a.active { background: #f1efe9; text-decoration: none; }
.topbar .menu-panel a.active { font-weight: 600; }
.topbar .menu-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 12px 2px; }
.topbar .menu-title:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; }
/* Indicateurs (plateforme) — couleurs des canaux : ordre fixe, validé daltonisme */
.viz { --series-web: #2a78d6; --series-email: #eb6834; --series-scan: #1baf7a; --series-manuel: #eda100; --series-api: #e87ba4; }
.viz svg { width: 100%; min-width: 560px; height: auto; display: block; margin: 6px 0; }
.chart-scroll { overflow-x: auto; }
.viz .grid { stroke: #e6e5e1; stroke-width: 1; }
.viz .axis { font-size: 11px; fill: var(--muted); }
.viz .hit { fill: transparent; }
.viz .bar:hover .hit { fill: rgba(0, 0, 0, .05); }
.s-web { fill: var(--series-web); background: var(--series-web); }
.s-email { fill: var(--series-email); background: var(--series-email); }
.s-scan { fill: var(--series-scan); background: var(--series-scan); }
.s-manuel { fill: var(--series-manuel); background: var(--series-manuel); }
.s-api { fill: var(--series-api); background: var(--series-api); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 4px 0; font-size: .9rem; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.alert-list { list-style: none; padding: 0; margin: 0; }
.alert-list li { padding: 8px 12px; margin: 6px 0; background: #fff4e5; border-left: 4px solid var(--warn); border-radius: 4px; }
.alert-icon { color: var(--warn); font-weight: 700; }
.alert-ok { color: var(--ok); font-weight: 600; }
table.kv th { font-weight: 500; text-align: left; background: none; text-transform: none; letter-spacing: 0;
  font-size: .95rem; color: var(--ink); }
.card code { overflow-wrap: anywhere; }
table.kv tr.sub th { padding-left: 22px; font-weight: 400; color: var(--muted); }
td.usage { min-width: 220px; }
.use { display: inline-flex; align-items: center; gap: 5px; margin: 2px 10px 2px 0; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.use.near { color: var(--warn); font-weight: 600; }
.meter { display: inline-block; width: 46px; height: 6px; background: #ecebe7; border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--muted); }
.use.near .meter span { background: var(--warn); }
.table-scroll { overflow-x: auto; }
.access-card { max-width: 440px; }
.access-card input[type=password] { width: 100%; }
.ed-access { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 0 0; }
.ed-access p { flex-basis: 100%; margin: 0; }
.ed-access #access-fields { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-access #access-fields[hidden] { display: none; }
.ed-access input[type=text] { font-family: ui-monospace, Menlo, Consolas, monospace; }
.badge.reseller { background: #ede7f6; color: #4527a0; }
.reseller-bar { background: #ede7f6; color: #311b92; border-radius: 6px; padding: 8px 12px; }
.reseller-card h2 { margin-top: 0; }
input[readonly] { background: #f3f3f1; }
.link-cell { min-width: 260px; }
.copy-link { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; margin-bottom: 4px; }
.reseller-form { margin-top: 6px; min-width: 320px; text-align: left; }
.actions-row { display: flex; gap: 6px; flex-wrap: wrap; }
tr.just-saved td { background: #f1f8e9; }
.no-prices .line-total { display: none; }
/* Formules à plats inclus (traiteur) */
.course-box { background: #f6f8fb; border: 1px solid #dfe5ee; border-radius: 8px; padding: 8px 12px; margin: 6px 0 10px; }
.course-box.remaining { background: #fff8e1; border-color: #f0c36d; }
.course-box.remaining .cc-more { color: var(--warn); font-weight: 600; }
.course-box.complete { background: #f1f8e9; border-color: #b7d8a0; }
.product.formula .product-name { font-weight: 700; }
.desc.includes { color: var(--ink); }
.ed-includes { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ed-includes .field { max-width: 160px; }
input.ed-price { width: 90px; flex: 0 0 90px; }
.new-token { border-color: #b7d8a0; background: #f1f8e9; }
.token-row { display: flex; gap: 8px; align-items: center; }
.token-row .copy-link { margin: 0; }
.rate-form input[type=number] { width: 70px; padding: 4px 6px; }
/* En-têtes de tableau triables */
th a.sort { color: inherit; text-decoration: none; white-space: nowrap; }
th a.sort:hover { color: var(--ink); }
th a.sort.active { color: var(--ink); }
.sort-arrow { margin-left: 4px; font-size: .75em; opacity: .45; }
th a.sort.active .sort-arrow { opacity: 1; }
@media print { .sort-arrow { display: none; } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.privacy-note { margin: 10px 0 0; }
.privacy-page { max-width: 760px; }
.privacy-page h2 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-doc { max-width: 860px; }
.legal-doc h1 { font-size: 1.5rem; }
.legal-doc h2 { font-size: 1.1rem; margin-top: 1.3em; }
.dpa-banner { margin: 12px 0; }
@media print { .legal-doc { box-shadow: none; border: 0; max-width: none; } }
.slot.full { opacity: .75; }
.badge.slot-full, .stock-hint.sold-out { background: #fdecea; color: var(--err); font-weight: 600; }
.stock-hint { color: var(--warn); font-weight: 600; }
.product.sold-out .qty { background: #f3f3f3; }
.wait-btn { margin-left: 6px; }
.waitlist-dialog { max-width: 460px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.waitlist-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.ed-row input.ed-stock { width: 110px; flex: 0 0 auto; min-width: 0; }
.pass-fields { border: 1px solid #ddd; border-radius: 6px; padding: 4px 8px 0; margin: 0 0 8px; }
