/* ToutLike customer design system */
:root {
    color-scheme: light;
    --bg: #f2f9f8;
    --surface-2: #f1f7f6;
    --panel: #ffffff;
    --chip: #eef2f7;
    --ink: #101828;
    --ink-strong: #0b1b2e;
    --muted: #56657a; /* 23/11/2026 : #64748b tombait a 4,4:1 sur les fonds gris clairs */
    --line: #e3eae9;
    --brand: #007878;
    --brand-strong: #005f5f;
    --brand-soft: #e6f5f4;
    --brand-bright: #27cfcd;
    --brand-rgb: 0, 120, 120;
    --topbar-bg: rgba(0, 104, 104, .95);
    --topbar-bg-mobile: rgba(0, 102, 102, .98);
    --topbar-shadow: 0 12px 32px rgba(0, 60, 60, .26);
    --footer-bg: linear-gradient(150deg, #022a29, #01443f);
    --footer-feature-bg: linear-gradient(135deg, #005f5f, #007878 55%, #0aa79c);
    --accent: #e02428;
    --accent-strong: #c31d21;
    --accent-soft: #feeeee;
    --navy: #0a2f66;
    --navy-deep: #071e44;
    --gold: #fbbc04;
    --ok: #087252;
    --ok-soft: #e5f6ef;
    --warn: #8a4b00;
    --warn-soft: #fff3e0;
    --bad: #b42333;
    --bad-soft: #fdeef0;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 70, .05), 0 4px 12px rgba(16, 40, 70, .05);
    --shadow-md: 0 10px 28px rgba(16, 43, 76, .10);
    --shadow-lg: 0 24px 60px rgba(7, 30, 68, .16);
    --font-head: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
    --font-mono: "Inter", ui-monospace, Consolas, monospace;
    --ring: 0 0 0 4px rgba(var(--brand-rgb), .16);
    --dash-ease: cubic-bezier(.22, 1, .36, 1);
    --dash-balance-grad:
        radial-gradient(120% 140% at 88% -20%, rgba(251, 188, 4, .16), transparent 46%),
        radial-gradient(120% 130% at -10% 120%, rgba(39, 207, 205, .20), transparent 50%),
        linear-gradient(135deg, #05193a 0%, #043f3a 48%, #006763 100%);
    --auth-visual-grad:
        radial-gradient(circle at 86% -8%, rgba(251, 188, 4, .20), transparent 44%),
        radial-gradient(circle at -6% 108%, rgba(39, 207, 205, .28), transparent 46%),
        linear-gradient(150deg, var(--navy-deep), var(--navy) 30%, var(--brand-strong) 72%, var(--brand) 100%);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #15201e;
    --surface-2: #24322e;
    --panel: #1d2a27;
    --chip: #2b3833;
    --ink: #e8f1ef;
    --ink-strong: #f5faf9;
    --muted: #9fb2af;
    --line: #34443e;
    --brand: #18b6b0;
    --brand-strong: #3ad9d2;
    --brand-soft: rgba(24, 182, 176, .16);
    --brand-bright: #5eead4;
    --brand-rgb: 24, 182, 176;
    --accent: #ff5c60;
    --accent-strong: #ff7d80;
    --accent-soft: rgba(224, 36, 40, .20);
    --navy: #0c2036;
    --navy-deep: #06101c;
    --gold: #fbbf24;
    --ok: #34d399;
    --ok-soft: rgba(16, 185, 129, .16);
    --warn: #fbbf24;
    --warn-soft: rgba(245, 158, 11, .16);
    --bad: #f87171;
    --bad-soft: rgba(239, 68, 68, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .32), 0 6px 16px rgba(0, 0, 0, .26);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, .38);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, .48);
    --ring: 0 0 0 4px rgba(var(--brand-rgb), .32);
    --auth-visual-grad:
        radial-gradient(circle at 86% -8%, rgba(251, 188, 4, .16), transparent 44%),
        radial-gradient(circle at -6% 108%, rgba(39, 207, 205, .24), transparent 46%),
        linear-gradient(150deg, #041016, #06212c 34%, #063d3a 78%, #075048 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    /* Sticky footer : sur les pages courtes (ex. commande sans champ), le body
       remplit le viewport et le footer reste colle en bas — sinon un vide (blanc
       sur Firefox, ou le fond propage sur Chrome) apparait sous le footer. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-synthesis: none;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.006em;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    /* Halos doux « Aurore » aux couleurs du thème (jetons --halo-*). */
    background:
        radial-gradient(720px 340px at 4% -4%, rgba(var(--halo-2, var(--brand-rgb)), .11), transparent 60%),
        radial-gradient(720px 360px at 98% -8%, rgba(var(--halo-1, var(--brand-rgb)), .09), transparent 60%),
        radial-gradient(900px 420px at 50% 110%, rgba(var(--brand-rgb), .05), transparent 65%),
        var(--bg);
}
h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
}
h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
h2 { font-size: 19px; margin-bottom: 12px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.breakable { overflow-wrap: anywhere; word-break: break-word; }
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-action, var(--brand)), var(--brand-gradient-end, #009488));
    color: var(--brand-action-ink, #fff);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), .24);
    transition: transform .2s var(--dash-ease), box-shadow .2s var(--dash-ease), background .2s var(--dash-ease), border-color .2s var(--dash-ease), color .2s var(--dash-ease);
}
.button:hover {
    background: linear-gradient(135deg, var(--brand-action-strong, var(--brand-strong)), var(--brand-action, var(--brand)));
    box-shadow: 0 14px 30px rgba(var(--brand-rgb), .32);
    transform: translateY(-2px);
    text-decoration: none;
}
.button:focus-visible {
    outline: none;
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), .24), var(--ring);
}
.button:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(var(--brand-rgb), .22); }
.button.secondary {
    background: var(--panel);
    border-color: var(--line);
    color: var(--brand-strong);
    box-shadow: var(--shadow-sm);
}
.button.secondary:hover {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 35%, transparent);
    box-shadow: var(--shadow-sm);
}
/* « accent » (ex-or d'UnlockRapide) = bouton plein du thème, comme .button. */
.button.accent {
    background: linear-gradient(135deg, var(--brand-action), var(--brand-gradient-end));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(var(--brand-rgb), .28);
}
.button.accent:hover {
    background: linear-gradient(135deg, var(--brand-action-strong), var(--brand-action));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(var(--brand-rgb), .34);
    transform: translateY(-2px);
}
.button.block { width: 100%; }
.button:disabled:not(.is-loading), .button[disabled]:not(.is-loading) {
    background: var(--chip);
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}
.button .icon { flex: 0 0 auto; }
/* Etat chargement : anti double-clic sur les boutons de soumission */
.button.is-loading {
    position: relative;
    color: transparent !important;
    opacity: 1 !important;
    pointer-events: none;
    cursor: wait;
}
.button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .6s linear infinite;
}
.button.secondary.is-loading::after,
.button.outline.is-loading::after {
    border-color: color-mix(in srgb, var(--brand-strong) 28%, transparent);
    border-top-color: var(--brand-strong);
}
.topbar .button.accent-cta.is-loading::after {
    border-color: rgba(58, 44, 0, .28);
    border-top-color: #3a2c00;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .button.is-loading::after { animation: none; }
}
.link-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
.mini-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12.5px; font-weight: 600; }

/* â”€â”€ Badges, alerts, flash â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--chip);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
}
.badge.success { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.rejected { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.badge.waiting_action { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge.price { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.badge.time { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 18px;
    background: var(--panel);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.alert.error { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: var(--bad-soft); color: var(--bad); }
.alert.ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: var(--ok-soft); color: var(--ok); }
.alert.warn { border-color: color-mix(in srgb, var(--warn, #b45309) 30%, var(--line)); background: var(--warn-soft, rgba(245, 158, 11, .12)); color: var(--warn, #b45309); }
/* Signal public : activite metier reelle, uniquement pour les visiteurs. */
.client-activity-toast {
    /* Pastille COMPACTE : une seule rangee (media + texte + croix). Elle n'est
       pas epinglee : elle arrive, reste quelques secondes et repart — l'entree
       et la sortie se jouent sur opacity + transform, donc sur telephone
       aussi. Refaite le 26/11/2026 pour le SMM : tuile du reseau, pastille de
       l'action, contour anime a la couleur du reseau. Le fond de l'element
       n'est plus qu'un liseré de 1,5 px : le panneau est pose par ::after. */
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 900;
    width: min(344px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 8px 10px 12px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: color-mix(in srgb, var(--activity-tone) 34%, var(--line));
    color: var(--ink-strong);
    box-shadow: 0 18px 38px -20px color-mix(in srgb, var(--activity-tone) 70%, transparent), var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .22s var(--dash-ease), transform .34s cubic-bezier(.22, 1.25, .36, 1);
    --activity-tone: var(--brand);
    --activity-tone-soft: var(--brand-soft);
    isolation: isolate;
}
:root[data-client-theme="azure"] {
    --bg: #f4f8ff;
    --surface-2: #eaf1fc;
    --panel: #ffffff;
    --chip: #dce9fb;
    --ink: #16243a;
    --ink-strong: #0b172a;
    --muted: #5f6f86;
    --line: #cfddf2;
    --brand: #1769e0;
    --brand-strong: #0c4fb8;
    --brand-soft: #e1edff;
    --brand-bright: #72b3ff;
    --brand-rgb: 23, 105, 224;
    --brand-action: #1769e0;
    --brand-action-strong: #0c4fb8;
    --brand-gradient-end: #2672de;
    --topbar-bg: rgba(12, 79, 184, .97);
    --topbar-bg-mobile: rgba(12, 79, 184, .99);
    --topbar-shadow: 0 12px 34px rgba(12, 64, 145, .28);
    --footer-bg: linear-gradient(150deg, #081b3d, #0b397a);
    --footer-feature-bg: linear-gradient(135deg, #0c4fb8, #1769e0 58%, #398cff);
    --accent: #dc3f5d;
    --accent-strong: #b92542;
    --accent-soft: #ffe7ed;
    --navy: #113e83;
    --navy-deep: #081b3d;
    --gold: #f2b84b;
    --shadow-sm: 0 1px 2px rgba(17, 62, 131, .06), 0 7px 18px rgba(17, 62, 131, .07);
    --shadow-md: 0 14px 34px rgba(17, 62, 131, .13);
    --shadow-lg: 0 28px 68px rgba(8, 27, 61, .20);
    --dash-balance-grad:
        radial-gradient(120% 140% at 88% -20%, rgba(242, 184, 75, .17), transparent 46%),
        radial-gradient(120% 130% at -10% 120%, rgba(114, 179, 255, .24), transparent 50%),
        linear-gradient(135deg, #0b326b 0%, #1258b5 54%, #1769d2 100%);
    --auth-visual-grad:
        radial-gradient(circle at 86% -8%, rgba(242, 184, 75, .18), transparent 44%),
        radial-gradient(circle at -6% 108%, rgba(114, 179, 255, .28), transparent 46%),
        linear-gradient(150deg, #081b3d, #0d3d82 44%, #1769e0 78%, #398cff 100%);
}
:root[data-client-theme="azure"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #101d31;
    --surface-2: #1b2c45;
    --panel: #16263d;
    --chip: #213753;
    --ink: #edf5ff;
    --ink-strong: #f8fbff;
    --muted: #a6b5ca;
    --line: #2d476a;
    --brand: #6ba7ff;
    --brand-strong: #a8ccff;
    --brand-soft: rgba(107, 167, 255, .16);
    --brand-bright: #91c4ff;
    --brand-rgb: 107, 167, 255;
    --brand-action: #1769d2;
    --brand-action-strong: #0f58b9;
    --brand-gradient-end: #2672de;
    --topbar-bg: rgba(14, 30, 52, .97);
    --topbar-bg-mobile: rgba(14, 30, 52, .99);
    --topbar-shadow: 0 12px 34px rgba(2, 8, 18, .42);
    --footer-bg: linear-gradient(150deg, #091426, #112846);
    --footer-feature-bg: linear-gradient(135deg, #101d31, #16263d 58%, #1b2c45);
    --accent: #ff7185;
    --accent-strong: #ff9aaa;
    --accent-soft: rgba(255, 113, 133, .17);
    --navy: #12335f;
    --navy-deep: #091426;
    --gold: #fac85e;
    --ok: #4cdaad;
    --ok-soft: rgba(76, 218, 173, .15);
    --warn: #fac85e;
    --warn-soft: rgba(250, 200, 94, .15);
    --bad: #ff8394;
    --bad-soft: rgba(255, 113, 133, .16);
    --shadow-sm: 0 2px 7px rgba(0, 0, 0, .28);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, .38);
    --shadow-lg: 0 28px 62px rgba(0, 0, 0, .48);
    --dash-balance-grad:
        radial-gradient(120% 140% at 88% -20%, rgba(250, 200, 94, .14), transparent 46%),
        radial-gradient(120% 130% at -10% 120%, rgba(107, 167, 255, .22), transparent 50%),
        linear-gradient(135deg, #0d2f64 0%, #1359b5 58%, #1769d2 100%);
    --auth-visual-grad:
        radial-gradient(circle at 86% -8%, rgba(250, 200, 94, .14), transparent 44%),
        radial-gradient(circle at -6% 108%, rgba(107, 167, 255, .24), transparent 46%),
        linear-gradient(150deg, #091325, #102e58 45%, #1556a4 79%, #1c70d1 100%);
}
:root[data-client-theme="savanna"] {
    --bg: #f7f4ea;
    --surface-2: #efe9d7;
    --panel: #fffdf7;
    --chip: #e9e2cd;
    --ink: #303426;
    --ink-strong: #222719;
    --muted: #706f5b;
    --line: #ded7c0;
    --brand: #66853a;
    --brand-strong: #465c29;
    --brand-soft: #e8efd9;
    --brand-bright: #96b952;
    --brand-rgb: 102, 133, 58;
    --topbar-bg: rgba(54, 72, 31, .97);
    --topbar-bg-mobile: rgba(54, 72, 31, .99);
    --topbar-shadow: 0 12px 32px rgba(43, 49, 24, .24);
    --footer-bg: linear-gradient(150deg, #29321d, #3f5129);
    --footer-feature-bg: linear-gradient(135deg, #465c29, #66853a 58%, #8eaa48);
    --navy: #39482b;
    --navy-deep: #202819;
    --gold: #e6a62d;
    --warn: #7a4900;
    --warn-soft: #f8ead0;
    --shadow-sm: 0 2px 7px rgba(56, 58, 34, .08);
    --shadow-md: 0 12px 26px rgba(56, 58, 34, .13);
    --shadow-lg: 0 24px 54px rgba(56, 58, 34, .19);
    --dash-balance-grad: linear-gradient(135deg, #29321d, #536d30 65%, #536d30);
    --auth-visual-grad: linear-gradient(150deg, #202819, #465c29 54%, #66853a 82%, #8eaa48);
}
:root[data-client-theme="savanna"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #161b11;
    --surface-2: #252c1d;
    --panel: #1e2518;
    --chip: #303925;
    --ink: #edf3e4;
    --ink-strong: #f9fcf5;
    --muted: #abb69b;
    --line: #3a4630;
    --brand: #9abd5b;
    --brand-strong: #c3df8c;
    --brand-soft: rgba(154, 189, 91, .15);
    --brand-bright: #d5e77c;
    --brand-rgb: 154, 189, 91;
    --topbar-bg: rgba(22, 28, 16, .97);
    --topbar-bg-mobile: rgba(22, 28, 16, .99);
    --topbar-shadow: 0 12px 34px rgba(0, 0, 0, .40);
    --footer-bg: linear-gradient(150deg, #0f130b, #202a16);
    --footer-feature-bg: linear-gradient(135deg, #34431f, #55742f 58%, #779941);
    --navy: #2a351f;
    --navy-deep: #0d1109;
    --gold: #f0bd55;
    --shadow-sm: 0 2px 7px rgba(0, 0, 0, .28);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, .36);
    --shadow-lg: 0 24px 54px rgba(0, 0, 0, .46);
    --dash-balance-grad: linear-gradient(135deg, #0f130b, #465c29 68%, #536d30);
    --auth-visual-grad: linear-gradient(150deg, #0d1109, #29351e 52%, #465c29 82%, #66853a);
}
:root[data-client-theme="orchid"] {
    --bg: #fbf3f8;
    --surface-2: #f6e8f1;
    --panel: #fffafd;
    --chip: #f0deea;
    --ink: #3b2a39;
    --ink-strong: #2a1d28;
    --muted: #7e6678;
    --line: #ead2e2;
    --brand: #a0447c;
    --brand-strong: #7b2c5b;
    --brand-soft: #f7dfed;
    --brand-bright: #d26ba9;
    --brand-rgb: 160, 68, 124;
    --topbar-bg: rgba(104, 34, 73, .96);
    --topbar-bg-mobile: rgba(104, 34, 73, .99);
    --topbar-shadow: 0 12px 32px rgba(67, 24, 49, .25);
    --footer-bg: linear-gradient(150deg, #451d36, #672b4c);
    --footer-feature-bg: linear-gradient(135deg, #7b2c5b, #a0447c 58%, #c75f9b);
    --navy: #5b2a51;
    --navy-deep: #31162b;
    --gold: #e5ad54;
    --shadow-sm: 0 2px 7px rgba(76, 35, 62, .07);
    --shadow-md: 0 12px 28px rgba(76, 35, 62, .13);
    --shadow-lg: 0 24px 56px rgba(76, 35, 62, .19);
    --dash-balance-grad: linear-gradient(135deg, #451d36, #7b2c5b 65%, #833865);
    --auth-visual-grad: linear-gradient(150deg, #31162b, #672b4c 50%, #a0447c 82%, #c75f9b);
}
:root[data-client-theme="orchid"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #21131f;
    --surface-2: #321d2f;
    --panel: #2a1827;
    --chip: #40243a;
    --ink: #faeaf5;
    --ink-strong: #fff7fc;
    --muted: #c2a1b7;
    --line: #533047;
    --brand: #d36fae;
    --brand-strong: #f0abd2;
    --brand-soft: rgba(211, 111, 174, .16);
    --brand-bright: #f39dd0;
    --brand-rgb: 211, 111, 174;
    --topbar-bg: rgba(31, 16, 29, .97);
    --topbar-bg-mobile: rgba(31, 16, 29, .99);
    --topbar-shadow: 0 12px 34px rgba(0, 0, 0, .42);
    --footer-bg: linear-gradient(150deg, #140c13, #321d2f);
    --footer-feature-bg: linear-gradient(135deg, #5e2449, #8b3569 58%, #b84f8c);
    --navy: #48213f;
    --navy-deep: #120a11;
    --shadow-sm: 0 2px 7px rgba(0, 0, 0, .28);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, .36);
    --shadow-lg: 0 24px 54px rgba(0, 0, 0, .46);
    --dash-balance-grad: linear-gradient(135deg, #140c13, #672b4c 68%, #833865);
    --auth-visual-grad: linear-gradient(150deg, #120a11, #321d2f 52%, #672b4c 82%, #a0447c);
}
:root[data-client-theme="aurora"] {
    --bg: #f4f3ff;
    --surface-2: #ebe9fb;
    --panel: #fdfcff;
    --chip: #e2def8;
    --ink: #2d2944;
    --ink-strong: #1c1832;
    --muted: #6d6788;
    --line: #d9d4f2;
    --brand: #6d4ee8;
    --brand-strong: #5034bd;
    --brand-soft: #e8e3ff;
    --brand-bright: #16b8c7;
    --brand-rgb: 109, 78, 232;
    --topbar-bg: rgba(60, 43, 139, .97);
    --topbar-bg-mobile: rgba(60, 43, 139, .99);
    --topbar-shadow: 0 12px 34px rgba(43, 30, 105, .28);
    --footer-bg: linear-gradient(150deg, #28204f, #3d2e79);
    --footer-feature-bg: linear-gradient(135deg, #5034bd, #6d4ee8 58%, #16a8b8);
    --navy: #362f75;
    --navy-deep: #1b173c;
    --gold: #f0b84b;
    --shadow-sm: 0 2px 7px rgba(53, 44, 110, .08);
    --shadow-md: 0 12px 28px rgba(53, 44, 110, .14);
    --shadow-lg: 0 25px 58px rgba(53, 44, 110, .21);
    --dash-balance-grad: linear-gradient(135deg, #28204f, #5034bd 64%, #5540ba);
    --auth-visual-grad: linear-gradient(150deg, #1b173c, #3d2e79 48%, #6d4ee8 80%, #16a8b8);
}
:root[data-client-theme="aurora"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c0b1a;
    --surface-2: #19162f;
    --panel: #15132a;
    --chip: #24203e;
    --ink: #f0edff;
    --ink-strong: #fbfaff;
    --muted: #aaa3c8;
    --line: #312b50;
    --brand: #9b87ff;
    --brand-strong: #c2b6ff;
    --brand-soft: rgba(155, 135, 255, .17);
    --brand-bright: #4de4d5;
    --brand-rgb: 155, 135, 255;
    --topbar-bg: rgba(10, 9, 24, .97);
    --topbar-bg-mobile: rgba(10, 9, 24, .99);
    --topbar-shadow: 0 12px 36px rgba(0, 0, 0, .48);
    --footer-bg: linear-gradient(150deg, #070612, #17132d);
    --footer-feature-bg: linear-gradient(135deg, #382879, #6448c5 58%, #158f9d);
    --navy: #28204f;
    --navy-deep: #070612;
    --shadow-sm: 0 2px 7px rgba(0, 0, 0, .30);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, .40);
    --shadow-lg: 0 26px 58px rgba(0, 0, 0, .52);
    --dash-balance-grad: linear-gradient(135deg, #17132d, #5e42bf 62%, #4c3c9c);
    --auth-visual-grad: linear-gradient(150deg, #070612, #28204f 48%, #5e42bf 80%, #158f9d);
}
:root[data-client-theme="graphite"] {
    --bg: #f1f4f5;
    --surface-2: #e7ecee;
    --panel: #fbfcfc;
    --chip: #dde5e7;
    --ink: #252d30;
    --ink-strong: #151c1e;
    --muted: #647176;
    --line: #d0dadd;
    --brand: #3e6f78;
    --brand-strong: #2c535a;
    --brand-soft: #dce9eb;
    --brand-bright: #7fb8bc;
    --brand-rgb: 62, 111, 120;
    --topbar-bg: rgba(36, 52, 56, .97);
    --topbar-bg-mobile: rgba(36, 52, 56, .99);
    --topbar-shadow: 0 12px 32px rgba(22, 31, 34, .27);
    --footer-bg: linear-gradient(150deg, #20292b, #344346);
    --footer-feature-bg: linear-gradient(135deg, #2c535a, #3e6f78 58%, #668f93);
    --navy: #33474b;
    --navy-deep: #1b2527;
    --gold: #c6d65c;
    --shadow-sm: 0 2px 7px rgba(31, 43, 46, .08);
    --shadow-md: 0 12px 26px rgba(31, 43, 46, .13);
    --shadow-lg: 0 24px 52px rgba(31, 43, 46, .19);
    --dash-balance-grad: linear-gradient(135deg, #20292b, #3e6f78 68%, #41666d);
    --auth-visual-grad: linear-gradient(150deg, #1b2527, #344346 52%, #3e6f78 82%, #668f93);
}
:root[data-client-theme="graphite"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #111617;
    --surface-2: #20282a;
    --panel: #1a2224;
    --chip: #293336;
    --ink: #edf5f4;
    --ink-strong: #f8fbfa;
    --muted: #a2b0b1;
    --line: #374447;
    --brand: #77b8bc;
    --brand-strong: #a8d3d4;
    --brand-soft: rgba(119, 184, 188, .15);
    --brand-bright: #b6d15f;
    --brand-rgb: 119, 184, 188;
    --topbar-bg: rgba(15, 20, 21, .97);
    --topbar-bg-mobile: rgba(15, 20, 21, .99);
    --topbar-shadow: 0 12px 34px rgba(0, 0, 0, .44);
    --footer-bg: linear-gradient(150deg, #090d0e, #1b2527);
    --footer-feature-bg: linear-gradient(135deg, #29464a, #3e6f78 58%, #668f93);
    --navy: #29383b;
    --navy-deep: #080c0d;
    --gold: #d3df6b;
    --shadow-sm: 0 2px 7px rgba(0, 0, 0, .30);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, .38);
    --shadow-lg: 0 24px 54px rgba(0, 0, 0, .48);
    --dash-balance-grad: linear-gradient(135deg, #090d0e, #29464a 66%, #456c71);
    --auth-visual-grad: linear-gradient(150deg, #080c0d, #1b2527 52%, #29464a 82%, #507e83);
}
/* Carte catalogue « Mix-1 » : encres du pied (délai ambre, prix, pointillé) et
   encre douce de la queue du nom, précalculées par thème, clair et sombre (pas
   de color-mix : Chrome 109). L'orange « jours » est commun à tous les thèmes. */
:root { --warn-ink: #6e400a; --price-ink: #095f4a; --price-line: #a1c6bc; --lead: #b3bdc5; --ink-soft: #3b4b60; --slow: #a83c08; }
:root[data-theme="dark"] { --warn-ink: #facc53; --price-ink: #5edcae; --price-line: #346f59; --lead: #576863; --ink-soft: #c7d3d1; --slow: #ffa877; }
:root[data-client-theme="azure"] { --warn-ink: #6e4009; --price-ink: #095e49; --price-line: #93bdc2; --lead: #a3b3c9; --ink-soft: #35455e; }
:root[data-client-theme="azure"][data-theme="dark"] { --warn-ink: #fad381; --price-ink: #72e1bf; --price-line: #36737e; --lead: #4f6a8f; --ink-soft: #c8d4e4; }
:root[data-client-theme="savanna"] { --warn-ink: #674206; --price-ink: #0e6245; --price-line: #9eb99f; --lead: #b4af9a; --ink-soft: #4c4e3d; }
:root[data-client-theme="savanna"][data-theme="dark"] { --warn-ink: #fbcc52; --price-ink: #5fdcad; --price-line: #387050; --lead: #5f6b53; --ink-soft: #cfd6c4; }
:root[data-client-theme="orchid"] { --warn-ink: #754109; --price-ink: #0f5f49; --price-line: #a6b5b7; --lead: #c1a9ba; --ink-soft: #574453; }
:root[data-client-theme="orchid"][data-theme="dark"] { --warn-ink: #fccb54; --price-ink: #61dbaf; --price-line: #4a6160; --lead: #78556c; --ink-soft: #dec9d7; }
:root[data-client-theme="aurora"] { --warn-ink: #72400b; --price-ink: #0c5e4b; --price-line: #9ab7c2; --lead: #b0abca; --ink-soft: #484360; }
:root[data-client-theme="aurora"][data-theme="dark"] { --warn-ink: #fbcc54; --price-ink: #60dcaf; --price-line: #325d66; --lead: #595378; --ink-soft: #cfcbe1; }
:root[data-client-theme="graphite"] { --warn-ink: #704107; --price-ink: #0b5f47; --price-line: #94bbb3; --lead: #a7b2b6; --ink-soft: #404a4e; }
:root[data-client-theme="graphite"][data-theme="dark"] { --warn-ink: #facc53; --price-ink: #5fdcae; --price-line: #366f60; --lead: #5a686a; --ink-soft: #cad3d3; }
/* ════════════════════════════════════════════════════════════════════════
   Décor ToutLike par famille (harmonisation du 23/11/2026)
   Tout ce qui colore le décor « Aurore » sort de ces jetons, jamais d'une
   couleur en dur : bandeaux du compte (--decor-*), halos (--halo-1/2, en
   « r, g, b »), boutons pleins (--brand-action*, texte blanc >= 4,5:1),
   bouton lumineux du bandeau, capsule de la page ouverte dans la barre du
   haut et accents du pied (--signal*, texte --signal-ink >= 7:1).
   Une couleur personnalisée de la console réécrit ces jetons en ligne sur
   <html> (ClientAppearance::inlineStyle).
   ══════════════════════════════════════════════════════════════════════ */
:root {
    --brand-action: #007878;
    --brand-action-strong: #005f5f;
    --brand-gradient-end: #006b6b;
    --decor-from: #05213b;
    --decor-mid: #053a45;
    --decor-to: #006562;
    --halo-1: 139, 124, 246;
    --halo-2: 39, 207, 205;
    --signal: #5eead4;
    --signal-from: #99f6e4;
    --signal-to: #2dd4bf;
    --signal-rgb: 45, 212, 191;
    --signal-ink: #04312f;
}
:root[data-theme="dark"] {
    --topbar-bg: rgba(9, 27, 27, .96);
    --topbar-bg-mobile: rgba(9, 27, 27, .99);
    --topbar-shadow: 0 12px 34px rgba(0, 0, 0, .4);
    --brand-action: #0f766e;
    --brand-action-strong: #0b5f59;
    --brand-gradient-end: #0e6f68;
    --decor-from: #04121f;
    --decor-mid: #062832;
    --decor-to: #07403d;
}
:root[data-client-theme="azure"] {
    --brand-action: #1769e0; --brand-action-strong: #0c4fb8; --brand-gradient-end: #2672de;
    --decor-from: #0a1f45; --decor-mid: #0d2c60; --decor-to: #1453a8;
    --halo-1: 31, 176, 224; --halo-2: 139, 124, 246;
    --signal: #93c5fd; --signal-from: #dbeafe; --signal-to: #60a5fa; --signal-rgb: 96, 165, 250; --signal-ink: #0b2a5c;
}
:root[data-client-theme="azure"][data-theme="dark"] {
    --brand-action: #1769d2; --brand-action-strong: #0f58b9; --brand-gradient-end: #2672de;
    --decor-from: #07142b; --decor-mid: #0c2550; --decor-to: #123f86;
}
:root[data-client-theme="aurora"] {
    --brand-action: #6d4ee8; --brand-action-strong: #5034bd; --brand-gradient-end: #5a3fd6;
    --decor-from: #1b1240; --decor-mid: #2c1d6b; --decor-to: #4a32b0;
    --halo-1: 236, 72, 153; --halo-2: 34, 211, 238;
    --signal: #c4b5fd; --signal-from: #ede9fe; --signal-to: #a78bfa; --signal-rgb: 167, 139, 250; --signal-ink: #2a1366;
}
:root[data-client-theme="aurora"][data-theme="dark"] {
    --brand-action: #5b3fd9; --brand-action-strong: #4a31bd; --brand-gradient-end: #6d4ee8;
    --decor-from: #0e0a24; --decor-mid: #1f1550; --decor-to: #38268c;
}
:root[data-client-theme="orchid"] {
    --brand-action: #a0447c; --brand-action-strong: #7b2c5b; --brand-gradient-end: #8b3569;
    --decor-from: #2a0f22; --decor-mid: #4d1a3f; --decor-to: #7b2c5b;
    --halo-1: 251, 146, 60; --halo-2: 236, 72, 153;
    --signal: #f9a8d4; --signal-from: #fce7f3; --signal-to: #f472b6; --signal-rgb: 244, 114, 182; --signal-ink: #500724;
}
:root[data-client-theme="orchid"][data-theme="dark"] {
    --brand-action: #9b3d74; --brand-action-strong: #7b2c5b; --brand-gradient-end: #8b3569;
    --decor-from: #160912; --decor-mid: #36142c; --decor-to: #5e2449;
}
:root[data-client-theme="savanna"] {
    --brand-action: #55702f; --brand-action-strong: #3d5124; --brand-gradient-end: #465c29;
    --decor-from: #1b2410; --decor-mid: #2c3a1a; --decor-to: #465c29;
    --halo-1: 242, 184, 75; --halo-2: 150, 185, 82;
    --signal: #d9f99d; --signal-from: #ecfccb; --signal-to: #a3e635; --signal-rgb: 163, 230, 53; --signal-ink: #1a2e05;
}
:root[data-client-theme="savanna"][data-theme="dark"] {
    --brand-action: #4d6a2a; --brand-action-strong: #3d5124; --brand-gradient-end: #465c29;
    --decor-from: #0d1109; --decor-mid: #1f2a13; --decor-to: #34431f;
}
:root[data-client-theme="graphite"] {
    --brand-action: #3e6f78; --brand-action-strong: #2c535a; --brand-gradient-end: #36646c;
    --decor-from: #151c1e; --decor-mid: #20292b; --decor-to: #2c535a;
    --halo-1: 127, 184, 188; --halo-2: 198, 214, 92;
    --signal: #b6e3e5; --signal-from: #e0f2f3; --signal-to: #7fb8bc; --signal-rgb: 127, 184, 188; --signal-ink: #12302f;
}
:root[data-client-theme="graphite"][data-theme="dark"] {
    --brand-action: #36646c; --brand-action-strong: #2c535a; --brand-gradient-end: #2c535a;
    --decor-from: #080c0d; --decor-mid: #1b2527; --decor-to: #29464a;
}
.client-activity-toast[hidden] { display: none; }
.client-activity-toast.is-visible { opacity: 1; transform: none; }
/* Teinte par type ; pour une commande, le JS pose la couleur du reseau. */
.client-activity-toast[data-kind="signup"] { --activity-tone: #10b981; --activity-tone-soft: var(--ok-soft); }
.client-activity-toast[data-kind="payment"] { --activity-tone: #f59e0b; --activity-tone-soft: var(--warn-soft); }
/* Comete lumineuse qui fait le tour du liseré (contour anime). Seul transform
   est anime : la carte graphique s'en charge, et elle ne tourne que pendant
   que la vignette est visible. */
.client-activity-toast::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 440px;
    margin: -220px 0 0 -220px;
    background: conic-gradient(from 0deg, transparent 0 56%, color-mix(in srgb, var(--activity-tone) 92%, #ffffff) 76%, transparent 90%);
    animation: client-activity-ring 3.6s linear infinite paused;
}
.client-activity-toast.is-visible::before { animation-play-state: running; }
/* Panneau : halo doux a la couleur du reseau derriere le logo. */
.client-activity-toast::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 1.5px;
    right: 1.5px;
    bottom: 1.5px;
    left: 1.5px;
    border-radius: 14.5px;
    background:
        radial-gradient(150px 96px at 32px 50%, color-mix(in srgb, var(--activity-tone) 17%, transparent), transparent 72%),
        var(--panel);
}
@keyframes client-activity-ring { to { transform: rotate(1turn); } }
/* Rangee unique media + texte : c'est elle qui fait le fondu lors d'une rotation
   « en place » (la vignette ne glisse pas dehors/dedans entre deux evenements). */
.client-activity-row {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 auto;
    min-width: 0;
    transition: opacity .18s ease;
}
.client-activity-row.is-swapping { opacity: 0; }
.client-activity-media {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: visible;
    border-radius: 13px;
}
.client-activity-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--activity-tone) 20%, var(--line));
    border-radius: inherit;
    /* Vignettes de service transparentes : plaque claire mais ADOUCIE (une plaque
       blanche pure faisait une boite blanche criarde sur le panneau sombre). */
    background: color-mix(in srgb, #ffffff 86%, var(--activity-tone-soft));
}
.client-activity-media img[hidden] { display: none; }
.client-activity-icon {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: inherit;
    color: var(--activity-tone);
}
.client-activity-icon[hidden] { display: none; }
/* Tuile du reseau (celle de l'accueil, brand-tile.css) ou du type d'evenement. */
.client-activity-tile {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: inherit;
    color: #ffffff;
}
.client-activity-tile.tl-tuile-marque > svg { width: 52%; height: 52%; }
.client-activity-tile[data-visual="signup"],
.client-activity-tile[data-visual="payment"],
.client-activity-tile[data-visual="order"] {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 20px -10px var(--activity-tone);
}
.client-activity-tile[data-visual="signup"] { background: linear-gradient(150deg, #34d399, #059669); }
.client-activity-tile[data-visual="payment"] { background: linear-gradient(150deg, #fbbf24, #ea580c); }
.client-activity-tile[data-visual="order"] { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 82%, #ffffff), color-mix(in srgb, var(--brand) 82%, #000000)); }
/* Pastille de l'action, en bas a droite du logo : coeur, oeil, bulle... */
.client-activity-badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    padding: 2px;
    border-radius: 50%;
    background: var(--panel);
}
.client-activity-badge[hidden] { display: none; }
.client-activity-badge > [data-badge] {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(150deg, var(--badge-from, #60a5fa), var(--badge-to, #2563eb));
    box-shadow: 0 3px 8px -3px var(--badge-to, #2563eb);
}
.client-activity-badge svg { width: 11px; height: 11px; }
[data-badge="followers"] { --badge-from: #60a5fa; --badge-to: #2563eb; }
[data-badge="likes"] { --badge-from: #fb7185; --badge-to: #e11d48; }
[data-badge="views"] { --badge-from: #a78bfa; --badge-to: #7c3aed; }
[data-badge="comments"] { --badge-from: #2dd4bf; --badge-to: #0f766e; }
[data-badge="reactions"] { --badge-from: #fbbf24; --badge-to: #d97706; }
[data-badge="shares"] { --badge-from: #4ade80; --badge-to: #15803d; }
[data-badge="live"] { --badge-from: #f87171; --badge-to: #dc2626; }
[data-badge="signup"] { --badge-from: #fcd34d; --badge-to: #f59e0b; }
[data-badge="payment"] { --badge-from: #a78bfa; --badge-to: #6d28d9; }
[data-badge="order"] { --badge-from: #4ade80; --badge-to: #16a34a; }
/* Entree « pop » du logo puis de la pastille a chaque nouveau message. */
.client-activity-media.is-new .client-activity-icon,
.client-activity-media.is-new img { animation: client-activity-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.client-activity-media.is-new .client-activity-badge { animation: client-activity-pop .42s .16s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes client-activity-pop {
    from { opacity: 0; transform: scale(.55) rotate(-8deg); }
    to { opacity: 1; transform: none; }
}
/* Point « live » qui pulse dans le coin du media, facon ToutLike. Le point est
   dessine par ::after ; l'anneau (::before, dessous) ne bouge qu'en transform et
   opacity : il tourne sur la carte graphique au lieu de repeindre la page a chaque
   image (l'ancien box-shadow anime occupait le fil principal tant que le toast
   etait visible). Teinte pleine x opacite = l'ancien color-mix, aussi sur Chrome 109. */
.client-activity-live {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.client-activity-live::before,
.client-activity-live::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background: #22c55e;
}
.client-activity-live::before {
    opacity: 0;
    animation: client-activity-pulse 1.6s ease-in-out infinite;
}
.client-activity-live::after { border: 2px solid var(--panel); }
/* 10 px agrandi a 21 px, teinte a 55 % puis effacee. */
@keyframes client-activity-pulse {
    0%, 100% { transform: scale(1); opacity: .55; }
    70% { transform: scale(2.1); opacity: 0; }
}
.client-activity-copy { min-width: 0; display: grid; }
.client-activity-msg {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.36;
    text-wrap: pretty;
}
/* Ce que le client a recu (« 1 000 abonnés Instagram ») : gras + coup de
   surligneur a la couleur du reseau. */
.client-activity-msg strong {
    color: var(--ink-strong);
    font-weight: 800;
    background: linear-gradient(transparent 58%, color-mix(in srgb, var(--activity-tone) 28%, transparent) 0);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.client-activity-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}
.client-activity-link[hidden] { display: none; }
.client-activity-close {
    /* Cible tactile WCAG 44x44 REELLE ; les marges negatives la replient dans
       la pastille compacte sans reduire la zone cliquable. */
    flex: none;
    width: 44px;
    height: 44px;
    margin: -5px -6px -5px -4px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.client-activity-close:hover { background: var(--surface-2); color: var(--ink-strong); }
/* outline-offset NEGATIF : le toast a overflow:hidden, un anneau exterieur serait rogne. */
.client-activity-close:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
/* Ligne du bas : « ● Commande livrée · il y a 12 s ». Plus de barre de
   progression (2026-09-20) : l'age du dernier evenement avance vraiment. */
.client-activity-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
}
.client-activity-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: var(--ink-strong);
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.client-activity-title::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--activity-tone);
}
.client-activity-title:empty { display: none; }
.client-activity-time {
    flex: none;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.client-activity-title:not(:empty) + .client-activity-time::before { content: "·"; margin-right: 6px; }
@media (max-width: 560px) {
    /* Mobile : pastille encore plus petite, elle ne doit couvrir ni l'ecran ni
       la bulle du coin (coin 14 px + bulle 58 px + 8 px d'ecart). */
    .client-activity-toast {
        left: 12px;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: min(292px, calc(100vw - 92px));
        gap: 10px;
        padding: 8px 6px 8px 10px;
    }
    .client-activity-row { gap: 10px; }
    .client-activity-media { width: 38px; height: 38px; border-radius: 11px; }
    .client-activity-badge { width: 20px; height: 20px; right: -5px; bottom: -5px; }
    .client-activity-msg { font-size: 12.5px; line-height: 1.32; }
    .client-activity-close { width: 44px; height: 44px; margin: -6px -6px -6px -4px; }
}
/* Telephone : l'arrivee vient d'un peu plus bas, elle se remarque sans jamais
   provoquer de defilement horizontal (transform seul, aucune marge negative). */
@media (max-width: 560px) {
    .client-activity-toast:not(.is-visible) { transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
    /* Le :not() du bloc telephone est plus specifique : il faut le neutraliser
       explicitement, sinon « moins d'animations » laisserait passer le
       glissement d'arrivee. */
    .client-activity-toast,
    .client-activity-toast:not(.is-visible) { transition: opacity .12s linear; transform: none; }
    .client-activity-row { transition: none; }
    .client-activity-toast::before,
    .client-activity-media.is-new .client-activity-icon,
    .client-activity-media.is-new img,
    .client-activity-media.is-new .client-activity-badge { animation: none; }
    .client-activity-live::before { animation: none; }
}

/* Lien d'evitement clavier (accessibilite) */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--r-md);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-160%);
    transition: transform .2s var(--dash-ease, ease);
}
.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.field { margin-bottom: 15px; }
label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-strong);
}
.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
input, select, textarea {
    width: 100%;
    min-height: 46px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 13px;
    font: inherit;
    font-size: 14px;
    background: var(--panel);
    color: var(--ink);
    transition: border-color .18s var(--dash-ease), box-shadow .18s var(--dash-ease), background .18s var(--dash-ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}
input:hover:not(:focus):not(:disabled),
select:hover:not(:focus):not(:disabled),
textarea:hover:not(:focus):not(:disabled) {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
input:disabled, select:disabled, textarea:disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
    opacity: .75;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"],
.field.has-error input, .field.has-error select, .field.has-error textarea {
    border-color: var(--bad);
    background: var(--bad-soft);
}
input[aria-invalid="true"]:focus,
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus {
    border-color: var(--bad);
    box-shadow: 0 0 0 4px var(--bad-soft);
}

/* Licences et credits : le compte doit exister sur le site de l'outil avant la commande. */

/* Champ de commande qui attend une photo : bouton d'envoi sous le champ. Sobre
   (contour de marque, pas de fond plein) : l'action principale de la page reste
   le bouton « Commander ». */

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
:root[data-theme="dark"] select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%239fb2af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.input-wrap { position: relative; }
.input-wrap .input-lead {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: #94a3b8;
    pointer-events: none;
}
.input-wrap input, .input-wrap select { padding-left: 42px; }
.input-wrap input:focus ~ .input-lead, .input-wrap:focus-within .input-lead { color: var(--brand); }
.input-wrap .input-trail {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}
.input-wrap .input-trail:hover { color: var(--brand); background: var(--brand-soft); }
.input-wrap:has(.input-trail) input { padding-right: 46px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.form-errors {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
    border-radius: 10px;
    background: var(--bad-soft);
    color: var(--bad);
    font-size: 13px;
    font-weight: 600;
}

/* â”€â”€ Topbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    /* Fond quasi opaque, sans flou d'arriere-plan, a toutes les largeurs : sous
       un fond a 95-97 % le flou ne se voyait pas, mais il se recalculait a
       chaque image de defilement ou d'animation de l'en-tete (vieux PC sans
       carte graphique : 3 a 4 fois plus de processeur, mesure du 05/10).
       La couleur du theme (95-99 %) est posee sur le fond plein de la page :
       meme teinte, mais plus rien ne transparait quand on fait defiler (texte
       « Choisissez votre reseau » visible sous l'en-tete, 23/11/2026). */
    background: linear-gradient(var(--topbar-bg-mobile), var(--topbar-bg-mobile)), var(--bg, #15201e);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, var(--topbar-shadow);
}
.topbar-inner {
    width: min(1280px, calc(100% - 28px));
    min-height: 64px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    color: #fff;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}
.brand:hover { color: #fff; text-decoration: none; }

.brand-logo {
    display: block;
    width: auto;
    max-width: 178px;
    max-height: 44px;
    object-fit: contain;
    border-radius: 8px;
}
@media (max-width: 480px) {
    .brand-logo { max-width: 140px; max-height: 38px; }
}
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.nav-main, .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
/* Capsules : chaque catalogue est un bouton a part entiere, la page en cours
   est la seule capsule pleine. Pas de boite autour du menu. */
.nav-main {
    justify-self: center;
    width: max-content;
    max-width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 4px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-main::-webkit-scrollbar, .nav-actions::-webkit-scrollbar { display: none; }
.nav-actions { justify-content: flex-end; }
.nav .nav-link,
.nav .nav-summary,
.nav .nav-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .92);
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s var(--dash-ease), color .18s var(--dash-ease), box-shadow .18s var(--dash-ease);
}
.nav-main .nav-link {
    min-height: 42px;
    padding: 0 17px 0 14px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    transition: background .18s var(--dash-ease), color .18s var(--dash-ease), border-color .18s var(--dash-ease);
}
.nav-main .nav-link:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .30);
}
.nav-main .nav-link > .icon {
    width: 18px;
    height: 18px;
    opacity: .9;
    transition: opacity .18s var(--dash-ease);
}
.nav-main .nav-link:focus-visible {
    outline-color: var(--signal);
    outline-offset: 2px;
}
.nav .nav-link[aria-current="page"],
.nav .nav-link.is-current,
.nav .nav-link.active {
    background: linear-gradient(135deg, var(--signal-from), var(--signal));
    border-color: rgba(255, 255, 255, .5);
    color: var(--signal-ink);
    font-weight: 700;
}
.nav .nav-link[aria-current="page"] .icon,
.nav .nav-link.is-current .icon,
.nav .nav-link.active .icon {
    opacity: 1;
}
.nav .nav-link:hover, .nav .nav-summary:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
}
.nav .nav-link svg, .nav .nav-summary svg, .nav .nav-pill svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}
.nav-details { position: relative; flex: 0 0 auto; }
.nav-summary { list-style: none; }
.nav-summary::-webkit-details-marker { display: none; }
.nav-caret {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .75;
    transition: transform .2s var(--dash-ease);
}
.nav-details[open] .nav-caret { transform: rotate(225deg) translateY(-1px); }
@keyframes menu-pop {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: none; }
}
/* ── Menu du compte (ToutLike, 23/11/2026) ─────────────────────────────
   Le menu n'existe qu'au-dessus de 720 px (en dessous : tiroir ☰).
   « Tableau de bord » et « Mon profil » en haut, filet, Mes commandes →
   Mes factures → Parrainage, « Ajouter du solde » en bloc Aurore, Déconnexion
   sous un filet. Chaque ligne porte son icône deux tons dans un carré
   arrondi ; survol ou focus : une onde part de la gauche, un chevron glisse.
   Ouverture : le panneau tombe avec un léger rebond, les lignes arrivent à
   la suite. Seuls transform et opacity sont animés (vieux PC). */
/* Chrome 131+ masque le contenu d'un <details> fermé sans le retirer : sans
   cette règle, l'ouverture ne rejouerait ses animations que la première fois. */
.account-menu:not([open])::details-content { display: none; }
.nav-menu {
    --menu-track: rgba(var(--brand-rgb), .34);
    --menu-node: rgba(var(--brand-rgb), .38);
    --menu-ring: rgba(var(--brand-rgb), .18);
    --menu-wave: rgba(var(--brand-rgb), .18);
    --menu-wave-mid: rgba(var(--brand-rgb), .07);
    --menu-on-brand: #ffffff;
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    z-index: 80;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 14px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(8, 27, 61, .2), 0 2px 6px rgba(8, 27, 61, .08);
    font-family: var(--font-head);
    transform-origin: 50% -18px;
    animation: menu-drop .42s cubic-bezier(.22, 1, .36, 1) backwards;
}
:root[data-theme="dark"] .nav-menu {
    --menu-track: rgba(var(--brand-rgb), .4);
    --menu-node: rgba(var(--brand-rgb), .46);
    --menu-ring: rgba(var(--brand-rgb), .24);
    --menu-wave: rgba(var(--brand-rgb), .26);
    --menu-wave-mid: rgba(var(--brand-rgb), .09);
    --menu-on-brand: #0b172a;
    border-color: var(--line);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .54);
}
.menu-rule {
    display: block;
    height: 1px;
    margin: 5px 8px;
    background: var(--line);
    transform-origin: left center;
    animation: menu-rule-in .22s cubic-bezier(.2, .8, .2, 1) .05s backwards;
}
.menu-track { position: relative; display: grid; }
/* z-index : l'onde (z-index -1) reste dans la ligne, sous son contenu. */
.menu-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 12px 0 7px;
    border-radius: 22px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    animation: menu-row-in .2s cubic-bezier(.2, .8, .2, 1) .04s backwards;
}
.menu-track > a:nth-of-type(1) { animation-delay: .08s; }
.menu-track > a:nth-of-type(2) { animation-delay: .12s; }
.menu-track > a:nth-of-type(3) { animation-delay: .16s; }
.menu-item::before {
    content: "";
    position: absolute;
    top: 1px;
    right: 0;
    bottom: 1px;
    left: 0;
    z-index: -1;
    border-radius: 22px;
    background: linear-gradient(90deg, var(--menu-wave) 0%, var(--menu-wave-mid) 58%, transparent 100%);
    opacity: 0;
    transform: scaleX(.72);
    transform-origin: left center;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
}
/* Chevron dessiné en bordures : aucun glyphe lu par les lecteurs d'écran. */
.menu-item::after {
    content: "";
    flex: none;
    width: 4px;
    height: 4px;
    margin-right: 4px;
    border-top: 1.5px solid var(--brand);
    border-right: 1.5px solid var(--brand);
    opacity: 0;
    transform: translateX(-5px) rotate(45deg);
    transition: opacity .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.menu-item:hover, .menu-topup:hover { text-decoration: none; }
.menu-item:is(:hover, :focus-visible)::before { opacity: 1; transform: scaleX(1); }
.menu-item:is(:hover, :focus-visible)::after { opacity: .85; transform: translateX(0) rotate(45deg); }
.menu-item:is(:hover, :focus-visible, .is-active) { color: var(--brand-strong); }
.menu-item.is-active { font-weight: 650; }
.menu-item-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--menu-node);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
}
.menu-item:is(:hover, :focus-visible, .is-active) .menu-item-icon {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--menu-on-brand);
    box-shadow: 0 0 0 3px var(--menu-ring);
}
.menu-item.is-active .menu-item-icon { box-shadow: 0 0 0 4px var(--menu-ring); }
.nav-menu .icon { width: 16px; height: 16px; flex: none; stroke-width: 1.8; }
.menu-item-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.menu-item:is(:hover, :focus-visible) > .menu-item-label { transform: translateX(3px); }
/* « Ajouter du solde » : bloc bleu nuit du bandeau du tableau de bord.
   Le relief et l'anneau or du survol vivent sur ::after (opacité seule). */
.menu-topup {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 4px 10px 4px 7px;
    border: 1px solid rgba(var(--signal-rgb), .22);
    border-radius: 14px;
    background: var(--acct-band);
    box-shadow: 0 8px 18px rgba(3, 40, 46, .24);
    color: #ffffff;
    text-decoration: none;
    animation: menu-row-in .2s cubic-bezier(.2, .8, .2, 1) .2s backwards;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.menu-topup::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-radius: inherit;
    box-shadow: 0 11px 24px rgba(3, 40, 46, .32), 0 0 0 2px rgba(var(--signal-rgb), .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.menu-topup:is(:hover, :focus-visible) { transform: translateY(-1.5px); }
.menu-topup:is(:hover, :focus-visible)::after { opacity: 1; }
.menu-topup.is-active { outline: 2px solid var(--signal); outline-offset: 1px; }
.menu-item:active, .menu-topup:active, .menu-logout button:active { transform: scale(.985); }
.menu-topup .menu-item-icon {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--signal-from) 0%, var(--signal) 55%, var(--signal-to) 100%);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
    color: var(--signal-ink);
}
.menu-topup-text {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    line-height: 1.2;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.menu-topup:is(:hover, :focus-visible) .menu-topup-text { transform: translateX(2.5px); }
.menu-topup .menu-item-label { font-size: 13.8px; font-weight: 700; }
.menu-topup-low { color: #ffaba0; font-size: 11.5px; font-weight: 650; }
.menu-topup-currency {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(var(--signal-rgb), .16);
    box-shadow: inset 0 0 0 1px rgba(var(--signal-rgb), .42);
    color: var(--signal-from);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    white-space: nowrap;
}
.menu-logout { margin: 6px 0 0; padding-top: 5px; border-top: 1px solid var(--line); }
/* Simple ligne rouge sans pastille, libellé aligné sur ceux de la piste. */
.menu-logout button {
    display: flex;
    align-items: center;
    gap: 19px;
    width: 100%;
    height: 44px;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--bad);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    animation: menu-row-in .2s cubic-bezier(.2, .8, .2, 1) .24s backwards;
}
.menu-logout button:hover { background: linear-gradient(90deg, var(--bad-soft) 0%, transparent 96%); }
@keyframes menu-drop {
    0% { opacity: 0; transform: translateY(-14px) scale(.97); }
    62% { opacity: 1; transform: translateY(3px) scale(1); }
    82% { transform: translateY(-1px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes menu-rule-in { from { opacity: 0; transform: scaleX(.4); } }
@keyframes menu-row-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
    .nav-menu, .menu-rule, .menu-item, .menu-topup, .menu-logout button { animation: none; }
    .menu-item::before, .menu-item::after, .menu-item-label, .menu-topup, .menu-topup::after, .menu-topup-text { transition: none; }
}
.nav-pill {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
}
.account-menu { width: min(268px, calc(100vw - 28px)); }
.account-menu .nav-summary,
.account-menu .nav-menu { width: 100%; }
.account-menu .nav-summary {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    transition: background .18s var(--dash-ease), border-color .18s var(--dash-ease), box-shadow .18s var(--dash-ease);
}
.account-menu .nav-summary:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .30);
}
.account-menu[open] .nav-summary {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 4px 8px rgba(0, 40, 40, .24);
}
.currency-pill { padding-inline: 13px; font-weight: 700; letter-spacing: .03em; }
/* ── Sélecteur de langue à drapeau (choix du propriétaire, 14/11/2026) ──────
   Pastille drapeau + code dans l'en-tête (au-dessus de 720 px) et dans la
   barre du bas du tiroir ☰ ; menu des langues, coche sur l'actuelle. Drapeau
   du pays du visiteur pour sa langue (App\Support\LocaleFlags). */
.lang-menu .lang-chip {
    gap: 8px;
    padding: 0 11px 0 9px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    font-weight: 700;
    letter-spacing: .04em;
}
.lang-menu .lang-chip:hover { background: rgba(255, 255, 255, .18); }
.lang-menu[open] .lang-chip { background: rgba(255, 255, 255, .20); border-color: rgba(255, 255, 255, .34); }
.lang-flag {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff center / cover no-repeat;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 1px 3px rgba(0, 0, 0, .25);
}
.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 196px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 18px 40px rgba(6, 24, 64, .22), 0 2px 6px rgba(6, 24, 64, .08);
    transform-origin: top right;
    animation: menu-pop .18s var(--dash-ease);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px 0 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.lang-option:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.lang-option:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.lang-option.is-current { background: var(--brand-soft); color: var(--brand); }
.lang-option .lang-flag { width: 22px; height: 22px; box-shadow: 0 0 0 1px var(--line); }
.lang-name { flex: 1 1 auto; }
.lang-check { flex: none; color: var(--brand); }
/* Tiroir ☰ : pastille claire comme le bouton thème, menu ouvert vers le haut. */
.drawer-foot .lang-menu { margin-inline: auto; }
.drawer-foot .lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.drawer-foot .lang-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.drawer-foot .lang-chip .lang-flag { box-shadow: 0 0 0 1px var(--line); }
.drawer-foot .lang-list { top: auto; bottom: calc(100% + 8px); right: auto; left: 50%; translate: -50% 0; transform-origin: bottom center; }
@media (hover: hover) { .drawer-foot .lang-chip:hover { background: var(--surface-2); } }
@media (prefers-reduced-motion: reduce) { .lang-list { animation: none; } }
.topbar .button, .topbar .button.secondary {
    min-height: 42px;
    padding-inline: 14px;
    border-radius: 9px;
    font-size: 12.5px;
    box-shadow: none;
}
.topbar .button.ghost-light {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
}
.topbar .button.ghost-light:hover { background: rgba(255, 255, 255, .18); transform: none; }
.topbar .button.accent-cta {
    background: var(--panel);
    border-color: transparent;
    color: var(--brand-strong);
    box-shadow: 0 8px 18px rgba(0, 40, 40, .28);
}
.topbar .button.accent-cta:hover { background: var(--brand-soft); color: var(--brand-strong); transform: none; }

/* â”€â”€ Page scaffolding â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page, .footer-inner, .tool-dock-inner, .utility-inner, .partner-strip-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}
.page { flex: 1 0 auto; padding: 28px 0 56px; }
.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;
}
.header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.content { max-width: 760px; }
.content p { margin: 0 0 12px; }
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.metric {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s var(--dash-ease), box-shadow .18s var(--dash-ease);
}
.metric strong { display: block; font-family: var(--font-head); font-size: 24px; overflow-wrap: anywhere; }
.announcement { background: var(--brand-soft); border-color: rgba(var(--brand-rgb), .25); }
.announcement.warning { background: var(--warn-soft); border-color: transparent; }
.announcement.success { background: var(--ok-soft); border-color: transparent; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table th, .table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.table th {
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
.table tbody tr { transition: background .18s var(--dash-ease); }
.table tbody tr:hover { background: var(--brand-soft); }
.table tr:last-child td { border-bottom: 0; }

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 116px;
    min-height: 27px;
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--status-color) 44%, var(--line));
    border-radius: 999px;
    background: var(--status-bg);
    background: color-mix(in srgb, var(--status-color) 18%, var(--panel));
    color: var(--status-color);
    color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong));
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}
:root[data-theme="dark"] .order-status-pill {
    background: color-mix(in srgb, var(--status-color) 22%, var(--panel));
    border-color: color-mix(in srgb, var(--status-color) 52%, var(--line));
    color: color-mix(in srgb, var(--status-color) 45%, #ffffff);
}
/* Coche ou croix tracée à l'arrivée d'une commande (tiroir de suivi). */
.order-rail-mark {
    width: 8px;
    height: 8px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.order-rail-mark path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: order-rail-draw .3s ease-out .55s forwards;
}
.order-rail-mark path + path { animation-delay: .7s; }
.order-status-pill.is-new { animation: order-pill-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes order-rail-draw { to { stroke-dashoffset: 0; } }
@keyframes order-rail-spark {
    0% { opacity: 1; transform: scale(.25); }
    65% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.1); }
}
@keyframes order-rail-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
@keyframes order-pill-pop {
    0% { transform: scale(.86); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .order-status-pill.is-new { animation: none; }
    .order-rail-mark path { animation: none; stroke-dashoffset: 0; }
}
.order-status-line { display: inline-flex; align-items: center; gap: 10px; }
.order-live-meta,
.order-live-fx,
.order-live-wash,
.order-live-line,
.order-live-sweep,
.order-live-clock { display: none; }
.order-live-pct {
    min-width: 44px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong));
}
:root[data-theme="dark"] .order-live-pct { color: color-mix(in srgb, var(--status-color) 45%, #ffffff); }
.order-live-dots { display: inline-flex; align-items: center; gap: 5px; }
.order-live-dot {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 2px solid color-mix(in srgb, var(--line) 85%, transparent);
    border-radius: 50%;
    background: var(--panel);
    transition: background-color .3s ease, border-color .3s ease;
}
.order-live-dot:first-child,
.order-live-meta[data-order-step="running"] .order-live-dot:nth-child(2),
.order-live-meta[data-order-step="done"] .order-live-dot { border-color: var(--status-color); background: var(--status-color); }
.order-live-meta[data-order-step="waiting"] .order-live-dot:nth-child(2) { border-color: var(--status-color); }
.order-live-dot .order-rail-mark { width: 6px; height: 6px; }
/* Barre d'avancement d'une commande en cours sur les surfaces du tiroir de suivi.
   Tant que la commande tourne, un reflet parcourt la partie remplie et la perle de
   tete pulse : transform et opacity seulement, pour rester fluide sur les vieux
   ordinateurs. */
.order-live-surface .order-live-meta { display: inline-flex; align-items: center; gap: 9px; transition: opacity .35s ease; }
.order-live-surface .order-live-wash,
.order-live-surface .order-live-line {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.22, .8, .36, 1), opacity .6s ease;
}
.order-live-surface .order-live-wash {
    top: 0;
    bottom: 0;
    overflow: hidden;
    transform: scaleX(calc(var(--p, 0) / 100));
    background: linear-gradient(90deg, color-mix(in srgb, var(--status-color) 9%, transparent) 0, color-mix(in srgb, var(--status-color) 9%, transparent) calc(100% - 36px), transparent);
}
.order-live-surface .order-live-wash::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--status-color) 20%, transparent), transparent);
    transform: translateX(-100%);
    animation: order-live-flow 2.6s cubic-bezier(.45, .05, .35, 1) .4s infinite;
}
.order-live-surface .order-live-line {
    bottom: 0;
    height: 2px;
    border-radius: 0 3px 3px 0;
    background: var(--status-color);
    transform: translateX(calc((var(--p, 0) - 100) * 1%));
}
.order-live-surface .order-live-line::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-color);
    transition: opacity .3s ease;
}
.order-live-surface .order-live-line::before {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -4px;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid var(--status-color);
    border-radius: 50%;
    opacity: 0;
    animation: order-live-bead 1.9s cubic-bezier(.2, .6, .35, 1) infinite;
}
.order-live-surface[data-order-effect] .order-live-line::after { opacity: 0; }
.order-live-surface[data-order-effect] .order-live-line::before,
.order-live-surface[data-order-effect] .order-live-wash::after,
.order-live-surface.is-live-done .order-live-line::before,
.order-live-surface.is-live-done .order-live-wash::after { animation: none; opacity: 0; }
.order-live-surface[data-order-effect] .order-live-sweep {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--status-color) 24%, transparent), transparent);
    transform: translateX(-110%);
    animation: order-live-sweep .9s cubic-bezier(.4, 0, .2, 1) .25s both;
}
.order-live-surface .order-live-clock {
    display: inline;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong));
}
:root[data-theme="dark"] .order-live-surface .order-live-wash {
    background: linear-gradient(90deg, color-mix(in srgb, var(--status-color) 14%, transparent) 0, color-mix(in srgb, var(--status-color) 14%, transparent) calc(100% - 36px), transparent);
}
:root[data-theme="dark"] .order-live-surface .order-live-wash::after {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--status-color) 30%, transparent), transparent);
}
:root[data-theme="dark"] .order-live-surface[data-order-effect] .order-live-sweep {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--status-color) 32%, transparent), transparent);
}
:root[data-theme="dark"] .order-live-surface .order-live-clock { color: color-mix(in srgb, var(--status-color) 45%, #ffffff); }
.order-live-surface[data-order-effect] .order-live-dot:last-child {
    display: grid;
    place-items: center;
    transform: scale(1.9);
    animation: order-live-dot-pop .5s cubic-bezier(.34, 1.56, .64, 1) .38s both;
}
.order-live-surface[data-order-effect="fail"] .order-live-dots { animation: order-rail-shake .42s ease-in-out .38s both; }
.order-live-surface[data-order-effect="fail"] .order-live-pct { visibility: hidden; }
.order-live-surface.is-live-done .order-live-wash,
.order-live-surface.is-live-done .order-live-line { opacity: 0; }
.order-live-surface.is-live-done .order-live-meta { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
@keyframes order-live-sweep {
    from { transform: translateX(-110%); }
    to { transform: translateX(300%); }
}
@keyframes order-live-dot-pop {
    0% { transform: scale(1); }
    55% { transform: scale(2.3); }
    100% { transform: scale(1.9); }
}
@keyframes order-live-flow {
    from { transform: translateX(-100%); }
    to { transform: translateX(240%); }
}
@keyframes order-live-bead {
    0% { opacity: .7; transform: scale(.5); }
    75%, 100% { opacity: 0; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
    .order-live-surface .order-live-wash,
    .order-live-surface .order-live-line { transition: none; }
    .order-live-surface .order-live-wash::after,
    .order-live-surface .order-live-line::before { animation: none; opacity: 0; }
    .order-live-surface[data-order-effect] .order-live-dot:last-child,
    .order-live-surface[data-order-effect="fail"] .order-live-dots { animation: none; }
    .order-live-surface[data-order-effect] .order-live-sweep { display: none; }
}
.order-id-button,
.order-copy-button {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.order-id-button {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--brand-strong);
    letter-spacing: -.01em;
}
.order-id-button:hover { color: var(--brand); text-decoration: underline; }

/* Détail d'une facture ou d'un mouvement (fenêtre et page) ; les listes sont
   dans « Espace client A », section « Factures et mouvements ». */
.finance-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.finance-type-pill.type-credit { color: #05664b; background: rgba(47, 172, 125, .16); }
.finance-type-pill.type-debit { color: #c01f27; background: rgba(224, 36, 40, .12); }
.finance-money {
    font-family: var(--font-mono);
    font-weight: 800;
    white-space: nowrap;
}
.finance-money.credit { color: #05664b; }
.finance-money.debit { color: #c01f27; }
:root[data-theme="dark"] .finance-type-pill.type-credit,
:root[data-theme="dark"] .finance-money.credit { color: var(--brand-bright); }
:root[data-theme="dark"] .finance-type-pill.type-debit,
:root[data-theme="dark"] .finance-money.debit { color: #ff8f92; }
.finance-detail-page { display: grid; gap: 20px; min-width: 0; }
.finance-detail-panel { padding: 20px; }
.finance-detail-panel h2 { margin: 0 0 16px; font-size: 20px; }

.invoice-detail-page-panel { padding: 0; overflow: hidden; }
dialog.modal.order-detail-modal.invoice-detail-modal { width: min(620px, calc(100vw - 24px)); }
.invoice-detail-modal-card [data-invoice-dialog-body] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.invoice-detail-modal-card [data-invoice-dialog-body][aria-busy="true"] { padding: 18px 20px 20px; }
.invoice-detail-content { display: grid; gap: 16px; }
.invoice-detail-modal-card .invoice-detail-content { padding: 18px 20px 20px; }
.invoice-detail-page-panel .invoice-detail-content { padding: 24px; }
.invoice-detail-amount-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
    border-radius: var(--r-md);
    background: var(--brand-soft);
}
.invoice-detail-amount-card > div { min-width: 0; }
.invoice-detail-amount-card > div > span,
.invoice-detail-section h3,
.invoice-detail-meta dt,
.invoice-statement-item dt {
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.invoice-detail-amount-card > div > strong {
    display: block;
    margin-top: 4px;
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: clamp(22px, 4vw, 29px);
    line-height: 1.1;
}
.invoice-detail-section {
    padding-top: 15px;
    border-top: 1px solid var(--line);
}
.invoice-detail-section h3 { margin: 0 0 10px; }
.invoice-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--line);
}
.invoice-detail-meta > div {
    min-width: 0;
    padding: 12px 13px;
    background: var(--panel);
}
.invoice-detail-meta dd {
    margin: 5px 0 0;
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.invoice-detail-meta .invoice-detail-id {
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 900;
}
.invoice-detail-reference dd { font-family: var(--font-mono); font-size: 11.5px; }
.invoice-statement-list { display: grid; gap: 10px; }
.invoice-statement-item {
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.invoice-statement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.invoice-statement-head time { color: var(--muted); font-size: 11.5px; }
.invoice-statement-item dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.invoice-statement-item dl > div { min-width: 0; }
.invoice-statement-item dd { margin: 4px 0 0; }
.invoice-statement-empty { margin: 0; color: var(--muted); font-size: 13px; }

.payment-return-page {
    width: min(860px, 100%);
    margin: 0 auto;
    gap: 24px;
}
.payment-return-card {
    --payment-state: var(--warn);
    --payment-state-soft: var(--warn-soft);
    padding: 0;
    overflow: hidden;
    border-top: 4px solid var(--payment-state);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.payment-return-card.status-paid {
    --payment-state: var(--ok);
    --payment-state-soft: var(--ok-soft);
}
.payment-return-card.status-failed,
.payment-return-card.status-cancelled {
    --payment-state: var(--bad);
    --payment-state-soft: var(--bad-soft);
}
.payment-return-outcome {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 24px;
    background: color-mix(in srgb, var(--payment-state-soft) 56%, var(--panel));
}
.payment-return-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--payment-state) 28%, var(--line));
    border-radius: var(--r-md);
    color: var(--payment-state);
    background: color-mix(in srgb, var(--payment-state-soft) 72%, var(--panel));
}
.payment-return-message { min-width: 0; }
.payment-return-message h2 {
    margin: 0 0 4px;
    color: var(--ink-strong);
    font-size: 20px;
}
.payment-return-message p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.payment-return-outcome .order-status-pill { align-self: start; }
.payment-return-meta dt {
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.payment-return-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}
.payment-return-meta > div {
    min-width: 0;
    padding: 16px 24px;
}
.payment-return-meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
.payment-return-meta > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.payment-return-meta dd {
    margin: 4px 0 0;
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.payment-return-meta .payment-return-id {
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 900;
}
.payment-return-reference dd {
    font-family: var(--font-mono);
    font-size: 11.5px;
}
.payment-return-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 76%, var(--panel));
}
.payment-return-actions .button {
    min-width: 176px;
    box-shadow: none;
}

.order-detail-page-panel { padding: 0; overflow: hidden; }
dialog.modal.order-detail-modal { width: min(540px, calc(100vw - 20px)); }
.order-detail-modal-card.modal-card {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, calc(100dvh - 24px));
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--panel);
    border-radius: var(--r-lg);
}
.order-detail-modal-card .modal-close {
    top: 13px;
    right: 13px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-strong);
    box-shadow: 0 3px 10px rgba(2, 38, 36, .3);
}
.order-detail-modal-card .modal-close:hover {
    background: var(--panel);
    color: var(--accent);
}
.order-detail-modal-card > h2 {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 56px 14px 20px;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand));
    color: #fff;
    font-size: 16px;
    letter-spacing: 0;
}
/* La fiche arrive dans [data-order-dialog-body], entre la carte et le contenu :
   sans ces regles ce conteneur grandit librement, le contenu ne defile jamais et
   la carte (overflow:hidden) coupe le bas — bouton de remboursement inatteignable
   sur un petit ecran. Il doit donc transmettre la hauteur bornee. */
.order-detail-modal-card > [data-order-dialog-body] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.order-detail-content { display: grid; gap: 10px; }
.order-detail-modal-card .order-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 15px 18px 18px;
}
.order-detail-service {
    margin: 0;
    color: var(--ink-strong);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}
.order-detail-amount-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    border-radius: var(--r-md);
    background: var(--brand-soft);
}
/* Montant + pastille de statut sur la MEME ligne : carte plus courte, modal
   moins charge. La pastille se replie dessous si le montant est trop long. */
.order-detail-amount-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-width: 0;
}
.order-detail-section {
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
}
.order-detail-amount-card > span,
.order-detail-section h3,
.order-timeline-list dt,
.order-field-list span {
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.order-detail-amount-card strong {
    display: block;
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.2;
}
.order-detail-amount-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}
.order-detail-section h3 { margin: 0 0 8px; }
.order-timeline-list,
.order-field-list {
    display: grid;
    gap: 0;
    margin: 0;
}
.order-timeline-list div,
.order-field-list div {
    display: grid;
    grid-template-columns: minmax(92px, .34fr) minmax(0, 1fr);
    gap: 6px 12px;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}
.order-timeline-list div:first-child,
.order-field-list div:first-child { padding-top: 0; }
.order-timeline-list div:last-child,
.order-field-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.order-timeline-list dd,
.order-field-list strong {
    margin: 0;
    color: var(--ink-strong);
    font-weight: 700;
    overflow-wrap: anywhere;
}
.order-duration { color: var(--ok) !important; }
.order-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.order-detail-section-head h3 { margin: 0; }
.order-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    border-radius: 999px;
    color: var(--brand-strong);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
}
.order-copy-button:hover { background: var(--brand-soft); border-color: var(--brand); text-decoration: none; }
.order-result-box {
    margin: 0 0 4px;
    padding: 12px 13px;
    min-height: 48px;
    max-height: min(34dvh, 260px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 600;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* Resultat presente : acces de location (identifiant / mot de passe), code
   d'activation, texte traduit avec l'original accessible. Les valeurs sont en
   chasse fixe (l/1, O/0) et chacune a son bouton de copie. */
.order-access { display: grid; gap: 8px; margin: 0 0 8px; }
.order-access-row {
    display: grid;
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
    gap: 6px 12px;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.order-access-row dt { margin: 0; color: var(--muted); font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.order-access-row dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin: 0; }
.order-access-row code,
.order-code code {
    font-family: var(--font-mono);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-strong);
    overflow-wrap: anywhere;
    user-select: all;
}
.order-copy-mini { flex: none; min-height: 28px; padding: 3px 10px; font-size: 11px; }
.order-code {
    margin: 0 0 8px;
    padding: 14px 16px;
    border: 1px dashed var(--brand);
    border-radius: var(--r-md);
    background: var(--brand-soft);
    text-align: center;
}
.order-code code { font-size: 18px; letter-spacing: .04em; }
.order-result-hint { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-result-frame { margin: 0 0 6px; color: var(--ink-strong); font-size: 13.5px; font-weight: 700; line-height: 1.45; }

.order-result-original-label { margin: 8px 0 0; color: var(--muted); font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.order-result-box-original { margin-top: 6px; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
    .order-access-row { grid-template-columns: 1fr; }
    .order-code code { font-size: 16px; }
}
/* « Loupe » (25/10/2026) : cause probable d'un refus, sous la reponse. Une
   ligne ; « Que faire ? » deplie les etapes. En attente, un reflet passe sur la
   reponse et la loupe la parcourt. transform/opacity seulement (vieux PC). */
.order-hint-slot { margin: 10px 0 2px; }

.order-result-box.is-scanning { position: relative; z-index: 0; overflow-x: hidden; }
.order-result-box.is-scanning::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 42%;
    /* Couleur du theme a 13 % : --brand-soft se confondait avec le fond de la reponse. */
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: .13;
    pointer-events: none;
    transform: translateX(-100%);
    animation: orderHintSweep 1.6s cubic-bezier(.45, 0, .25, 1) infinite;
}

@keyframes orderHintSweep { from { transform: translateX(-100%); } to { transform: translateX(240%); } }

@media (prefers-reduced-motion: reduce) {
    .order-result-box.is-scanning::before { display: none; }
    
}
/* Vignette compacte : la photo ne doit jamais voler la place de la reponse
   (regle proprietaire 29/08). Clic = image en taille reelle, nouvel onglet. */
/* Piege a robots des formulaires : hors ecran, jamais display:none (certains
   bots detectent et sautent les champs display:none). */
.hp-trap { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.order-result-media { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.order-result-media a { display: block; line-height: 0; }
.order-result-media img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
    display: block;
}

/* â”€â”€ Icon boxes & tiles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.icon { flex: 0 0 auto; }

/* â”€â”€ Bandes home, cartes services, boutique â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.group-card, .service-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.service-card {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--dash-ease), box-shadow .2s var(--dash-ease), border-color .2s var(--dash-ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .35); }

/* Cartes de hauteur uniforme : titre + sous-titre sur une seule ligne (fin tronquee) */

/* Real logo tiles are transparent (icons « sans fond ») — show the card surface, not the teal fallback fill. */

/* Catalogue global : une section par type de service (jamais melanges) */

.nav-main .nav-link:hover > .icon {
    opacity: 1;
}
/* La capsule en cours est deja pleine : au survol elle s'eclaircit, elle ne
   change pas de couleur (sinon la page en cours semble se deplacer). */
.nav-main .nav-link[aria-current="page"]:hover,
.nav-main .nav-link.is-current:hover,
.nav-main .nav-link.active:hover {
    background: linear-gradient(135deg, var(--signal-from), var(--signal));
    border-color: rgba(255, 255, 255, .6);
    color: var(--signal-ink);
    filter: brightness(1.07);
}

/* Survol « Reflet » : un éclat traverse la vignette, une seule fois par survol.
   transform/opacity seulement (budget vieux PC), rien ne tourne au repos ; à la
   sortie, l'éclat repart hors champ sans transition (rien ne se rejoue). */

/* Service ajoute depuis moins de 14 jours : pastille doree sur le coin de la
   vignette, la meme que sur l'accueil en plus petit. Pas de liseré ici. */

/* ── Carte catalogue « Mix-1 » ──────────────────────────────────────────────
   Nom toujours entier : tête grasse, queue légère, taille choisie par le
   serveur selon la longueur (is-d1 à is-d3 ordinateur, is-m1 à is-m4 mobile).
   Pied pleine largeur sous l'image : barres de vitesse + délai court ·
   pointillé · prix. data-speed (0 à 4) donne l'encre et le tempo. Le même pied
   sert aux grandes cartes de l'accueil (.nx-card), d'où les :is(). */

/* margin auto = centré verticalement, sans jamais rogner le haut d'un nom qui
   déborderait (justify-content: safe center n'existe pas dans Chrome 109). */

/* Pointillé vitesse -> prix ; la bande de points qui coule dort dessous. */

/* Survol (ordinateur) : le pointillé s'efface, les points coulent à la vitesse
   du délai, les barres allumées respirent. Rien ne bouge au repos. */

/* Écran tactile : une seule coulée quand la carte entre à l'écran (is-flowing,
   posée par le catalogue après la levée du voile), puis le pointillé revient. */

/* Fix responsive : quand le bloc epingle / la liste devient etroit, le prix passe
   SOUS le nom pour ne pas ecraser la colonne du titre (sinon le nom se casse
   caractere par caractere, en vertical). Base sur la largeur reelle du bloc. */

.home-action-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 34px;
}
.home-action-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.home-action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.home-action-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}
.home-action-icon .icon { width: 46%; height: 46%; }

/* Filtre categorie : dropdown custom (remplace le <select> natif) */
.cat-select { position: relative; }

/* Filtrage client : masquage fiable meme sur les elements display:grid/flex */
.shop-service-row[hidden],
.service-type-section[hidden],
.services-filter-empty[hidden],
[data-filter-actions][hidden] { display: none !important; }

/* Catalogue en cours de chargement : l'onde.
   Trois fantomes prennent la place exacte des cartes a venir, et chacun porte
   SON liseré de lumiere, decale de 180 ms : l'onde traverse la rangee au lieu
   de tourner sur place. Le trait est un vrai degrade conique qui tourne
   derriere le cadre ; un cache interieur ne laisse voir que 1,5 px. On
   n'anime que transform et opacity, jamais une largeur ni une ombre. */

/* La carte fantome reprend la geometrie reelle d'une carte de service : la
   grille ne bouge pas d'un pixel quand la vraie carte prend sa place. */

/* La pastille remplace le bouton pendant le chargement : trois perles qui
   respirent, dans le langage des capsules du menu. */

/* â”€â”€ Commande / factures â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 22px;
    align-items: start;
}
.order-layout { grid-template-columns: minmax(0, 1fr) 330px; }
.order-layout > * { min-width: 0; }

/* Halo partagé par l'en-tête et la carte description. */

/* En-tête : un seul halo cyan dans le coin haut droit. Teintes tirées de
   --brand-rgb (chaque thème) : rgba(var()) passe dans Chrome 109, color-mix
   sur var() non. Décor seul, rien ne bouge. */
.order-hero {
    --order-halo: rgba(34, 184, 224, .13);
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 20px 22px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle 120px at calc(100% - 50px) 10px, var(--order-halo), rgba(34, 184, 224, 0) 70%),
        var(--panel);
}
[data-theme="dark"] .order-hero {
    --order-halo: rgba(34, 184, 224, .16);
}
.order-hero > * { position: relative; }

/* Reflet du catalogue sur le logo : un éclat au survol, une seule fois. */

/* Retour vers le catalogue du service, avec son icône (menu du haut). */

/* « Ce que fait le service » (fiche validee en console) : sous le titre, le
   logo couvre les deux lignes ; sans phrase, l'en-tete reste tel quel. */

/* Bandeau sombre au halo doux, prix en grand, délai en barres, statut en
   point lumineux. */

/* Délai : barres de réseau du catalogue (4 instantané … 1 au-delà de 24 h),
   teintes claires lisibles sur le navy. */

/* Statut (07/11/2026) : point lumineux du bandeau. La boîte
   (10 px) est l'anneau, la piste dépasse à gauche ; son centre est le cœur,
   que l'animation de lancement vise et fait battre. */

/* Une seule fois au chargement : la piste se trace, l'anneau paraît, le cœur
   s'allume (fin à 0,73 s). :where() laisse gagner le battement du lancement. */

/* Stock en preparation : anneau C (canvas du 07/11/2026), couleur de la marque.
   Deux demi-anneaux tournent (transform seul) sous deux masques ; le script
   de la vue les mene par transition jusqu'a la fin de la pause. */

/* Fiche commande : garanties collées au CTA (dans le panneau de commande) + ressources (liens) */
/* Le bouton porte le montant : un seul point de decision, pas de prix a
   rechercher plus haut dans la page. */

/* ── Piste C : une piste relie les étapes (data-track-node) au bouton
   (data-track-end). Points : creux à remplir, vert bon, rouge erreur, orange
   solde. Ligne posée et mesurée par customer.js (--track-top, --track-height,
   cachée tant qu'elle n'est pas mesurée) ; signal en transform et opacity
   quand tout est prêt (3,2 s) et pendant l'envoi (1,6 s) ; pointillée quand la
   commande est fermée. Rien ne bouge sous mouvement réduit. ── */

/* Le signal a la hauteur de la ligne : translateY(100%) le mène du premier
   point au bouton ; seul son point (::before) se voit. */

/* Point d'étape (10 px) : centré sur le champ (23 px = moitié d'un champ de
   46 px), au milieu d'un encadré. */

/* Borne du bouton (12 px), au milieu du bouton de 50 px. */

/* Total de quantité en pastille de prix (Mix-1), libellé lu dans data-label :
   le script de quantité réécrit seulement le montant. */

/* ── I5 « Retour éclair » (21/10/2026) : départ de la commande. Le cadenas
   glisse au centre du bouton et s'ouvre (0,30 s), un point monte la piste avec
   son faisceau et fait éclater chaque étape, la ligne claire file sous le
   bandeau et allume « En ligne » (0,665 s), la lumière redescend la piste d'un
   éclair puis rentre au cadenas : le bouton s'ouvre en coffre (0,79 s). Dès
   1,09 s, seule une lumière tourne autour du cadenas, jusqu'à la nouvelle
   page. Calques aria-hidden, positions (--ol-*) et temps de passage des
   étapes (--ol-pop, --ol-tap) posés par customer.js au départ (orderTrack,
   .is-launching sur le formulaire) ; transform et opacity seulement. La
   commande part au clic : rien ne la retient. ── */

/* Piste chargée et éclair du retour : sous les points d'étape, qui restent entiers. */

/* Le point qui monte la piste : tête, traîne, et son faisceau vers la droite. */

/* Saut entre la borne de la piste et le bord du bouton. */

/* Ligne claire dans le bas du bandeau jusqu'au point « En ligne », puis montée vers lui. */

/* Anneaux des étapes, de la borne et du point « En ligne ». */

/* Dans le bouton : le chargement habituel (texte transparent, cercle qui
   tourne) laisse la place au cadenas, qui porte l'attente. */

/* Attente : une comète blanche tourne autour du cadenas (rotation seule). */

/* Mouvement réduit : le bouton s'éclaire et reste en cours, sans mouvement. */

/* Cadenas, de 80 à 1 090 ms : glisse au centre (80 → 300), puis sursaut du coffre (790). */

/* ── C1 « Piste » (19/10/2026) : garanties en une ligne, ressources reliées
   par le tracé de la piste, description en onglets-pilules posés sur un rail
   (de vrais boutons : bordure, fond, ombre, main au survol). Teintes tirées
   des jetons du thème, rgba(var(--brand-rgb)) et jamais color-mix (Chrome
   109). Mouvements en transform/opacity seulement, coupés sous (hover: none)
   et prefers-reduced-motion. ── */

/* Trois tiers fixes : un ou deux boutons gardent leur taille. Chaque bouton
   pose le tracé et son via vers le suivant, jamais dans le vide. */

/* Carte description : halo doux dans le coin haut droit, comme l'en-tête. */

/* Onglets : pilules posées sur le rail. Actif = fond bleu clair et point
   plein avec son halo (le point grandit, transform seul). */

/* Texte libre (sans découpage) : un seul panneau, titres « ## » et puces. */

/* Mobile : garanties en colonne, ressources en tuiles, 3 pilules pleine
   largeur sans rail ni point. */

/* ── Services liés = vitrine : une petite carte par service, grand logo en haut
   (comme les cartes du catalogue), nom, prix, pastille de délai. Deux colonnes
   dans la colonne de 330 px et sur téléphone, quatre quand la fiche passe en
   une colonne (tablette). Survol : translation seule (vieux PC). ── */

.related-vitrine {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
a.related-tile,
a.related-tile:hover,
a.related-tile:focus-visible {
    color: inherit;
    text-decoration: none;
}
.related-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    transition: transform .18s var(--dash-ease);
}

/* Reflet du catalogue : un éclat traverse le logo au survol, une seule fois. */

/* Nom en deux graisses (Mix-1), 3 lignes au plus (2 dans la carte en
   largeur), jamais de « … » : un nom plus long s'efface en fin de dernière
   ligne (is-cut, posé par customer.js) ; le nom complet reste au survol
   (title) et sur la fiche. Prix et délai restent alignés en bas. */
.related-tile h3 {
    --related-lines: 3;
    max-height: calc(var(--related-lines) * 1.32em);
    margin: 0;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.32;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.related-tile h3.is-cut {
    -webkit-mask:
        linear-gradient(#000, #000) 0 0 / 100% calc((var(--related-lines) - 1) * 1.32em) no-repeat,
        linear-gradient(90deg, #000 40%, transparent 96%) 0 calc((var(--related-lines) - 1) * 1.32em) / 100% 1.32em no-repeat;
    mask:
        linear-gradient(#000, #000) 0 0 / 100% calc((var(--related-lines) - 1) * 1.32em) no-repeat,
        linear-gradient(90deg, #000 40%, transparent 96%) 0 calc((var(--related-lines) - 1) * 1.32em) / 100% 1.32em no-repeat;
}
/* Pied Mix-1 : pastille de prix, puis barres de délai à l'encre de la vitesse. */
.related-tile { --speed-ink: var(--warn-ink); }
.related-tile:is([data-speed="4"], [data-speed="3"]) { --speed-ink: var(--ok); }
.related-tile[data-speed="1"] { --speed-ink: var(--slow); }
.related-tile[data-speed="0"] { --speed-ink: var(--muted); }

@media (hover: hover) {
    a.related-tile:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
        box-shadow: var(--shadow-sm);
    }
    a.related-tile:hover h3 { color: var(--brand-strong); }
}
a.related-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Colonne étroite : nombre impair, la dernière carte prend toute la largeur,
   petit logo à gauche, prix et délai sur une ligne. */
@container related (max-width: 559.98px) {
    .related-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px;
    }
    
    
    .related-tile:last-child:nth-child(odd) h3 { --related-lines: 2; }
    
}
@container related (min-width: 560px) {
    .related-vitrine { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .related-tile { transition: none; }
    a.related-tile:hover { transform: none; }
}
.fact-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.quick-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.quick-amounts .chip { justify-content: center; padding: 0 10px; border-radius: var(--r-md); }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s var(--dash-ease), color .18s var(--dash-ease), background .18s var(--dash-ease), box-shadow .18s var(--dash-ease), transform .18s var(--dash-ease);
}
.chip:hover, .chip.active {
    border-color: var(--brand);
    color: var(--brand-strong);
    background: var(--brand-soft);
}

/* â”€â”€ Auth (pages plein Ã©cran) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Une seule colonne facon appli (23/11/2026) : la rangee de pictogrammes de
   l'accueil en tete de carte, puis le titre et le formulaire. Meme carte que
   les fenetres « Se connecter » / « Créer un compte » du layout. */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--panel);
    box-shadow: var(--shadow-lg);
}
.auth-shell .panel { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 28px 26px; }
/* Inscription : le sous-titre a ete retire, le titre touchait donc le premier
   champ. Le titre porte lui-meme la respiration, avec la meme valeur que
   .modal-head. Les autres ecrans auth gardent leur paragraphe, cette regle
   ne les atteint pas (selecteur de fratrie immediate h1 + form). */
.auth-shell .panel > h1 + form { margin-top: 18px; }
/* Pages de verification (code, appareil, 2FA) : meme titre centre que les
   fenetres d'acces, sous la rangee de pictogrammes. */
.auth-shell .panel > h1:not(.auth-title) { margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.auth-shell .panel > h1:not(.auth-title) + p.muted { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; text-align: center; text-wrap: pretty; }
.auth-shell input::placeholder,
.modal-form input::placeholder { color: var(--muted); opacity: 1; }
.auth-visual {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 14px;
    padding: clamp(24px, 4vw, 38px);
    background: var(--auth-visual-grad);
    color: #fff;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { color: #fff; font-size: clamp(19px, 2.4vw, 24px); margin: 10px 0 4px; text-align: center; }

.auth-visual.auth-products {
    display: block;
    min-height: 0;
    padding: 26px 28px 0;
    background: none;
    color: inherit;
}

/* â”€â”€ Modals (login / inscription) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
dialog.modal {
    padding: 0;
    border: 0;
    border-radius: var(--r-xl);
    background: transparent;
    width: min(460px, calc(100vw - 28px));
    margin: auto;
}
dialog.modal.wide { width: min(640px, calc(100vw - 28px)); }
/* Avertissement « premier rechargement » : il s'affiche au clic « Continuer »
   et DOIT etre lu — les gens ne lisent pas. Donc : liseret et halo ambres,
   icone d'alerte, et UNE instruction en tres gros. Le reste est secondaire. */
.first-deposit-card {
    display: grid; gap: 14px; justify-items: center; text-align: center;
    border: 2px solid #f59e0b;
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(245, 158, 11, .18), 0 40px 100px rgba(7, 30, 68, .30);
}
.first-deposit-badge {
    width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--warn-soft); color: #b45309;
    animation: first-deposit-ring 1.6s ease-out infinite;
}
@keyframes first-deposit-ring {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); }
    70%, 100% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
}
.first-deposit-card h3 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.first-deposit-card .first-deposit-highlight {
    margin: 0; width: 100%;
    padding: 14px 16px; border-radius: var(--r-md);
    background: var(--warn-soft); border: 1px dashed #f59e0b;
    color: var(--warn); font-size: 19px; font-weight: 800; line-height: 1.35;
}
.first-deposit-card .first-deposit-note { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.first-deposit-card .button { margin-top: 2px; font-size: 16px; padding-top: 13px; padding-bottom: 13px; }
@media (prefers-reduced-motion: reduce) { .first-deposit-badge { animation: none; } }
/* Deux essais de recharge sans succes : au plus deux solutions courtes, au clic
   « Continuer ». Carte calme (pas l'alerte ambre du premier rechargement) ; la
   premiere solution est mise en avant, « Continuer » reste un simple lien. */
.retry-help-card { display: grid; gap: 12px; }
.retry-help-card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.retry-help-intro { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.retry-help-choices { display: grid; gap: 8px; }
.retry-help-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.retry-help-choice[hidden] { display: none; }
.retry-help-choice:hover { border-color: rgba(var(--brand-rgb), .55); }
.retry-help-choice:focus-visible { outline: none; box-shadow: var(--ring); }
.retry-help-choice > .icon { color: var(--brand); }
.retry-help-choice strong { display: block; color: var(--ink-strong); font-size: 15.5px; }
.retry-help-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.retry-help-choice.is-primary { border-color: var(--brand); background: var(--brand-soft); }
.retry-help-continue { justify-self: center; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.retry-help-continue:hover { color: var(--ink-strong); }
.retry-help-continue:focus-visible { outline: none; box-shadow: var(--ring); }
dialog.modal::backdrop {
    background: rgba(2, 38, 36, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modal-backdrop-in .24s var(--dash-ease);
}
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
/* Fenetre ouverte (feuille du bas, menu ☰, toute modale) : la page derriere ne defile
   plus sur telephone et tablette (13/11/2026). Sinon un glisse sur le voile faisait
   defiler la page ; en bas de page, la barre d'adresse se repliait, la hauteur de
   l'ecran changeait et la feuille collee en bas sautait. overscroll-behavior : ni
   rebond ni « tirer pour actualiser » sous le voile. Ordinateur inchange (la barre de
   defilement disparaitrait et la page bougerait). html seul, pas body : un body en
   overflow hidden deviendrait la zone de defilement des elements collants (sticky). */
@media (hover: none) and (pointer: coarse), (max-width: 560px) {
    html:has(dialog.modal[open]) { overflow: hidden; overscroll-behavior: none; }
}
.modal-card {
    position: relative;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 26px;
    box-shadow: var(--shadow-lg), 0 40px 100px rgba(7, 30, 68, .30);
}
dialog.modal[open] .modal-card { animation: modal-pop .26s var(--dash-ease); }
@keyframes modal-pop {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
    transition: color .18s var(--dash-ease), background .18s var(--dash-ease), border-color .18s var(--dash-ease), transform .18s var(--dash-ease);
}
.modal-close:hover { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-soft); transform: rotate(90deg); }
.modal-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 40px 18px 0;
}
.modal-head h2 { font-size: 20px; margin: 0; }
.modal-head .muted { font-size: 13px; margin: 3px 0 0; }

.modal-switch {
    margin: 16px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

/* â”€â”€ Modals scindÃ©s, Ã©tapes, jauge, succÃ¨s â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Fenetres et pages d'acces (23/11/2026) : une colonne, un titre, des champs
   aeres, un seul bouton plein. Bandeau = rangee de petits pictogrammes de
   marque de l'accueil (.tl-tuile-marque, brand-tile.css), sans legende. */
dialog.modal.auth-modal { width: min(420px, calc(100vw - 28px)); }
.modal-card.auth-card { padding: 26px 28px 22px; }
.modal-form { min-width: 0; }
.auth-product-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.auth-product-tile {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 11px;
}
.auth-title {
    margin: 0 0 18px;
    color: var(--ink-strong);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: center;
    text-wrap: balance;
}
.auth-switch {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
}
.auth-switch a,
.auth-switch button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.auth-switch a:hover,
.auth-switch button:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a:focus-visible,
.auth-switch button:focus-visible { outline: 0; border-radius: 6px; box-shadow: var(--ring); }
:root[data-theme="dark"] .auth-switch a,
:root[data-theme="dark"] .auth-switch button { color: var(--brand-bright); }
@media (max-width: 640px) {
    /* Rangee plus serree : la croix de fermeture ne touche pas le dernier logo. */
    .auth-product-gallery { gap: 6px; }
    .auth-product-tile { width: 30px; height: 30px; border-radius: 10px; }
    .modal-card.auth-card { padding: 22px 18px 18px; }
    .auth-visual.auth-products { padding: 22px 18px 0; }
    .auth-shell .panel { padding: 0 18px 20px; }
}
.auth-shell .register-phone-field,
.auth-shell .register-currency-field,
#registerModal .modal-phone-field,
#registerModal .modal-currency-field { grid-column: 1 / -1; }
.divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.divider-or::before, .divider-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.button.outline {
    background: var(--panel);
    border: 1.5px solid color-mix(in srgb, var(--brand) 50%, transparent);
    color: var(--brand-strong);
    box-shadow: none;
}
.button.outline:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    box-shadow: none;
}
/* Bouton « Continuer avec Google » : blanc de la charte Google + G officiel,
   volontairement identique en clair et en sombre (version officielle du bouton). */
.button.google {
    background: #fff;
    border: 1.5px solid #dadce0;
    color: #3c4043;
    box-shadow: none;
}
.button.google:hover {
    background: #f8fafc;
    border-color: #c6cacf;
    color: #202124;
    box-shadow: 0 1px 6px rgba(15, 23, 42, .12);
}
.button.google .google-g { flex: 0 0 auto; }
/* Attente sur le bouton Google : le G est un SVG a fills explicites, donc
   insensible au `color: transparent` de .is-loading — il faut le masquer. Le
   spinner passe en encre sombre : blanc sur blanc serait invisible. */
.button.google.is-loading .google-g { visibility: hidden; }
.button.google.is-loading::after {
    border-color: rgba(60, 64, 67, .22);
    border-top-color: #3c4043;
}
/* Téléphone : sélecteur d'indicatif à drapeaux + numéro national. */
.phone-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.phone-row .input-wrap { min-width: 0; }
.phone-row input[type="tel"] { width: 100%; min-width: 0; }
.phone-dial {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink-strong);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .16s var(--dash-ease);
}
.phone-dial:hover { border-color: var(--brand); }
.phone-dial:focus-visible {
    border-color: var(--brand);
    outline: 3px solid var(--brand-soft);
    outline-offset: 2px;
}
.phone-flag {
    width: 20px;
    height: 14px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--line) center / cover no-repeat;
}
.phone-flag.is-unknown {
    background: color-mix(in srgb, var(--line) 74%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 42%, transparent);
}
.phone-caret {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: .6;
    transition: transform .16s var(--dash-ease);
}
.phone-dial[aria-expanded="true"] .phone-caret { transform: rotate(225deg) translate(-1px, -1px); }
.phone-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    width: min(340px, calc(100vw - 32px));
    max-height: min(340px, 52vh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--panel);
    box-shadow: 0 8px 8px rgba(3, 20, 24, .12);
}
.phone-menu[hidden] { display: none; }
/* La recherche reste visible : 243 pays ne se parcourent pas a la molette. */
.phone-search input {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field, var(--panel));
    color: var(--ink-strong);
    font: inherit;
    font-size: 13px;
}
.phone-search input:focus-visible { outline: 2px solid var(--brand); outline-offset: -1px; }
.phone-options {
    display: grid;
    gap: 2px;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.phone-empty { margin: 0; padding: 10px 9px; color: var(--muted); font-size: 13px; }
.phone-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-strong);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.phone-option:hover, .phone-option:focus-visible, .phone-option[aria-selected="true"] { background: var(--brand-soft); }
.phone-option:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.phone-option[aria-selected="true"]::after {
    content: "✓";
    margin-left: auto;
    color: var(--brand-strong);
    font-weight: 800;
}
.phone-option small {
    flex: 1 1 auto;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phone-option-dial { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
    .phone-menu { width: 100%; max-height: min(320px, 56vh); }
}
@media (prefers-reduced-motion: reduce) {
    .phone-caret { transition: none; }
}
/* Page « votre numéro » imposée après une inscription Google. */
.phone-gate { display: grid; gap: 20px; max-width: 600px; margin: 8px auto 24px; }

[data-step] { display: none; }
[data-step].active { display: block; animation: step-in .22s ease; }
@keyframes step-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

.strength { display: grid; gap: 6px; margin-top: 9px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strength-bars i { height: 5px; border-radius: 999px; background: var(--line); transition: background .2s ease; }
.strength-label { font-size: 12px; font-weight: 600; color: var(--muted); min-height: 16px; }
.strength[data-level="1"] .strength-bars i:nth-child(1) { background: var(--bad); }
.strength[data-level="2"] .strength-bars i:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] .strength-bars i:nth-child(-n+3) { background: var(--gold); }
.strength[data-level="4"] .strength-bars i { background: var(--ok); }
.success-card { text-align: center; padding: 36px 32px 28px; }
.success-check {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b98a, var(--ok));
    color: #fff;
    box-shadow: 0 16px 36px rgba(12, 138, 99, .4);
    animation: check-pop .45s var(--dash-ease);
}
.success-check::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(20, 185, 138, .4);
    animation: ring-pulse 1.8s ease-out infinite;
}
@keyframes check-pop { from { transform: scale(.35); opacity: 0; } 70% { transform: scale(1.05); } to { transform: scale(1); opacity: 1; } }
@keyframes ring-pulse { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.success-card h2 { margin: 0 0 4px; }
.success-card .button { margin-top: 18px; }
.order-success-modal { width: min(520px, calc(100vw - 28px)); }
.order-success-card { padding: 38px 34px 30px; }
.order-success-check {
    width: 104px;
    height: 104px;
    margin-bottom: 24px;
    background: var(--panel);
    border: 10px solid #2fb084;
    color: #2fb084;
    box-shadow: none;
}
.order-success-check::after { display: none; }
.order-success-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 10px 0 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
}
.order-success-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 10px;
    margin-top: 26px;
}
.order-success-actions .button {
    width: 100%;
    margin-top: 0;
    box-shadow: none;
}
.payment-success-modal { width: min(468px, calc(100vw - 28px)); }
.payment-success-card { overflow: hidden; padding: 30px 26px 22px; }
.payment-success-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), #2fb084, var(--brand-bright));
}
.payment-success-card .success-check { width: 58px; height: 58px; margin-bottom: 12px; box-shadow: 0 12px 26px rgba(12, 138, 99, .34); }
.payment-success-card h2 { font-size: 19.5px; }
.payment-success-actions { margin-top: 16px; }
/* Modale plus etroite : sans cela « Commander maintenant » repasse sur 2 lignes. */
.payment-success-actions .button { padding: 0 16px; white-space: nowrap; }

.payment-success-card > p { max-width: 420px; margin: 8px auto 0; color: var(--muted); line-height: 1.6; }
/* Bloc chiffre unique facon ticket : le montant en grand, le solde resultant
   sur une ligne de pied. Un seul encadre au lieu de deux — l'ID de recharge et
   la reference complete vivent sur la page derriere la modale. */
.payment-success-amount { margin: 16px 0 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ok) 24%, var(--line)); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--ok-soft), var(--panel)); }
.payment-success-amount-main { padding: 15px 18px 14px; }
.payment-success-amount-main span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.payment-success-amount-main strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: clamp(26px, 5.6vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.payment-success-amount-foot {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 10px 18px; text-align: left;
    border-top: 1px dashed color-mix(in srgb, var(--ok) 32%, var(--line));
    background: color-mix(in srgb, var(--panel) 72%, var(--ok-soft));
}
.payment-success-amount-foot span { color: var(--muted); font-size: 12.5px; }
.payment-success-amount-foot strong { color: var(--ink); font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.payment-failure-card::before { background: var(--bad); }

.payment-failure-mark {
    background: var(--bad-soft);
    border: 1px solid color-mix(in srgb, var(--bad) 32%, var(--line));
    color: var(--bad);
    box-shadow: none;
    animation: none;
}
.payment-failure-mark::after { display: none; }
.payment-failure-amount {
    border-color: color-mix(in srgb, var(--bad) 26%, var(--line));
    background: color-mix(in srgb, var(--bad-soft) 58%, var(--panel));
}
.payment-failure-amount .payment-success-amount-foot {
    border-top-color: color-mix(in srgb, var(--bad) 30%, var(--line));
    background: color-mix(in srgb, var(--panel) 74%, var(--bad-soft));
}

/* â”€â”€ Chip compte (topbar) & bande marques â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Pastille du compte « Capsule » (ToutLike, 24/11/2026 : l'ancien « Ticket »
   venait d'UnlockRapide). Une capsule ronde : avatar cerclé d'un anneau de
   story (bleu, violet, rose, or), le nom, puis le solde dans une bulle claire
   avec une pièce dorée. Solde faible : bulle rose et pièce rouge ; customer.js
   bascule is-low sur .account-balance, la bulle suit par :has.
   268 × 44 gardés : le menu et ses fils (36 px de chaque bord) en dépendent. */
.account-menu .account-chip {
    --chip-line: rgba(255, 255, 255, .30);
    position: relative;
    overflow: hidden;
    gap: 8px;
    padding: 0 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 0 0 1px var(--chip-line);
}
.account-menu .account-chip:hover {
    --chip-line: rgba(255, 255, 255, .46);
    background: rgba(255, 255, 255, .16);
}
.account-menu[open] .account-chip {
    --chip-line: rgba(255, 255, 255, .56);
    background: rgba(255, 255, 255, .20);
    box-shadow: inset 0 0 0 1px var(--chip-line), 0 6px 14px rgba(4, 20, 52, .28);
}
.account-menu .account-chip:focus-visible { outline-color: var(--signal); }
.account-chip .avatar.has-image {
    width: 34px;
    height: 34px;
    padding: 2px;
    background: conic-gradient(from 200deg, #38bdf8, #818cf8, #f472b6, #fbbf24, #38bdf8);
    box-shadow: none;
}
.account-chip .avatar.has-image img { box-sizing: border-box; border: 2px solid var(--topbar-bg-mobile); }
.account-stub {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(4, 20, 52, .22), inset 0 -2px 0 rgba(23, 105, 224, .10);
    transition: transform .18s var(--dash-ease), background-color .18s ease;
}
.account-menu .account-chip:hover .account-stub { transform: translateY(-1px); }
.account-coin {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff4c2, #fbbf24 55%, #d97706);
    color: #7c2d12;
    box-shadow: inset 0 0 0 1px rgba(124, 45, 18, .18);
}
.account-coin .icon { width: 14px; height: 14px; }
.account-stub .account-balance {
    height: auto;
    padding: 0 3px 0 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-head);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.account-stub:has(.account-balance.is-low) { background: #fff1f0; }
.account-stub:has(.account-balance.is-low) .account-coin {
    background: radial-gradient(circle at 32% 28%, #ffe4e6, #fb7185 60%, #e11d48);
    color: #ffffff;
}
:root[data-theme="dark"] .account-stub { background: #e4e9ef; }
:root[data-theme="dark"] .account-stub:has(.account-balance.is-low) { background: #ffe4e1; }
:root[data-theme="dark"] .account-stub .account-balance { background: transparent; box-shadow: none; }
.account-balance-dot {
    display: none;
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d92d20;
}
.account-balance.is-low .account-balance-dot { display: block; }
@media (prefers-reduced-motion: reduce) {
    .account-stub { transition: none; }
    .account-menu .account-chip:hover .account-stub { transform: none; }
}
.avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-bright));
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
}
.account-meta { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.15; text-align: left; }
.account-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, .95);
}
.account-balance {
    height: 32px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px 0 11px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(4, 20, 52, .22);
    color: var(--navy-deep);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    /* Le solde exact est prioritaire; le nom flexible absorbe la réduction. */
    overflow: visible;
    text-overflow: clip;
}
.account-menu .account-balance {
    flex: 0 0 auto;
    margin-left: auto;
}

.brand-tile {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-tile img { max-width: 100%; max-height: 72px; object-fit: contain; border-radius: 8px; }
.service-price,
.account-balance,
.stat-tile strong,
.metric strong,
.fact-tile strong,
.hero-metric strong,
.mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* â”€â”€ Services cliquables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
a.service-card, a.mini-service-row { color: inherit; }
a.service-card:hover, a.mini-service-row:hover { text-decoration: none; color: inherit; }

/* â”€â”€ Menu mobile (drawer) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    cursor: pointer;
    transition: background .18s var(--dash-ease), transform .12s var(--dash-ease);
}
.nav-burger:hover { background: rgba(255, 255, 255, .18); }
.nav-burger:active { transform: scale(.94); }
/* ── Tiroir ☰ (refonte ToutLike du 23/11/2026) ─────────────────────────
   Panneau à droite, même langage que le menu du compte sur ordinateur
   (.nav-menu). En-tête teinté, carte du solde ; blocs « Services » et « Mon
   compte » séparés par un simple espace ; dans « Mon compte », « Tableau de
   bord » isolé par un filet ; « Ajouter du solde » en bloc Aurore. Toucher,
   focus ou survol d'une ligne : l'icône s'allume, une onde part de la gauche,
   un chevron glisse à droite. Icônes des services = celles du header.
   Ouverture 280 ms : le panneau glisse, les lignes arrivent à la suite.
   Fermeture 200 ms (✕, voile, Échap, glissement vers la droite :
   customer.js, data-drawer). Seuls transform et opacity sont animés (vieux
   téléphones) ; voile sans flou. */
dialog.modal.drawer {
    --drawer-track: rgba(var(--brand-rgb), .32);
    --drawer-node: rgba(var(--brand-rgb), .38);
    --drawer-ring: rgba(var(--brand-rgb), .18);
    --drawer-wave: rgba(var(--brand-rgb), .18);
    --drawer-wave-mid: rgba(var(--brand-rgb), .07);
    --drawer-on-brand: #ffffff;
    --drawer-from: 0px;
    margin: 0 0 0 auto;
    width: min(324px, 86vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    overflow: visible;
}
:root[data-theme="dark"] dialog.modal.drawer {
    --drawer-track: rgba(var(--brand-rgb), .38);
    --drawer-node: rgba(var(--brand-rgb), .46);
    --drawer-ring: rgba(var(--brand-rgb), .24);
    --drawer-wave: rgba(var(--brand-rgb), .26);
    --drawer-wave-mid: rgba(var(--brand-rgb), .09);
    --drawer-on-brand: #0b172a;
}
dialog.modal.drawer::backdrop {
    background: rgba(9, 24, 48, .48);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: drawer-veil-in .28s ease;
}
:root[data-theme="dark"] dialog.modal.drawer::backdrop { background: rgba(2, 8, 18, .64); }
.drawer-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid transparent;
    border-radius: 20px 0 0 20px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: -18px 0 44px rgba(8, 27, 61, .22);
    font-family: var(--font-head);
    touch-action: pan-y;
}
:root[data-theme="dark"] .drawer-card { border-left-color: var(--line); box-shadow: -18px 0 48px rgba(0, 0, 0, .52); }
dialog.modal.drawer[open] .drawer-card { animation: drawer-in .28s cubic-bezier(.2, .8, .2, 1); }
dialog.modal.drawer.is-closing .drawer-card { animation: drawer-out .2s cubic-bezier(.4, 0, 1, 1) forwards; }
dialog.modal.drawer.is-closing::backdrop { animation: drawer-veil-out .2s ease forwards; }
dialog.modal.drawer.is-settling .drawer-card { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
dialog.modal.drawer.is-dragging .drawer-card { transition: none; }

.drawer-head {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(13px + env(safe-area-inset-top, 0px)) 12px 13px 14px;
    border-bottom: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: 20px 0 0 0;
    background: linear-gradient(160deg, rgba(var(--brand-rgb), .14) 0%, rgba(var(--brand-rgb), .05) 60%, rgba(242, 184, 75, .08) 100%);
}
:root[data-theme="dark"] .drawer-head {
    border-bottom-color: rgba(var(--brand-rgb), .26);
    background: linear-gradient(155deg, rgba(var(--brand-rgb), .17) 0%, rgba(var(--brand-rgb), .06) 58%, rgba(250, 200, 94, .06) 100%);
}
/* Filet bleu et or en haut de l'en-tête. */
.drawer-head::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-bright) 55%, rgba(242, 184, 75, .75));
    opacity: .75;
}
.drawer-head.is-account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
.drawer-title { color: var(--ink-strong); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.drawer-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-avatar {
    width: 38px;
    height: 38px;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(var(--brand-rgb), .28), 0 0 0 2px rgba(255, 255, 255, .65);
}
:root[data-theme="dark"] .drawer-avatar { box-shadow: 0 3px 10px rgba(0, 0, 0, .35), 0 0 0 2px rgba(var(--brand-rgb), .35); }
/* Figurine du profil (11/11/2026) à la place de l'initiale : en-tête et tiroir. */
.avatar.has-image { overflow: hidden; background: #1c2230; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.avatar.has-image img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.drawer-avatar.has-image { box-shadow: 0 3px 10px rgba(var(--brand-rgb), .28), 0 0 0 2px rgba(255, 255, 255, .65); }
.drawer-id { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; line-height: 1.18; }
.drawer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); font-size: 14.5px; font-weight: 750; }
.drawer-kicker { color: var(--brand-strong); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .88; }
.drawer-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .75);
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .08s ease;
}
:root[data-theme="dark"] .drawer-close { border-color: var(--line); background: rgba(15, 23, 42, .48); }
.drawer-close:active { transform: scale(.94); }
.drawer-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Carte du solde « ToutLike » (24/11/2026 : l'ancienne carte venait
   d'UnlockRapide). Fond du thème éclairé de deux lueurs (cyan, rose), pièce
   dorée, deux anneaux en filigrane ; libellé en haut, montant en grand
   dessous, mention « Solde faible » à droite. customer.js remplace le montant
   de .drawer-balance et bascule is-low. */
.drawer-wallet {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background:
        radial-gradient(110% 140% at 100% 0%, rgba(244, 114, 182, .34), transparent 55%),
        radial-gradient(90% 130% at 0% 100%, rgba(56, 189, 248, .30), transparent 60%),
        var(--acct-band);
    box-shadow: 0 10px 24px rgba(8, 27, 61, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
    color: #ffffff;
}
.drawer-wallet::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -28px;
    bottom: -40px;
    width: 112px;
    height: 112px;
    border: 14px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, .04);
    pointer-events: none;
}
.drawer-wallet-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff4c2, #fbbf24 55%, #d97706);
    color: #7c2d12;
    box-shadow: 0 4px 10px rgba(217, 119, 6, .35), inset 0 0 0 1px rgba(124, 45, 18, .18);
}
/* Solde bas (relevé en direct compris) : la pièce passe au rouge. */
.drawer-wallet:has(.drawer-balance.is-low) .drawer-wallet-icon {
    background: radial-gradient(circle at 32% 28%, #ffe4e6, #fb7185 60%, #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, .35);
}
.drawer-wallet-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.drawer-wallet-label { color: rgba(255, 255, 255, .8); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.15; text-transform: uppercase; }
.drawer-wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-wallet .drawer-balance {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.drawer-balance-flag {
    flex: none;
    display: none;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #b42333;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(4, 20, 52, .2);
}
.drawer-balance.is-low + .drawer-balance-flag { display: inline-flex; }
.drawer-balance-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e11d48; }

.drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 11px 12px;
    scrollbar-width: thin;
    touch-action: pan-y;
}
/* Espace entre l'en-tête et les blocs (les fils sont retirés le 23/11/2026). */
.drawer-gap { flex: none; display: block; height: 12px; }
.drawer-box { flex: none; padding: 5px 6px 6px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
:root[data-theme="dark"] .drawer-box { background: rgba(255, 255, 255, .03); }
.drawer-label {
    display: block;
    padding: 4px 8px 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.drawer-rule { display: block; height: 1px; margin: 5px 8px; background: var(--line); transform-origin: left center; }
.drawer-track { position: relative; display: grid; }
/* z-index : l'onde (z-index -1) reste dans la ligne, sous son contenu. */
.drawer-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 11px 0 6px;
    border-radius: 22px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.drawer-link::before {
    content: "";
    position: absolute;
    top: 1px;
    right: 0;
    bottom: 1px;
    left: 0;
    z-index: -1;
    border-radius: 22px;
    background: linear-gradient(90deg, var(--drawer-wave) 0%, var(--drawer-wave-mid) 58%, transparent 100%);
    opacity: 0;
    transform: scaleX(.72);
    transform-origin: left center;
    transition: opacity .18s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
}
/* Chevron dessiné en bordures : aucun glyphe lu par les lecteurs d'écran. */
.drawer-link::after {
    content: "";
    flex: none;
    width: 4px;
    height: 4px;
    margin-right: 4px;
    border-top: 1.5px solid var(--brand);
    border-right: 1.5px solid var(--brand);
    opacity: 0;
    transform: translateX(-5px) rotate(45deg);
    transition: opacity .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.drawer-link:hover, .drawer-topup:hover { text-decoration: none; }
.drawer-link:is(:focus-visible, :active)::before { opacity: 1; transform: scaleX(1); }
.drawer-link:is(:focus-visible, :active)::after { opacity: .88; transform: translateX(0) rotate(45deg); }
.drawer-link:is(:focus-visible, :active, .is-current) { color: var(--brand-strong); }
.drawer-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.drawer-link.is-current { font-weight: 650; }
.drawer-link-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.drawer-link:is(:focus-visible, :active) > .drawer-link-label { transform: translateX(2.5px); }
.drawer-node {
    flex: none;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1.5px solid var(--drawer-node);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
}
.drawer-link:is(:focus-visible, :active, .is-current) .drawer-node {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--drawer-on-brand);
    box-shadow: 0 0 0 3px var(--drawer-ring);
}
.drawer-link.is-current .drawer-node { box-shadow: 0 0 0 4px var(--drawer-ring); }
/* « Ajouter du solde » : bloc bleu nuit, pastille et devise or. Le relief et
   l'anneau or du survol vivent sur ::after (opacité seule). */
.drawer-topup {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 6px 10px 6px 7px;
    border: 1px solid rgba(var(--signal-rgb), .22);
    border-radius: 15px;
    background: var(--acct-band);
    box-shadow: 0 8px 18px rgba(3, 40, 46, .24);
    color: #ffffff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.drawer-topup::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-radius: inherit;
    box-shadow: 0 11px 24px rgba(3, 40, 46, .32), 0 0 0 2px rgba(var(--signal-rgb), .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.drawer-topup:focus-visible { transform: translateY(-1.5px); }
.drawer-topup:focus-visible::after { opacity: 1; }
.drawer-topup.is-current { outline: 2px solid var(--signal); outline-offset: 1px; }
.drawer-link:active, .drawer-topup:active { transform: scale(.982); }
.drawer-topup .drawer-node {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--signal-from) 0%, var(--signal) 55%, var(--signal-to) 100%);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .62);
    color: var(--signal-ink);
}
.drawer-topup-text {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    line-height: 1.2;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.drawer-topup:focus-visible .drawer-topup-text { transform: translateX(2px); }
.drawer-topup .drawer-link-label { font-size: 14px; font-weight: 700; }
.drawer-topup-low { color: #ffaba0; font-size: 11.5px; font-weight: 650; }
.drawer-topup-currency {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 8.5px;
    border-radius: 999px;
    background: rgba(var(--signal-rgb), .16);
    box-shadow: inset 0 0 0 1px rgba(var(--signal-rgb), .42);
    color: var(--signal-from);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    white-space: nowrap;
}

.drawer-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 22px 8px 0; }
.drawer-auth a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--ink-strong);
    font-size: 14.5px;
    font-weight: 650;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.drawer-auth a:hover { text-decoration: none; }
.drawer-auth a:active { transform: scale(.98); }
.drawer-auth a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.drawer-auth .drawer-auth-register { border-color: var(--brand); background: var(--brand); color: var(--drawer-on-brand); }

/* « PC qui s'ouvre » (tiroir des visiteurs, choix du propriétaire, 11/11/2026) :
   sous « Services », sans fil ni cadre, un PC dont l'écran se lève et
   s'allume à l'ouverture du menu ; les logos des outils (GuestDrawerTools)
   en sortent et se posent en éventail, une seule fois. Chaque logo mène au
   catalogue de son outil. PC à la place de la maquette (42 px sous
   « Services ») ; Connexion / Inscription au milieu de l'espace qui reste.
   Au repos ou en mouvement réduit : PC ouvert, logos posés. */

/* Éventail de la maquette pour 4 outils ; 3, 2 ou 1 si le site en trouve moins. */

/* Plus de fils : Connexion / Inscription au milieu de l'espace sous le PC,
   un peu plus haut que le bas du tiroir. */

/* Écran bas : PC réduit (zoom garde les positions de l'éventail) ; très
   bas : pas de PC, Connexion / Inscription restent sous « Services ». */

.drawer-foot {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
}
.drawer-logout { flex: 1 1 auto; min-width: 0; margin: 0; }
.drawer-logout button {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 44px;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--bad);
    font: inherit;
    font-size: 13.5px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.drawer-logout button:active { background: linear-gradient(90deg, var(--bad-soft) 0%, transparent 95%); transform: scale(.98); }
.drawer-logout button:focus-visible { outline: 2px solid var(--bad); outline-offset: -2px; }
.drawer-logout .icon { flex: none; }
.drawer-foot .drawer-currency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: 0 auto 0 8px;
    padding: 0 14px 0 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}
/* Survol à la souris seulement : sur un téléphone, :hover resterait collé
   après le toucher. */
@media (hover: hover) {
    .drawer-close:hover { background: var(--surface-2); }
    .drawer-link:hover::before { opacity: 1; transform: scaleX(1); }
    .drawer-link:hover::after { opacity: .88; transform: translateX(0) rotate(45deg); }
    .drawer-link:hover { color: var(--brand-strong); }
    .drawer-link:hover > .drawer-link-label { transform: translateX(2.5px); }
    .drawer-link:hover .drawer-node {
        border-color: var(--brand);
        background: var(--brand);
        color: var(--drawer-on-brand);
        box-shadow: 0 0 0 3px var(--drawer-ring);
    }
    .drawer-link.is-current:hover .drawer-node { box-shadow: 0 0 0 4px var(--drawer-ring); }
    .drawer-topup:hover { transform: translateY(-1.5px); }
    .drawer-topup:hover::after { opacity: 1; }
    .drawer-topup:hover .drawer-topup-text { transform: translateX(2px); }
    .drawer-auth .drawer-auth-login:hover { background: var(--surface-2); }
    .drawer-auth .drawer-auth-register:hover { border-color: var(--brand-strong); background: var(--brand-strong); }
    .drawer-logout button:hover { background: linear-gradient(90deg, var(--bad-soft) 0%, transparent 95%); }
}
dialog.modal.drawer[open] .drawer-rule { animation: drawer-rule-in .22s cubic-bezier(.2, .8, .2, 1) .08s backwards; }
dialog.modal.drawer[open] .drawer-link,
dialog.modal.drawer[open] .drawer-topup,
dialog.modal.drawer[open] .drawer-auth {
    animation: drawer-row-in .22s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(.05s + (var(--drawer-base, 0) + var(--drawer-i, 0)) * .03s);
}
/* Services .05 → .11 s, Tableau de bord .14 s, piste du compte .17 → .23 s. */
.drawer-track > a:nth-child(2) { --drawer-i: 1; }
.drawer-track > a:nth-child(3) { --drawer-i: 2; }
.drawer-track > a:nth-child(n+4) { --drawer-i: 3; }
.drawer-box > .drawer-link,
.drawer-auth { --drawer-base: 3; }
.drawer-rule + .drawer-track { --drawer-base: 4; }
.drawer-topup { --drawer-base: 6.3; }
/* PC des visiteurs : il glisse avec Services (.14 s), l'écran se lève (.32 s)
   et s'allume (.82 s), puis les logos sortent un à un (1 s, +0,12 s). */

@keyframes drawer-pc-glow { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .55; } }

@keyframes drawer-in { from { transform: translateX(104%); } }
@keyframes drawer-out { from { transform: translateX(var(--drawer-from)); } to { transform: translateX(104%); } }
@keyframes drawer-veil-in { from { opacity: 0; } }
@keyframes drawer-veil-out { to { opacity: 0; } }
@keyframes drawer-rule-in { from { opacity: 0; transform: scaleX(.4); } }
@keyframes drawer-row-in { from { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) {
    dialog.modal.drawer::backdrop,
    dialog.modal.drawer .drawer-card,
    dialog.modal.drawer .drawer-rule,
    dialog.modal.drawer .drawer-link,
    dialog.modal.drawer .drawer-topup,
    dialog.modal.drawer .drawer-auth,
    dialog.modal.drawer .drawer-pc,
    dialog.modal.drawer .drawer-pc-lid,
    dialog.modal.drawer .drawer-pc-glow,
    dialog.modal.drawer .drawer-pc-logo { animation: none !important; }
    .drawer-close, .drawer-link::before, .drawer-link::after, .drawer-link-label, .drawer-topup, .drawer-topup::after, .drawer-topup-text, .drawer-auth a, .drawer-pc-logo img { transition: none; }
}

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer { flex-shrink: 0; margin-top: 20px; background: var(--footer-bg); color: rgba(255, 255, 255, .78); }
/* Bande « Vos outils GSM » : dock en verre liquide + loupe (19/09/2026).
   Le defile part du CENTRE du ruban (margin-left: 50 %, trois groupes, translation de -1/3 a -2/3) :
   l'instant ou un outil passe sous la loupe ne depend donc pas de la largeur de l'ecran, aucun script. */

/* Hors ecran, customer.js pose « is-idle » : les ~85 animations de la vitrine ne
   coutent plus rien a chaque image de la page, et repartent a la meme position. */

.footer-inner { display: grid; gap: 24px; padding: 28px 0 20px; }
.footer-contact-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--signal);
    background: rgba(var(--signal-rgb), .12);
}
.footer-columns {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(auto-fit, minmax(150px, .72fr));
    gap: clamp(24px, 4vw, 60px);
}
.footer-column-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
}
.footer-column-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--signal) 0 46px, rgba(255, 255, 255, .09) 46px 100%);
}
.footer-title-icon { flex: 0 0 auto; color: var(--signal); }
.footer-contact-list { display: grid; gap: 10px; }
.footer-contact-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, .78);
    line-height: 1.3;
}
.footer-contact-icon { width: 30px; height: 30px; border-radius: 8px; }
.footer-contact-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.footer-contact-item small { display: block; margin-bottom: 2px; color: rgba(255, 255, 255, .5); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.footer a { color: rgba(255, 255, 255, .76); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a { width: fit-content; display: inline-flex; align-items: center; gap: 8px; line-height: 1.35; }
.footer-nav a .footer-link-icon {
    flex: 0 0 auto;
    color: var(--signal);
    opacity: .72;
    transition: color .18s var(--dash-ease), opacity .18s var(--dash-ease), transform .18s var(--dash-ease);
}
.footer-nav a:hover .footer-link-icon { color: var(--signal); opacity: 1; transform: translateX(2px); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.45;
}
.footer-legal-note { max-width: 62ch; text-align: right; }
/* Selecteur de langue (choix du proprietaire, 13/11/2026) : une ligne discrete
   sous la ligne legale, langue active en gras, couleurs des liens du pied. */
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: -10px; color: rgba(255, 255, 255, .78); font-size: 12px; line-height: 1.45; }
.footer-langs a { padding: 4px 0; }
.footer-langs strong { color: #fff; font-weight: 700; }
.footer-langs-icon { flex: none; opacity: .7; }
.footer-langs-sep { opacity: .45; }
/* Bulles du coin (suivi, assistant, iCloud) : en bas de page, la ligne legale
   s'arrete avant elles, sans bande reservee sous le pied de page (sans :has(),
   rien ne change). Ordinateur : coin 24 px + bulle 58 px (pastille iCloud
   seule : 244 px) + 16 px d'ecart, barre de defilement comprise (100vw). */
@media (max-width: 1023.98px) {
    body:has([data-corner-fab], [data-assistant-fab], [data-icheck-fab], .order-tray.is-ready:not(.is-empty)) .footer-bottom { padding-right: 64px; }
}
@media (min-width: 1024px) {
    body:has([data-corner-fab], [data-assistant-fab], [data-icheck-fab]) .footer-bottom { padding-right: max(0px, calc(98px - (100vw - min(1160px, 100vw - 32px)) / 2)); }
    
}

/* â”€â”€ Responsive & prÃ©fÃ©rences â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1080px) {
    .topbar-inner { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 0; }
    .brand { justify-self: start; }
    .nav-main { display: none; }
    .nav-actions { width: auto; justify-content: flex-end; overflow: visible; padding-bottom: 0; gap: 8px; }
    .nav-burger { display: grid; }
}
@media (max-width: 980px) {
    .catalogue-showcase, .order-layout { grid-template-columns: 1fr; }
    
    .home-steps { grid-template-columns: 1fr 1fr; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    
    
}
@media (max-width: 720px) {
    .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
    .nav-actions { width: auto; overflow: visible; padding-bottom: 0; gap: 8px; }
    .nav-actions .currency-pill,
    .nav-actions .button.ghost-light,
    .nav-actions .button.accent-cta,
    .nav-actions .account-menu,
    .nav-actions .lang-menu { display: none; }
    .nav-burger { display: grid; }
    .account-chip .account-meta, .account-chip .account-balance { display: none; }
    .header, .home-band-header { align-items: flex-start; flex-direction: column; }
    .table { display: block; overflow-x: auto; }
    .table.stack { display: block; border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .table.stack thead { display: none; }
    .table.stack tbody, .table.stack tr, .table.stack th, .table.stack td { display: block; }
    .table.stack tr {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        margin-bottom: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    .table.stack tbody th {
        padding: 12px;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-size: 12px;
        text-align: left;
        text-transform: uppercase;
    }
    .table.stack td {
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: minmax(108px, 40%) 1fr;
        gap: 10px;
        align-items: start;
    }
    .table.stack td:not([data-label]) { display: block; }
    .table.stack td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }
    .table.stack td:not([data-label])::before { content: none; }
    .table.stack td:last-child { border-bottom: 0; }
    .hero { grid-template-columns: 1fr; min-height: 0; padding: 22px; }
    .hero h1 { font-size: 30px; }
    .hero-metrics, .fact-list, .home-steps, .shop-panel,
    .promo-stack, .home-action-cards, .service-rule-grid,
    .footer-columns, .form-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-legal-note { text-align: left; }
    
    
    .order-hero { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; }
    
    
    /* Telephone : la phrase passe sous le logo, sur toute la largeur. */
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    .finance-type-pill { width: max-content; min-width: 0; }
    .invoice-detail-page-panel .invoice-detail-content,
    .invoice-detail-modal-card .invoice-detail-content { padding: 16px; }
    .invoice-detail-modal-card [data-invoice-dialog-body][aria-busy="true"] { padding: 16px; }
    .invoice-detail-amount-card { align-items: flex-start; flex-direction: column; }
    .invoice-detail-meta,
    .invoice-statement-item dl { grid-template-columns: 1fr; }
    .invoice-statement-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    
    
    
    .payment-return-page { gap: 16px; }
    .payment-return-outcome {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 20px;
    }
    .payment-return-outcome .order-status-pill {
        grid-column: 2;
        justify-self: start;
    }
    .payment-return-meta { grid-template-columns: 1fr; }
    .payment-return-meta > div:nth-child(odd) { border-right: 0; }
    .payment-return-meta > div:nth-child(n+3) { border-top: 0; }
    .payment-return-meta > div + div { border-top: 1px solid var(--line); }
    .payment-return-actions {
        flex-direction: column;
        padding: 16px 20px 20px;
    }
    .payment-return-actions .button { width: 100%; }
    .order-id-button {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .order-status-pill { min-width: 0; width: max-content; }
    dialog.modal.order-detail-modal { width: min(540px, calc(100vw - 16px)); }
    .order-detail-modal-card.modal-card { max-height: min(94vh, calc(100dvh - 16px)); }
    .order-detail-modal-card .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; }
    .order-detail-modal-card > h2 { padding: 13px 52px 13px 18px; font-size: 15px; }
    .order-detail-modal-card .order-detail-content { padding: 13px 14px 15px; }
    .order-detail-amount-card { gap: 4px; padding: 8px 10px; }
    .order-detail-amount-card strong { font-size: 15px; }
    .order-timeline-list div,
    .order-field-list div { grid-template-columns: minmax(82px, .34fr) minmax(0, 1fr); gap: 5px 9px; padding: 6px 0; }
    .order-detail-section-head { align-items: center; flex-direction: row; }
    .order-result-box { max-height: min(30dvh, 220px); font-size: 13px; line-height: 1.48; }
    .order-result-media img { max-height: 96px; }
    
    
    
    
    
    
    
    
    
    /* Carte « Mix-1 » : paliers mobiles du nom (3, 4 puis 5 lignes). */
    
    
    
    /* Nom très long : 5 lignes, la dernière s'efface vers la droite. */
    
    /* « tarif client » prend la place du pointillé. */
    
    
    .page .actions { width: 100%; }
    .page .actions form, .page .actions .button, .page .actions button { width: 100%; }
    
    
    .modal-card { padding: 20px; }
    .order-success-card { padding: 34px 20px 22px; }
    .order-success-check { width: 92px; height: 92px; border-width: 8px; }
    .order-success-actions { grid-template-columns: 1fr; }
}
/* Carte « Mix-1 » : le nom reste entier, sa colonne garde donc au moins
   ~195 px (mesuré sur les vrais noms). Deux colonnes de cartes sous 1180 px,
   vignette réduite entre 721 et 799 px, et sous 360 px avec des paliers d'un cran. */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Pagination compacte (commandes, factures, releves) */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pager .is-disabled { opacity: .45; pointer-events: none; }
.pager-info { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Ajout de solde : choix du mode de paiement */
.balance-add-layout { min-width: 0; }
.balance-add-layout > * { min-width: 0; }
.balance-step { min-width: 0; }
.balance-step + .balance-step { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.balance-amount-label {
    position: absolute;
    top: 10px;
    left: 42px;
    z-index: 1;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transition: color .16s ease;
}
.balance-amount-wrap:focus-within .balance-amount-label { color: var(--brand-strong); }
.balance-amount-wrap .input-lead { top: 59%; }
.balance-amount-input {
    min-height: 68px;
    padding-top: 25px;
    padding-bottom: 8px;
    padding-right: 78px;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    line-height: 1.1;
}
.balance-amount-currency {
    position: absolute;
    top: 59%;
    right: 14px;
    transform: translateY(-50%);
    padding-left: 11px;
    border-left: 1px solid var(--line);
    color: var(--brand-strong);
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    pointer-events: none;
}
.balance-add-form-panel .quick-amounts .chip {
    min-width: 0;
    gap: 5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.quick-amount-value { color: var(--ink-strong); font-weight: 800; }
.quick-amount-currency {
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}
.pay-modes { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.gateway-preference-status { min-height: 18px; margin: -7px 0 0; font-size: 12px; }
.gateway-preference-status[data-state="saved"] { color: var(--ok); }
.gateway-preference-status[data-state="failed"] { color: var(--bad); }
.pay-mode { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--panel); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.pay-mode input { position: absolute; opacity: 0; pointer-events: none; }
.pay-mode:hover { border-color: rgba(var(--brand-rgb), .45); }
.pay-mode:has(input:checked) { border-color: #0d9488; background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.pay-mode-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.pay-mode-logo img { width: 100%; height: 100%; object-fit: contain; }
.pay-mode-logo.ops { padding: 4px; gap: 3px; grid-template-columns: 1fr 1fr; place-items: stretch; }
.pay-mode-logo.ops img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.pay-mode-logo.mono { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; font-weight: 800; font-size: 17px; border: 0; }
.pay-mode-logo.binance { padding: 5px; background: #fff7dc; border-color: rgba(240, 185, 11, .5); }

/* Couleurs de la plateforme : jetons du theme client choisi en console (clair ou sombre). */
.binance-pay-page {
    --bp-panel: var(--surface-2);
    --bp-raised: var(--panel);
    --bp-line: var(--line);
    --bp-accent: var(--brand);
    --bp-accent-ink: var(--brand-strong);
    --bp-ok: var(--ok);
    --bp-ok-text: var(--ok);
    --bp-bad: var(--bad);
    --bp-bad-text: var(--bad);
    --bp-bad-title: var(--bad);
    --bp-bad-soft: var(--bad-soft);
    --bp-ink: var(--ink);
    --bp-title: var(--ink-strong);
    --bp-mut: var(--muted);
    --bp-track: var(--chip);
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(18px, 3.4vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--panel);
    color: var(--bp-ink);
    box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .binance-pay-page { box-shadow: none; }
.binance-pay-page :focus-visible { outline: 2px solid var(--bp-accent); outline-offset: 2px; }
.binance-pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.binance-pay-title { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.binance-pay-head h1 { margin: 0; color: var(--bp-title); font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -.01em; text-wrap: balance; }
.binance-pay-head p { margin: 0; color: var(--bp-mut); font-size: .92rem; }
.binance-pay-back { display: inline-flex; align-items: center; gap: 6px; color: var(--bp-accent); font-size: .85rem; font-weight: 700; text-decoration: none; }
.binance-pay-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.binance-pay-deadline { display: grid; justify-items: end; gap: 6px; min-width: 104px; }
.binance-pay-deadline-label { color: var(--bp-mut); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.binance-pay-timer { display: inline-block; min-width: 96px; padding: 9px 14px; border: 1px solid var(--bp-line); border-radius: 12px; background: var(--bp-raised); color: var(--bp-accent); font-size: 20px; font-weight: 800; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.binance-pay-https { display: inline-flex; align-items: center; gap: 5px; color: var(--bp-ok); font-size: 11px; font-weight: 800; }
/* Radar « Verification automatique » (06/10/2026) : remplace le bandeau des etapes, sous le titre, sans pastille.
   Le faisceau tourne tant que la page surveille le paiement (rotation seule) ; le statut detaille (customer.js) reste
   lu par les lecteurs d'ecran et s'affiche a la place du libelle une fois confirme, ralenti ou arrete. */
.binance-pay-live { position: relative; display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--bp-ink); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.binance-pay-radar { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; color: var(--bp-accent); background: radial-gradient(circle, currentColor 0 1.5px, transparent 2px); }
.binance-pay-radar::before, .binance-pay-radar::after, .binance-pay-radar i::before, .binance-pay-radar i::after { content: ""; position: absolute; }
.binance-pay-radar::before { inset: 0; border: 1.5px solid currentColor; border-radius: 50%; opacity: .45; }
.binance-pay-radar::after { inset: 0; border-radius: 50%; background: currentColor; opacity: .08; }
.binance-pay-radar i { position: absolute; inset: 0; border-radius: 50%; animation: bp-radar-sweep 2.8s linear infinite; }
.binance-pay-radar i::before { inset: 0; border-radius: 50%; background: conic-gradient(transparent 0deg 230deg, currentColor 360deg); opacity: .7; }
.binance-pay-radar i::after { left: calc(50% - .75px); top: 2px; width: 1.5px; height: calc(50% - 2px); border-radius: 1px; background: currentColor; }
@keyframes bp-radar-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.binance-pay-live-label { white-space: nowrap; }
.binance-pay-live-status { display: grid; gap: 2px; min-width: 0; }
.binance-pay-live-status small { font-size: 12px; font-weight: 600; line-height: 1.4; }
.binance-pay-live:is([data-state="waiting"], [data-state="checking"]) .binance-pay-live-status,
.binance-pay-live[data-state="confirmed"] .binance-pay-live-status small { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.binance-pay-live:not([data-state="waiting"]):not([data-state="checking"]) .binance-pay-live-label { display: none; }
.binance-pay-live:is([data-state="retrying"], [data-state="watch-ended"]) { align-items: flex-start; border-radius: 12px; padding: 8px 12px 8px 10px; }
.binance-pay-live[data-state="retrying"] { background: var(--bp-bad-soft); color: var(--bp-bad-text); }
.binance-pay-live[data-state="retrying"] .binance-pay-radar { color: var(--bp-bad); }
.binance-pay-live[data-state="watch-ended"] { background: var(--bp-track); color: var(--bp-mut); }
.binance-pay-live[data-state="watch-ended"] .binance-pay-radar { color: var(--bp-mut); }
.binance-pay-live[data-state="confirmed"] { color: var(--bp-ok-text); }
.binance-pay-live[data-state="confirmed"] .binance-pay-radar { color: var(--bp-ok); background: none; }
.binance-pay-live[data-state="confirmed"] .binance-pay-radar::before { opacity: 1; }
.binance-pay-live[data-state="confirmed"] .binance-pay-radar::after,
.binance-pay-live[data-state="watch-ended"] .binance-pay-radar i::after,
.binance-pay-live:is([data-state="confirmed"], [data-state="watch-ended"]) .binance-pay-radar i::before { opacity: 0; }
.binance-pay-live:is([data-state="confirmed"], [data-state="watch-ended"]) .binance-pay-radar i { animation: none; transform: none; }
.binance-pay-live[data-state="confirmed"] .binance-pay-radar i::after { left: 7.5px; top: 7.5px; width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 0; background: none; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
    .binance-pay-radar i { animation: none; transform: rotate(45deg); }
}
.binance-pay-timebar { position: relative; height: 4px; border-radius: 999px; background: var(--bp-track); }
.binance-pay-fuse { display: block; height: 100%; border-radius: inherit; overflow: hidden; }
.binance-pay-timebar i { display: block; height: 100%; border-radius: inherit; background: var(--bp-accent); transform-origin: left center; animation: bp-drain linear forwards; animation-duration: var(--bp-remaining, 600s); }
[data-binance-payment-window-open="false"] .binance-pay-timebar { display: none; }
@keyframes bp-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Carte de paiement : QR compact a gauche, les trois informations a droite, le guide en dessous. */
.binance-pay-card { --bp-plate: 184px; display: grid; grid-template-areas: "qr details" "guide guide"; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px clamp(18px, 3vw, 28px); padding: clamp(14px, 2.4vw, 20px) clamp(16px, 3vw, 24px); border: 1px solid var(--bp-line); border-radius: 18px; background: var(--bp-panel); }
.binance-pay-qr { grid-area: qr; display: grid; justify-items: center; align-content: center; gap: 8px; width: var(--bp-plate); min-width: 0; }
.binance-pay-qr-plate { position: relative; display: block; box-sizing: border-box; width: var(--bp-plate); padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--bp-line); }
.binance-pay-qr-media { overflow: hidden; border-radius: 8px; background: #fff; }
.binance-pay-qr-media img { display: block; width: 100%; max-width: 100%; background: #fff; }
.binance-pay-qr-plate--full .binance-pay-qr-media img { height: auto; object-fit: contain; object-position: center; }
.binance-pay-qr-plate--focus .binance-pay-qr-media { aspect-ratio: 100 / 112; }
.binance-pay-qr-plate--focus .binance-pay-qr-media img { height: 100%; object-fit: cover; object-position: center 50%; transform: scale(1.1); transform-origin: center; }
/* QR redessine depuis le lien enregistre en console : carre, net, toute la largeur de la plaque. */
.binance-pay-qr-code { display: block; }
.binance-pay-qr-code svg { display: block; width: 100%; height: auto; }
/* Sans lien : l'image envoyee est recadree sur son QR de paiement (lu par jsQR, binance-pay-note.js),
   sans les textes ni le nom de la capture ; le QR occupe 88 % du carre blanc. */
.binance-pay-qr-plate .binance-pay-qr-media.is-qr-framed { aspect-ratio: 1 / 1; }
.binance-pay-qr-plate .binance-pay-qr-media.is-qr-framed img { position: absolute; top: 0; left: 0; width: calc(100% * var(--bp-qr-zoom)); max-width: none; height: auto; object-fit: fill; transform: translate(var(--bp-qr-x), var(--bp-qr-y)); clip-path: inset(var(--bp-qr-clip)); animation: bp-qr-in .2s ease-out; }
@keyframes bp-qr-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .binance-pay-qr-plate .binance-pay-qr-media.is-qr-framed img { animation: none; } }
/* Trois lignes « Libelle : valeur » (ID Binance, Montant, Note) separees par un filet, bouton Copier a droite. */
.binance-pay-details { grid-area: details; display: grid; min-width: 0; }
.binance-pay-details > div { display: flex; align-items: center; gap: 8px 14px; padding: 10px 0; }
.binance-pay-details > div + div { border-top: 1px solid var(--bp-line); }
.binance-pay-line { display: grid; flex: 1 1 auto; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 2px 10px; min-width: 0; margin: 0; color: var(--bp-mut); font-size: 14px; font-weight: 600; line-height: 1.3; }
.binance-pay-line strong { color: var(--bp-title); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.binance-pay-note .binance-pay-line > span:first-child { color: var(--bp-accent-ink); }
.binance-pay-note .binance-pay-line strong { letter-spacing: .1em; }
/* Valeur + rappel (montant, note) : le rappel se place a droite de la valeur s'il y a la place, sinon dessous. */
.binance-pay-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.binance-pay-hint { color: var(--bp-mut); font-size: 12.5px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.binance-pay-note .binance-pay-hint { color: var(--bp-accent-ink); }
/* Boutons Copier = bouton secondaire de la plateforme, en plus petit. */
.binance-pay-details .button { flex: none; margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.binance-pay-details .button svg { width: 15px; height: 15px; }
.binance-pay-brand-mark { display: grid; flex: none; place-items: center; width: 34px; height: 34px; padding: 5px; box-sizing: border-box; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--bp-line); }
.binance-pay-brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.binance-pay-warning { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 16px; border: 1px solid rgba(220, 38, 38, .3); border-radius: 14px; background: #fef2f2; color: #d62222; font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.binance-pay-warning svg { flex: none; margin-top: 1px; }
.binance-pay-warning p { margin: 0; min-width: 0; }
:root[data-theme="dark"] .binance-pay-warning { border-color: rgba(248, 113, 113, .35); background: rgba(239, 68, 68, .12); color: #f87171; }
.binance-pay-terminal { display: grid; gap: 4px; margin: 0; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--bp-bad) 45%, transparent); border-radius: 14px; background: var(--bp-bad-soft); color: var(--bp-bad-text); }
.binance-pay-terminal strong { color: var(--bp-bad-title); font-size: .98rem; }
.binance-pay-terminal span { font-size: .88rem; line-height: 1.45; }
.binance-pay-terminal a { justify-self: start; margin-top: 6px; color: var(--bp-accent); font-size: .85rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.binance-pay-terminal a:hover { color: var(--bp-accent-ink); }
.binance-pay-terminal[hidden] { display: none !important; }
[data-binance-payment-instructions][hidden] { display: none !important; }
.is-payment-window-expired .binance-pay-timer { border-color: color-mix(in srgb, var(--bp-bad) 50%, transparent); background: var(--bp-bad-soft); color: var(--bp-bad-text); }
.is-payment-window-expired [data-binance-payment-instructions] { box-shadow: inset 0 0 0 1px var(--bp-bad); }
.is-payment-window-expired [data-binance-payment-instructions] button,
.is-payment-window-expired [data-binance-payment-instructions] a { pointer-events: none; }
.is-payment-window-expired .binance-pay-qr-media > *,
.is-payment-window-expired .binance-pay-qr-caption { display: none; }
.is-payment-window-expired .binance-pay-qr-plate { animation: none; box-shadow: 0 0 0 1px var(--bp-bad); }
@media (prefers-reduced-motion: reduce) {
    .binance-pay-page .binance-pay-timebar { display: none; }
    .binance-pay-qr-plate { animation: none; }
    .binance-pay-page .bpp *, .binance-pay-phone, .binance-pay-steps b::before, .binance-pay-qr-ripple, .binance-pay-qr-caption > span { transition: none !important; }
}
@media (max-width: 860px) {
    .binance-pay-card { --bp-plate: 168px; }
}
@media (max-width: 720px) {
    .binance-pay-page { padding: 18px 16px; border-radius: 20px; }
    .binance-pay-head { flex-direction: column; }
    .binance-pay-deadline { grid-template-columns: auto auto; align-items: center; justify-items: start; column-gap: 10px; }
}
/* Telephone : tout en pile, comme sur un ecran de caisse : QR de 150 px centre (on le touche pour ouvrir
   Binance), puis les trois lignes avec leur libelle a gauche, Copier reduit a son icone (le toast confirme). */
@media (max-width: 640px) {
    .binance-pay-card { --bp-plate: 150px; grid-template-areas: "qr" "details" "guide"; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
    .binance-pay-qr { justify-self: center; }
    .binance-pay-qr-plate { padding: 8px; border-radius: 12px; }
    .binance-pay-details { padding-top: 2px; border-top: 1px solid var(--bp-line); }
    .binance-pay-details > div { gap: 8px; padding: 9px 0; }
    .binance-pay-line { grid-template-columns: 86px minmax(0, 1fr); gap: 2px 8px; font-size: 13px; }
    .binance-pay-line strong { font-size: 17px; }
    .binance-pay-hint { font-size: 12px; }
    .binance-pay-details .button { width: 36px; padding: 0; }
    .binance-pay-details .button span { display: none; }
}
@media (max-width: 380px) {
    .binance-pay-deadline { width: 100%; }
    .binance-pay-timer { min-width: 86px; }
}
/* Telephone compact (06/10/2026) : QR, montant et note sur le premier ecran d'un telephone courant.
   En-tete en grille : retour (et HTTPS) en haut, titre a gauche, « Expire dans » + minuteur a droite.
   Radar « Verification automatique » sous le titre, a cote du minuteur (le bandeau des etapes est retire).
   Sous 381 px, le retour prend toute la premiere ligne et HTTPS se reduit a son cadenas au bout de cette ligne. */
@media (max-width: 640px) {
    .binance-pay-page { gap: 12px; }
    .binance-pay-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back https" "title label" "live timer"; align-items: center; gap: 4px 10px; }
    .binance-pay-head > div:first-child, .binance-pay-head .binance-pay-deadline { display: contents; }
    .binance-pay-head .binance-pay-back { grid-area: back; justify-self: start; font-size: 13px; }
    .binance-pay-head .binance-pay-title { grid-area: title; margin-top: 0; }
    .binance-pay-head h1 { font-size: 18px; }
    .binance-pay-head .binance-pay-https { grid-area: https; justify-self: end; }
    .binance-pay-head .binance-pay-deadline-label { grid-area: label; justify-self: end; align-self: end; }
    .binance-pay-head .binance-pay-timer { grid-area: timer; justify-self: end; min-width: 72px; padding: 6px 10px; border-radius: 10px; font-size: 18px; }
    .binance-pay-head .binance-pay-live { grid-area: live; justify-self: start; margin-top: 0; }
    .binance-pay-head .binance-pay-live:is([data-state="retrying"], [data-state="watch-ended"]) { grid-area: auto; grid-row: 4; grid-column: 1 / -1; }
    .binance-pay-card { gap: 10px; }
    .binance-pay-card .binance-pay-qr { width: auto; justify-self: stretch; }
    .binance-pay-value { display: contents; }
    .binance-pay-line .binance-pay-hint { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
    .binance-pay-head { grid-template-areas: "back back" "title label" "live timer"; }
    .binance-pay-head h1 { font-size: 16px; }
    .binance-pay-head .binance-pay-https { grid-area: back; justify-self: end; }
    .binance-pay-https-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .binance-pay-head .binance-pay-live { gap: 7px; font-size: 12px; }
}

/* Chiffres a recopier (06/10/2026) : ID Binance en groupes, unite du montant en retrait, note en cases comme un
   code a taper. La ligne copiee s'eclaire un instant (binance-pay-note.js, classe is-copied). */
.bp-digits > span + span { margin-left: .3em; }
.bp-unit { color: var(--bp-mut); font-size: .64em; font-weight: 750; letter-spacing: .06em; }
.binance-pay-note .binance-pay-line strong.bp-code { display: inline-flex; gap: 5px; letter-spacing: 0; }
.bp-code > span { display: inline-grid; place-items: center; min-width: 1.34em; height: 1.66em; border: 1px solid rgba(var(--brand-rgb), .3); border-radius: 8px; background: var(--bp-raised); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.binance-pay-details > div { position: relative; isolation: isolate; }
.binance-pay-details > div::before { content: ""; position: absolute; inset: 3px -10px; z-index: -1; border-radius: 12px; background: rgba(var(--brand-rgb), .1); opacity: 0; pointer-events: none; }
.binance-pay-details > div.is-copied::before { animation: bp-copied 1.5s ease-out; }
@keyframes bp-copied { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .binance-pay-details > div.is-copied::before { animation: none; opacity: 1; }
}
@media (max-width: 640px) {
    .binance-pay-note .binance-pay-line strong.bp-code { gap: 4px; }
    .bp-code > span { border-radius: 7px; }
    .binance-pay-details > div::before { inset: 2px -8px; }
}
/* Meche de petard (06/10/2026) : la ligne du temps brule comme une meche. Une etincelle suit le bout de la barre
   (porteur en translateX, meme duree lineaire que bp-drain), scintille en etoile et lache deux braises ; a une minute
   de la fin, la barre passe a l'orange en 4 s. Transform et opacity seulement ; si moins de mouvement, la barre reste masquee. */
.binance-pay-fuse i { position: relative; }
.binance-pay-fuse i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #f97316); opacity: 0; animation: bp-fuse-heat 60s linear both; animation-delay: calc(var(--bp-remaining, 600s) - 60s); }
.binance-pay-spark { position: absolute; inset: 0; pointer-events: none; animation: bp-fuse-travel linear forwards; animation-duration: var(--bp-remaining, 600s); }
.binance-pay-spark::before, .binance-pay-spark::after, .binance-pay-spark b { content: ""; position: absolute; top: 50%; right: 0; border-radius: 50%; }
.binance-pay-spark::before { width: 20px; height: 20px; margin: -10px -10px 0 0; background: radial-gradient(circle, rgba(255, 196, 92, .78) 0, rgba(251, 146, 60, .34) 34%, rgba(251, 146, 60, 0) 70%); animation: bp-spark-flicker .8s linear infinite; }
.binance-pay-spark::after { width: 12px; height: 12px; margin: -6px -6px 0 0; border-radius: 0; background: radial-gradient(circle, #fff 0 22%, #ffe7a3 48%, #ffb347 100%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: bp-spark-twinkle 1.1s ease-in-out infinite; }
.binance-pay-spark b { width: 2px; height: 2px; margin: -1px -1px 0 0; background: #fb923c; box-shadow: 0 0 2px 1px rgba(255, 196, 92, .75); opacity: 0; animation: bp-ember-up 1.3s ease-out infinite; }
.binance-pay-spark b + b { animation: bp-ember-down 1.7s ease-out .6s infinite; }
@keyframes bp-fuse-travel { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes bp-fuse-heat { 0% { opacity: 0; } 6%, 100% { opacity: 1; } }
@keyframes bp-spark-twinkle { 0%, 100% { transform: rotate(0deg) scale(1); } 30% { transform: rotate(20deg) scale(.78); } 55% { transform: rotate(45deg) scale(1.12); } 80% { transform: rotate(30deg) scale(.9); } }
@keyframes bp-spark-flicker { 0%, 100% { opacity: .8; transform: scale(1); } 22% { opacity: 1; transform: scale(1.2); } 40% { opacity: .62; transform: scale(.86); } 62% { opacity: 1; transform: scale(1.1); } 80% { opacity: .74; transform: scale(.94); } }
@keyframes bp-ember-up { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -11px) scale(.6); } }
@keyframes bp-ember-down { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(11px, 9px) scale(.6); } }
@media (prefers-reduced-motion: reduce) {
    .binance-pay-spark { display: none; }
}
/* Maquette B1 « Fiche de paiement » : note guidee par un telephone anime.
   Variantes : .bp-v-desk (scanner) par defaut, .bp-v-phone sur ecran tactile.
   Animations : transform et opacity seulement (vieux PC). */
.binance-pay-page .bp-v-phone { display: none; }
@media (pointer: coarse) {
    .binance-pay-page .bp-v-desk { display: none; }
    .binance-pay-page .bp-v-phone { display: inline; }
    .binance-pay-page small.bp-v-phone { display: block; }
    .binance-pay-page strong.bp-v-phone { display: inline-flex; }
}
.binance-pay-qr-plate--link { color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.binance-pay-qr-plate--link:hover { box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .6); }
.binance-pay-qr-plate .binance-pay-qr-media { position: relative; }
.binance-pay-qr-ripple { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(var(--brand-rgb), .35); opacity: 0; transform: scale(.5); pointer-events: none; }
[data-bp-qr-tap="1"] .binance-pay-qr-ripple { opacity: 1; transform: scale(.5); transition: none; }
[data-bp-qr-tap="2"] .binance-pay-qr-ripple { opacity: 0; transform: scale(3); transition: transform .45s ease-out, opacity .45s ease-out; }
/* Legende sous le QR : ecran tactile seulement (toucher le QR), ou apres l'ouverture de Binance. */
.binance-pay-qr-caption { display: none; width: 100%; margin: 0; text-align: center; }
:where([data-bp-opened="true"]) .binance-pay-qr-caption { display: grid; }
@media (pointer: coarse) { .binance-pay-qr-caption { display: grid; } }
.binance-pay-qr-caption > span { grid-area: 1 / 1; display: grid; align-content: start; gap: 2px; transition: opacity .2s ease; }
.binance-pay-qr-caption strong { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--bp-title); font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.binance-pay-qr-caption small { color: var(--bp-mut); font-size: 11.5px; line-height: 1.3; }
.binance-pay-qr-caption .bp-cap-opened { opacity: 0; }
.binance-pay-qr-caption .bp-cap-opened strong { color: var(--bp-ok); }
[data-bp-opened="true"] .binance-pay-qr-caption .bp-cap-idle { opacity: 0; }
[data-bp-opened="true"] .binance-pay-qr-caption .bp-cap-opened { opacity: 1; }
/* Guide « Comment payer » sous un filet : titre, puis les quatre etapes a gauche et le telephone anime a
   droite (le conteneur est transparent pour la grille : display: contents). */
.binance-pay-guide { grid-area: guide; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "steps phone"; align-items: start; gap: 10px 28px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--bp-line); }
.binance-pay-guide-body { display: contents; }
.binance-pay-guide h3 { grid-area: title; align-self: center; margin: 0; color: var(--bp-mut); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.binance-pay-phone { grid-area: phone; justify-self: center; transition: opacity .35s ease; }
[data-bp-dim="true"] .binance-pay-phone { opacity: .4; }
.binance-pay-steps { grid-area: steps; display: grid; gap: 14px; min-width: 0; margin: 0; padding: 6px 0 0; list-style: none; }
.binance-pay-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--bp-mut); font-size: 14px; font-weight: 600; line-height: 1.35; }
.binance-pay-steps li > span { padding-top: 2px; }
.binance-pay-steps b { position: relative; flex: 0 0 22px; display: grid; place-items: center; height: 22px; box-sizing: border-box; border: 1.5px solid var(--bp-line); border-radius: 50%; color: var(--bp-mut); font-size: 11.5px; font-weight: 700; isolation: isolate; }
.binance-pay-steps b::before { content: ""; position: absolute; z-index: -1; inset: -1.5px; border-radius: 50%; background: var(--bp-accent); opacity: 0; transition: opacity .25s ease; }
[data-bp-step="0"] [data-bp-step-item="0"],
[data-bp-step="1"] [data-bp-step-item="1"],
[data-bp-step="2"] [data-bp-step-item="2"],
[data-bp-step="3"] [data-bp-step-item="3"] { color: var(--bp-title); }
[data-bp-step="0"] [data-bp-step-item="0"] b,
[data-bp-step="1"] [data-bp-step-item="1"] b,
[data-bp-step="2"] [data-bp-step-item="2"] b,
[data-bp-step="3"] [data-bp-step-item="3"] b { border-color: var(--bp-accent); color: #fff; }
[data-bp-step="0"] [data-bp-step-item="0"] b::before,
[data-bp-step="1"] [data-bp-step-item="1"] b::before,
[data-bp-step="2"] [data-bp-step-item="2"] b::before,
[data-bp-step="3"] [data-bp-step-item="3"] b::before { opacity: 1; }
:root[data-theme="dark"] [data-bp-step="0"] [data-bp-step-item="0"] b,
:root[data-theme="dark"] [data-bp-step="1"] [data-bp-step-item="1"] b,
:root[data-theme="dark"] [data-bp-step="2"] [data-bp-step-item="2"] b,
:root[data-theme="dark"] [data-bp-step="3"] [data-bp-step-item="3"] b { color: #14171c; }
@media (max-width: 640px) {
    .binance-pay-guide { grid-template-areas: "title title" "phone phone" "steps steps"; gap: 12px; }
    .binance-pay-steps { padding-top: 0; }
    .binance-pay-steps li { font-size: 13.5px; }
}

/* Telephone de demonstration (couleurs fixes : c'est l'application Binance). */
.bpp { position: relative; width: 172px; height: 250px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.2; }
.bpp-body { box-sizing: border-box; width: 172px; height: 352px; padding: 5px; border: 1px solid rgba(120, 128, 140, .35); border-radius: 28px; background: #16181d; }
.bpp-screen { position: relative; width: 160px; height: 340px; overflow: hidden; border-radius: 23px; background: #fff; color: #1e2329; }
.bpp i { display: block; font-style: normal; }
.bpp-layer { position: absolute; inset: 0; background: #fff; transition: opacity .3s ease, transform .3s ease; }
.bpp-bar { position: absolute; left: 0; right: 0; top: 24px; display: flex; align-items: center; justify-content: center; height: 22px; font-size: 9px; font-weight: 600; }
.bpp-bar svg { position: absolute; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bpp-bar-back { left: 10px; top: 5.5px; width: 11px; height: 11px; stroke: #474d57; stroke-width: 1.5; }
.bpp-bar-x { left: 11px; top: 6.5px; width: 9px; height: 9px; stroke: #fff; stroke-width: 1.6; }

.bpp-scan { background: #101215; color: #fff; opacity: 0; }
[data-scene="scan"] .bpp-scan { opacity: 1; }
.bpp-scan-box { position: absolute; left: 30px; top: 96px; width: 100px; height: 100px; }
.bpp-c { position: absolute; width: 16px; height: 16px; box-sizing: border-box; border: 0 solid #fff; }
.bpp-c1 { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 5px; }
.bpp-c2 { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 5px; }
.bpp-c3 { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 5px; }
.bpp-c4 { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 5px; }
.bpp-scan-qr { position: absolute; left: 15px; top: 15px; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 5px; background: #fff; }
.bpp-scan-qr svg { display: block; width: 56px; height: 56px; fill: #14171c; }
.bpp-scan-line { position: absolute; left: 8px; right: 8px; top: 9px; height: 2px; border-radius: 2px; background: var(--bp-accent); box-shadow: 0 0 8px rgba(var(--brand-rgb), .85); transform: translateY(0); }
[data-scan="1"] .bpp-scan-line { transform: translateY(80px); transition: transform 1s linear, opacity .2s ease; }
[data-scan="2"] .bpp-scan-line { transform: translateY(0); transition: transform .8s linear; }

[data-scene="scan"] .bpp-amount { opacity: 0; }
[data-scene="note"] .bpp-amount { transform: translateX(-30%); }
.bpp-asset { position: absolute; left: 0; right: 0; top: 62px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; }
.bpp-asset svg { width: 11px; height: 11px; }
.bpp-amt { position: absolute; left: 0; right: 0; top: 78px; display: flex; align-items: center; justify-content: center; height: 34px; font-size: 29px; line-height: 1; font-variant-numeric: tabular-nums; }
.bpp-amt > span { display: flex; align-items: center; }
.bpp-amt-empty span { color: #c3c8cf; font-weight: 500; }
.bpp-amt-filled b { font-weight: 700; letter-spacing: -.01em; }
.bpp-amt .bpp-caret { width: 1.5px; height: 30px; margin: 0 2px; }
[data-amount-filled="true"] .bpp-amt-empty,
[data-amount-filled="false"] .bpp-amt-filled { display: none; }
.bpp-caret { background: #f0b90b; opacity: 0; }
[data-caret="amount"] .bpp-amount .bpp-caret,
[data-caret="note"] .bpp-note .bpp-caret { opacity: 1; }
.bpp-usd { position: absolute; left: 0; right: 0; top: 118px; display: flex; justify-content: center; transition: opacity .25s ease; }
.bpp-usd span { display: inline-flex; align-items: center; height: 15px; box-sizing: border-box; padding: 0 7px; border: 1px solid #eaecef; border-radius: 9px; color: #707a8a; font-size: 7px; }
[data-amount-filled="false"] .bpp-usd { opacity: 0; }
.bpp-addnote { position: absolute; left: 50%; top: 140px; display: inline-flex; align-items: center; height: 16px; padding: 0 6px; font-size: 8.5px; transform: translateX(-50%); }
.bpp-addnote-label { color: #c99400; font-weight: 500; }
.bpp-addnote-saved { display: none; align-items: center; gap: 3px; font-weight: 600; letter-spacing: .04em; }
.bpp-addnote-saved svg { width: 7px; height: 7px; fill: #c99400; }
[data-saved="true"] .bpp-addnote-label { display: none; }
[data-saved="true"] .bpp-addnote-saved { display: inline-flex; }
.bpp-ring { position: absolute; inset: -3px; border: 1.5px solid var(--bp-accent); border-radius: 7px; box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .22); opacity: 0; transition: opacity .2s ease; }
.bpp-addnote .bpp-ring { inset: -3px -2px; }
[data-ring="addNote"] .bpp-addnote .bpp-ring,
[data-ring="saved"] .bpp-addnote .bpp-ring,
[data-ring="confirm"] .bpp-confirm .bpp-ring { opacity: 1; }
.bpp-tap { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(30, 35, 41, .3); opacity: 0; transform: scale(.6); }
[data-tap="addNote"][data-tap-phase="1"] .bpp-addnote .bpp-tap,
[data-tap="confirm"][data-tap-phase="1"] .bpp-confirm .bpp-tap { opacity: 1; transform: scale(.6); transition: none; }
[data-tap="addNote"][data-tap-phase="2"] .bpp-addnote .bpp-tap,
[data-tap="confirm"][data-tap-phase="2"] .bpp-confirm .bpp-tap { opacity: 0; transform: scale(1.7); transition: transform .4s ease-out, opacity .4s ease-out; }
.bpp-keys { position: absolute; left: 8px; right: 8px; top: 208px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 22px; }
.bpp-key { position: relative; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.bpp-key svg { width: 13px; height: 9px; }
.bpp-key > span { position: relative; }
.bpp-key-hl { position: absolute; left: 50%; top: 50%; width: 34px; height: 18px; margin: -9px 0 0 -17px; border-radius: 6px; background: #eaecef; opacity: 0; transition: opacity .15s ease; }
.bpp-key.is-pressed .bpp-key-hl { opacity: 1; }
.bpp-btn { position: absolute; left: 9px; right: 9px; display: grid; place-items: center; height: 22px; border-radius: 5px; background: #fcd535; font-size: 8.5px; font-weight: 600; transition: opacity .25s ease; }
.bpp-continue { top: 304px; }
[data-amount-filled="false"] .bpp-continue { opacity: .5; }

.bpp-note { opacity: 0; transform: translateX(100%); }
[data-scene="note"] .bpp-note { opacity: 1; transform: translateX(0); }
.bpp-field { position: absolute; left: 9px; right: 9px; top: 54px; display: flex; align-items: center; height: 30px; box-sizing: border-box; padding: 0 9px; border-radius: 5px; background: #f5f5f5; }
.bpp-field > span { display: flex; align-items: center; }
.bpp-field .bpp-caret { width: 1.5px; height: 13px; margin: 0 2px; }
.bpp-field-empty span { color: #b7bdc6; font-size: 8.5px; }
.bpp-field-filled b { font-size: 10px; font-weight: 600; letter-spacing: .06em; }
[data-note-filled="true"] .bpp-field-empty,
[data-note-filled="false"] .bpp-field-filled { display: none; }
.bpp-field-focus { position: absolute; inset: 0; border: 1px solid #f0b90b; border-radius: 5px; opacity: 0; transition: opacity .2s ease; }
[data-caret="note"] .bpp-field-focus { opacity: 1; }
.bpp-paste { position: absolute; left: 24px; top: 36px; padding: 4px 8px; border-radius: 6px; background: #2c2c2e; color: #fff; font-size: 7.5px; font-weight: 500; transform-origin: 30% 100%; opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .2s ease, transform .2s ease; }
[data-paste="show"] .bpp-paste { opacity: 1; transform: scale(1); }
[data-paste="press"] .bpp-paste { opacity: 1; transform: scale(.92); }
.bpp-confirm { top: 94px; }
[data-note-filled="false"] .bpp-confirm { opacity: .5; }
.bpp-kb { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; box-sizing: border-box; padding-top: 6px; background: #d3d6dc; transform: translateY(100%); transition: transform .3s ease; }
[data-scene="note"][data-caret="note"] .bpp-kb { transform: translateY(0); }
.bpp-kb-row { display: flex; justify-content: center; gap: 2.5px; }
.bpp-kb-row + .bpp-kb-row { margin-top: 5px; }
.bpp-kb-row i { width: 13px; height: 18px; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.bpp-kb-row .bpp-kb-mod { width: 18px; background: #aeb3be; box-shadow: none; }
.bpp-kb-row .bpp-kb-wide { width: 30px; background: #aeb3be; box-shadow: none; }
.bpp-kb-row .bpp-kb-space { width: 82px; }

.bpp-status { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; height: 22px; box-sizing: border-box; padding: 2px 15px 0 17px; color: #1e2329; font-size: 7.5px; font-weight: 600; }
[data-scene="scan"] .bpp-status { color: #fff; }
.bpp-status-icons { display: flex; align-items: center; gap: 3px; }
.bpp-status-icons svg { width: 10px; height: 7px; fill: currentColor; }
.bpp-battery { position: relative; width: 14px; height: 7px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 2px; }
.bpp-battery i { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 8px; border-radius: 1px; background: currentColor; }
.bpp-notch { position: absolute; z-index: 5; top: 6px; left: 50%; width: 44px; height: 12px; margin-left: -22px; border-radius: 8px; background: #000; }

.pay-mode-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pay-mode-main .muted { font-size: 12.5px; overflow-wrap: anywhere; }
.pay-mode-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; position: relative; transition: border-color .15s; }
.pay-mode:has(input:checked) .pay-mode-dot { border-color: #0d9488; }
.pay-mode:has(input:checked) .pay-mode-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #0d9488; }
.pay-mode.is-soon { opacity: .65; cursor: not-allowed; background: var(--surface-2); }
/* Aucun moyen de paiement pret : recharge par WhatsApp (l'admin credite depuis la console). */
.pay-none-help { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 28%, var(--line)); }
.pay-none-help p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.pay-none-help .pay-none-whatsapp { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 480px) { .pay-none-help .pay-none-whatsapp { align-self: stretch; justify-content: center; } }
.pay-soon-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; padding: 3px 8px; border-radius: 999px; }
/* Moyen qui reussit le mieux dans le pays du client (recharges des 30 derniers jours). */
.pay-mode-best { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin: 1px 0; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 700; line-height: 1.4; }
/* Dernier essai rate avec un moyen qui n'a jamais marche : le meilleur autre moyen est coche. */
.pay-mode-retry { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 13px; line-height: 1.45; }
.pay-mode-retry .icon { flex: none; margin-top: 2px; color: var(--brand); }

/* Ajout de solde : mini-carte portefeuille + recap du paiement */
.pay-summary { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pay-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-strong); }
.pay-summary-row strong { color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-summary-row.total { border-top: 1px dashed var(--line); padding-top: 10px; font-weight: 700; }
.pay-limit-note { font-size: 12px; color: var(--muted); min-height: 15px; }
.pay-limit-note.warn { color: var(--warn); font-weight: 600; }
.bal-secure { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ok); }
.bal-secure svg { flex: none; margin-top: 1px; }
.bal-secure p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

@media (max-width: 980px) {
    .balance-add-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .balance-add-form-panel .quick-amounts .chip { padding: 0 6px; font-size: 12px; }
}

@media (max-width: 720px) {
    .balance-add-layout { gap: 0; }
    .balance-add-form-panel {
        margin-bottom: 0;
        border-bottom: 0;
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        box-shadow: none;
    }
    .balance-add-summary {
        margin-top: 0;
        border-radius: 0 0 var(--r-xl) var(--r-xl);
        box-shadow: var(--shadow-md);
    }

    .balance-step-amount {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }
    .payment-success-card { padding: 34px 20px 22px; }
    
    
    .pay-mode.is-soon {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .pay-mode.is-soon .pay-soon-badge {
        grid-column: 2;
        justify-self: start;
    }
}

/* Bandeau admin : maintenance active pendant la previsualisation du site */
.admin-maint-note { background: #7c2d12; color: #ffedd5; font-size: 13px; padding: 8px 16px; text-align: center; }
.admin-maint-note a { color: #fdba74; font-weight: 700; margin-left: 6px; }

/* ── Dark mode toggle + chrome fixes ─────────────────────────────────── */
.theme-toggle {
    min-height: 44px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .16s ease, transform .16s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .18); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-ico-sun { display: none; }
.theme-ico-moon { display: inline-flex; }
:root[data-theme="dark"] .theme-ico-sun { display: inline-flex; }
:root[data-theme="dark"] .theme-ico-moon { display: none; }
.drawer-foot .theme-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-color: var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.drawer-foot .theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (hover: hover) { .drawer-foot .theme-toggle:hover { background: var(--surface-2); } }
/* white "pop" elements that sit on the dark topbar stay light in dark mode */
:root[data-theme="dark"] .topbar .button.accent-cta { background: #fff; color: var(--brand-action); }
:root[data-theme="dark"] .topbar .button.accent-cta:hover { background: var(--signal-from); color: var(--brand-action); }

/* ── Chip states + pay-mode tokens (harmonised controls) ───────────────── */
.chip:focus-visible,
.pay-mode:focus-within { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.chip:active { transform: translateY(1px); }
.chip:disabled, .chip[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.pay-mode:hover { border-color: rgba(var(--brand-rgb), .55); }
.pay-mode:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); }
.pay-mode-dot { border-color: var(--line); }
.pay-mode:has(input:checked) .pay-mode-dot { border-color: var(--brand); }
.pay-mode:has(input:checked) .pay-mode-dot::after { background: var(--brand); }

/* ── Shared scroll reveal — armed by JS (.cust-anim, never on home); no-JS = visible ── */
html.cust-anim .panel,
html.cust-anim .metric,
html.cust-anim .fact-card,
html.cust-anim .order-hero,
html.cust-anim .order-history-card,
html.cust-anim .finance-list-card,
html.cust-anim .service-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--dash-ease), transform .5s var(--dash-ease);
}
html.cust-anim .panel.is-in,
html.cust-anim .metric.is-in,
html.cust-anim .fact-card.is-in,
html.cust-anim .order-hero.is-in,
html.cust-anim .order-history-card.is-in,
html.cust-anim .finance-list-card.is-in,
html.cust-anim .service-card.is-in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    html.cust-anim .panel,
    html.cust-anim .metric,
    html.cust-anim .fact-card,
    html.cust-anim .order-hero,
    html.cust-anim .order-history-card,
    html.cust-anim .finance-list-card,
    html.cust-anim .service-card { opacity: 1; transform: none; transition: none; }
}

/* Connexion client : confirmation utile, intégrée à la page et non bloquante. */
.auth-arrival {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 7%, var(--panel));
    color: var(--ink);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.auth-arrival[data-leaving] { opacity: 0; transform: translateY(-4px); }
.auth-arrival-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
}
.auth-arrival-copy { display: grid; gap: 2px; min-width: 0; }
.auth-arrival-copy strong { color: var(--ink-strong); font-size: 14px; }
.auth-arrival-copy span { color: var(--ink); font-size: 13px; }
.auth-arrival-copy small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.auth-arrival-actions { display: flex; align-items: center; gap: 8px; }
.auth-arrival-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
.auth-arrival-actions a:hover { background: var(--brand-strong); color: #fff; text-decoration: none; }
.auth-arrival-actions button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.auth-arrival-actions button:hover { background: var(--surface-2); color: var(--ink-strong); }
.auth-arrival-actions a:focus-visible,
.auth-arrival-actions button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Atelier d'apparence : réglages persistants du dashboard client. */
:root {
    --dash-card-radius: 16px;
    --dash-card-bg: var(--panel);
    --dash-card-border: var(--line);
    --dash-card-shadow: 0 2px 6px rgba(13, 34, 45, .09);
    --dash-pad: 18px;
    --dash-row-y: 13px;
}
:root[data-card-shape="sharp"] { --dash-card-radius: 6px; }
:root[data-card-shape="balanced"] { --dash-card-radius: 12px; }
:root[data-card-shape="soft"] { --dash-card-radius: 18px; }
:root[data-card-shape="round"] { --dash-card-radius: 24px; }
/* Fond des cartes (console : Uni, Verre, Teinté, Contour). Sans color-mix
   (Chrome 109), Verre et Teinté retombent sur la carte unie. */
:root[data-card-style="outline"] { --dash-card-bg: var(--bg); --dash-card-border: rgba(var(--brand-rgb), .42); }
@supports (color: color-mix(in srgb, red, blue)) {
    :root[data-card-style="tinted"] {
        --dash-card-bg: color-mix(in srgb, var(--brand) 6%, var(--panel));
        --dash-card-border: color-mix(in srgb, var(--brand) 24%, var(--line));
    }
    :root[data-card-style="glass"] {
        --dash-card-bg: color-mix(in srgb, var(--panel) 76%, transparent);
        --dash-card-border: color-mix(in srgb, var(--brand) 14%, var(--line));
    }
    :root[data-theme="dark"][data-card-style="glass"] {
        --dash-card-bg: color-mix(in srgb, var(--panel) 82%, transparent);
    }
}
:root[data-card-elevation="flat"] { --dash-card-shadow: none; }
:root[data-card-elevation="soft"] { --dash-card-shadow: 0 2px 6px rgba(13, 34, 45, .09); }
:root[data-card-elevation="lifted"] { --dash-card-shadow: 0 6px 8px rgba(13, 34, 45, .16); }
:root[data-theme="dark"][data-card-elevation="soft"] { --dash-card-shadow: 0 2px 6px rgba(0, 0, 0, .24); }
:root[data-theme="dark"][data-card-elevation="lifted"] { --dash-card-shadow: 0 6px 8px rgba(0, 0, 0, .34); }
:root[data-ui-density="compact"] { --dash-pad: 14px; --dash-row-y: 10px; }
:root[data-ui-density="comfortable"] { --dash-pad: 18px; --dash-row-y: 13px; }
:root[data-ui-density="airy"] { --dash-pad: 24px; --dash-row-y: 16px; }

@media (max-width: 720px) {
    .auth-arrival { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .auth-arrival-actions { grid-column: 1 / -1; }
    .auth-arrival-actions a { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-arrival { transition: none; }
    .auth-arrival[data-leaving] { transform: none; }
}
/* ── Dialog de detail partagee ───────────────────────────────────────── */
.order-detail-loading { display: grid; gap: 10px; padding: 6px 0 2px; }
.order-detail-loading i { height: 13px; border-radius: 7px; background: linear-gradient(90deg, var(--chip) 25%, var(--surface-2) 40%, var(--chip) 55%); background-size: 200% 100%; animation: odl-shimmer 1.1s linear infinite; }
.order-detail-loading i:nth-child(1) { width: 62%; }
.order-detail-loading i:nth-child(3) { width: 78%; }
@keyframes odl-shimmer { to { background-position: -200% 0; } }
.order-detail-error { color: var(--bad); font-size: 13.5px; }
.order-detail-error a { color: var(--brand); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .order-detail-loading i { animation: none; } }

/* ── Fiche service consultée sans compte ─────────────────────────────── */

/* Feedback discret pour les navigations qui depassent 350 ms. */
.page-transition-loader {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    cursor: wait;
}
.page-transition-loader[hidden] { display: none !important; }
/* Entree en 180 ms (voile en fondu, carte qui monte de 6 px). Le voile tenu
   garde son attribut hidden : il ne rejoue pas cette entree. */
.page-transition-loader:not([hidden]) { animation: page-loader-in .18s cubic-bezier(.2, .8, .2, 1) both; }
.page-transition-loader:not([hidden]) .page-transition-loader__card { animation: page-loader-card-in .18s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes page-loader-in { from { opacity: 0; } }
@keyframes page-loader-card-in { from { opacity: 0; transform: translateY(6px); } }
.page-transition-loader__card {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 180px;
    padding: 20px 24px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    box-shadow: var(--shadow-md);
    color: var(--ink-strong);
    text-align: center;
}
/* Vague de reseaux, tour de 1,6 s : chaque pictogramme (style partage
   brand-tile.css) monte de 8 px, 160 ms apres son voisin, puis retombe avec un
   leger rebond ; a son sommet il lache son signe (abonne, j'aime, lecture, vue)
   qui monte de 24 px et s'efface. Pause de 0,6 s entre deux vagues : le regard
   se repose. Transform et opacity seulement ; le tour demarre entame (-0,12 s)
   pour que la premiere image ne soit jamais immobile. */
.page-transition-loader__wave {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 66px;
    margin-bottom: 6px;
}
.page-transition-loader__net {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    --net-delay: -.12s;
}
.page-transition-loader__net:nth-child(2) { --net-delay: .04s; }
.page-transition-loader__net:nth-child(3) { --net-delay: .2s; }
.page-transition-loader__net:nth-child(4) { --net-delay: .36s; }
.page-transition-loader__tile {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    animation: page-net-wave 1.6s cubic-bezier(.45, 0, .25, 1) var(--net-delay) infinite;
}
.page-transition-loader__sign {
    position: absolute;
    top: -10px;
    left: 50%;
    display: block;
    width: 15px;
    height: 15px;
    margin-left: -7.5px;
    color: var(--tlc-lueur);
    opacity: 0;
    animation: page-net-sign 1.6s cubic-bezier(.2, .7, .3, 1) var(--net-delay) infinite;
}
.page-transition-loader__sign svg { display: block; width: 15px; height: 15px; }
.page-transition-loader__card > strong { font-family: var(--font-head); font-size: 14px; }
.page-transition-loader__card > span:not(.page-transition-loader__wave) { color: var(--muted); font-size: 12px; }
@keyframes page-net-wave {
    0%, 42%, 100% { transform: none; }
    16% { transform: translateY(-8px) scale(1.08); }
    30% { transform: translateY(1px) scale(.97, 1.02); }
}
@keyframes page-net-sign {
    0%, 9% { opacity: 0; transform: translateY(8px) scale(.4); }
    20% { opacity: 1; transform: translateY(-6px) scale(1.06); }
    34% { opacity: 1; }
    52%, 100% { opacity: 0; transform: translateY(-24px) scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
    .page-transition-loader__tile, .page-transition-loader__sign { animation: none; }
    .page-transition-loader__sign { opacity: 1; transform: translateY(-6px); }
}
/* Voile tenu par le catalogue d'arrivee (services/index) jusqu'a ses images
   visibles ; la levee de secours a 4 s
   couvre un script qui n'aurait pas tourne. Son !important passe devant la
   duree de .01ms du mouvement reduit, avec laquelle visibility ne basculait pas. */
html.is-veil-held .page-transition-loader[hidden] {
    display: grid !important;
    animation: page-veil-failsafe 0s linear 4s forwards !important;
}
@keyframes page-veil-failsafe { to { visibility: hidden; } }
/* Accueil (home.blade.php) : a sa levee, le voile tenu s'efface en 0,2 s. */
html.is-veil-leaving .page-transition-loader[hidden] {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

/* ── Login modal : état de succès (connexion AJAX, zéro rechargement) ────── */
.auth-msuccess { display: grid; justify-items: center; gap: 8px; padding: 26px 4px 10px; text-align: center; animation: amsIn .45s cubic-bezier(.22,1,.36,1) both; }
.auth-msuccess-check {
    display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 4px;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong);
}
.ams-ring { stroke-dasharray: 148; stroke-dashoffset: 148; animation: amsDraw .55s ease .1s forwards; opacity: .45; }
.ams-tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: amsDraw .4s cubic-bezier(.22,1,.36,1) .45s forwards; }
.auth-msuccess strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-strong); }
.auth-msuccess-name { font-size: 14.5px; color: var(--ink); }
.auth-msuccess small { font-size: 12.5px; color: var(--muted); }
.auth-msuccess .button { margin-top: 14px; }
.auth-msuccess-count { font-size: 12.5px; color: var(--muted); }
@keyframes amsDraw { to { stroke-dashoffset: 0; } }
@keyframes amsIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .auth-msuccess { animation: none; }
    .ams-ring, .ams-tick { animation: none; stroke-dashoffset: 0; }
}

/* bouton en attente (soumission AJAX) */
.btn-wait { position: relative; color: transparent !important; pointer-events: none; }
.btn-wait::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
    border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
    animation: btnWaitSpin .7s linear infinite;
}
@keyframes btnWaitSpin { to { transform: rotate(360deg); } }

/* ── Topbar : « Ajouter du crédit » toujours visible ─────────────────────── */

/* ── Garde-fou de déconnexion ────────────────────────────────────────────── */
#logoutConfirm { border: 0; padding: 0; background: transparent; }
#logoutConfirm::backdrop { background: rgba(3, 16, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.confirm-card {
    width: min(400px, calc(100vw - 40px)); padding: 26px 24px 22px;
    border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: grid; justify-items: center; gap: 8px; text-align: center;
}
#logoutConfirm[open] .confirm-card { animation: amsIn .3s cubic-bezier(.22, 1, .36, 1); }
.confirm-illus {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(220, 38, 38, .1); color: #dc2626; margin-bottom: 2px;
}
.confirm-card h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.confirm-card p { margin: 0; font-size: 13.5px; max-width: 34ch; }
.confirm-actions { display: flex; gap: 10px; width: 100%; margin-top: 12px; }
.confirm-actions .button { flex: 1; }
.button-danger { background: #dc2626; color: #fff; border: 0; }
.button-danger:hover { background: #b91c1c; color: #fff; }

/* Toast d'activité : jamais visible pendant qu'un modal est ouvert
   (il transparaissait sous le backdrop flouté comme une barre claire). */
body:has(dialog[open]) .client-activity-toast { display: none !important; }

/* ── Solde faible de la pastille : écrin rose, texte rouge foncé (#b42333 sur
   #fff1f0 = 5,9:1 ; en sombre #9f1d2b sur #ffe4e1 = 6,5:1) + point rouge.
   L'ancien saumon #fda29b ne faisait que 3,2:1 sur l'en-tête bleu (11/11/2026). ── */
.account-balance.is-low { background: #fff1f0; color: #b42333; }
:root[data-theme="dark"] .account-balance.is-low { background: #ffe4e1; color: #9f1d2b; }
.account-stub .account-balance.is-low,
:root[data-theme="dark"] .account-stub .account-balance.is-low { background: transparent; }

/* ── Toast utilitaire (copie, retours rapides) ──────────────────────────── */
.ui-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 720;
    transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
    max-width: min(440px, calc(100vw - 40px));
    padding: 11px 18px; border-radius: 999px;
    background: var(--ink-strong); color: var(--panel);
    font-size: 13.5px; font-weight: 650; text-align: center;
    box-shadow: 0 14px 34px rgba(9, 30, 50, .28);
    transition: opacity .25s ease, transform .25s ease;
}
.ui-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ui-toast.is-error { background: #dc2626; color: #fff; }
/* Copie refusee par le navigateur : la valeur s'affiche sous le bouton,
   selectionnee, pour etre copiee a la main (data-copy-reveal, customer.js). */
.copy-reveal { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-strong); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.copy-reveal:focus-visible { outline: none; box-shadow: var(--ring); }

/* ── Dialogs : la barre de défilement n'appartient JAMAIS au <dialog> ─────
   (l'UA lui met overflow:auto + max-height ~100%-34px : au moindre pixel de
   dépassement une scrollbar flotte sur le backdrop). C'est la carte qui
   scrolle en interne, avec une barre fine. ── */
dialog.modal { overflow: visible; max-height: none; }
.modal-card { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
.modal-card::-webkit-scrollbar { width: 8px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { border-radius: 999px; background: color-mix(in srgb, var(--ink) 24%, transparent); }
.modal-card::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 38%, transparent); }

/* ── Prix masqué aux visiteurs (réglage « show_prices_before_login ») ────────
   Pastille compacte et neutre : cadenas + « Prix membre ». La phrase complète
   « Connectez-vous pour voir le prix » reste au survol (title) et sur la page
   de commande — fini le texte long tronqué sur toutes les cartes. */

/* ───────── Annonce publique (modale) ─────────
   Remplace l'ancien bandeau .site-flash colle sous le header. Un seul accent
   par bloc : le liseré de niveau en haut de carte, rien d'autre. */
dialog.modal.announce-modal { width: min(520px, calc(100vw - 28px)); }
.announce-card { padding: 0 0 22px; overflow: hidden; }
.announce-card::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--brand);
}
.announce-success .announce-card::before { background: var(--ok); }
.announce-warning .announce-card::before { background: var(--warn); }
/* Cadre 3:2 sur fond plat, comme les vignettes d'outils de public/media
   (google-pixel, tfmtool-rent… toutes en 300x200) : la carte garde la meme
   silhouette quelle que soit l'image choisie. Le plafond en vh evite que
   l'image mange toute la carte sur un ecran bas (portable, paysage mobile). */
.announce-media {
    width: min(260px, calc(100% - 48px));
    margin: 20px auto 0;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    background: var(--surface-2, var(--panel-2, var(--line)));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.announce-media img {
    display: block;
    width: 100%;
    height: 100%;
}
/* Le serveur choisit le calage selon le format REEL de l'image
   (PublicAnnouncement::imageFit) : une vignette d'outil 3:2 remplit le cadre,
   une banniere tres large ou une affiche tres haute se centre entiere au lieu
   d'etre recadree au zoom jusqu'a devenir illisible. */
.announce-media-cover img { object-fit: cover; }
.announce-media-contain img { object-fit: contain; }
.announce-card > h2 {
    margin: 18px 0 0;
    /* Reserve a droite : .modal-close fait 38 px et se pose a 14 px du bord,
       sans quoi un titre un peu long passe dessous. */
    padding-inline: 24px 64px;
    font-size: 1.25rem;
    line-height: 1.3;
}
.announce-body {
    padding-inline: 24px;
    margin-top: 10px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
    text-align: left;
}
.announce-body p { margin: 0 0 10px; }
.announce-body p:last-child { margin-bottom: 0; }
.announce-body ul, .announce-body ol { margin: 0 0 10px; padding-left: 20px; }
.announce-body li { margin-bottom: 4px; }
.announce-body a {
    color: var(--brand-strong, var(--brand));
    text-decoration: underline;
    text-underline-offset: 3px;
}
.announce-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-inline: 24px;
    margin-top: 20px;
}
.announce-actions > :only-child { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .announce-actions { grid-template-columns: 1fr; }
    .announce-card > h2 { padding-inline: 18px 60px; }
    .announce-body, .announce-actions { padding-inline: 18px; }
}
/* Entree de l'annonce (07/10/2026) : une seule sequence a l'ouverture, en
   transform/opacity seulement (vieux PC, Chrome 109), rien en boucle. Le
   liseré se deroule, le visuel se pose, le texte monte par paliers, puis la
   fleche du bouton fait deux petits pas vers la droite pour inviter au clic. */
@media (prefers-reduced-motion: no-preference) {
    dialog.modal.announce-modal[open] .announce-card::before {
        transform-origin: left center;
        animation: announce-stripe .6s var(--dash-ease) .08s both;
    }
    dialog.modal.announce-modal[open] .announce-media { animation: announce-rise .5s var(--dash-ease) .06s both; }
    dialog.modal.announce-modal[open] .announce-media img { animation: announce-settle .9s var(--dash-ease) .06s both; }
    dialog.modal.announce-modal[open] .announce-card > h2 { animation: announce-rise .45s var(--dash-ease) .14s both; }
    dialog.modal.announce-modal[open] .announce-body { animation: announce-rise .45s var(--dash-ease) .2s both; }
    dialog.modal.announce-modal[open] .announce-actions { animation: announce-rise .45s var(--dash-ease) .26s both; }
    dialog.modal.announce-modal[open] .announce-actions a.button svg { animation: announce-nudge .7s ease-in-out .9s 2; }
}
@keyframes announce-stripe { from { transform: scaleX(0); } to { transform: none; } }
@keyframes announce-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes announce-settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes announce-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }

/* ── Correctif iPhone (2026-07-30) ─────────────────────────────────────────
   iOS (Safari ET Chrome iOS : même moteur WebKit) zoome automatiquement la
   page au focus de tout champ dont la police est < 16px — l'écran « saute »
   et déborde sur les formulaires de connexion/inscription. Android et
   desktop ne font jamais ça et conservent les 14px du design :
   @supports (-webkit-touch-callout: none) ne matche QUE iOS/iPadOS. */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea,
    .phone-search input {
        font-size: 16px;
    }
}

.input-wrap .momo-dial { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.input-wrap:has(.momo-dial) input { padding-left: 62px; }

/* ==========================================================================
   Mobile Money — parcours « Fil » (page de paiement + page d'attente)
   UNE carte qui se transforme : le pays detecte et ses reseaux, puis le
   numero, puis l'attente et la confirmation. Le montant vit au-dessus de la
   carte et suit chaque choix. Sans JavaScript, les trois panneaux restent
   empiles et le formulaire fonctionne entierement ; le script ne fait que
   replier et animer. Aucune apparition ne conditionne l'affichage : pas de
   fill-mode sur un element qui part a opacity 0 (piege du panneau fige).
   Aucun nom de prestataire : seules les marques des reseaux.
   ========================================================================== */
.momo-page {
    --momo-ease: cubic-bezier(.22, 1, .36, 1);
    width: min(440px, 100%);
    margin: 0 auto;
    padding-bottom: 28px;
}
.momo-page [hidden] { display: none !important; }

/* Couleur propre a un mode (MobileMoneyGuide::accent) : sa page de paiement
   et sa page d'attente, jamais le reste du site. Deux parcours au pixel pres
   se confondaient (« j'ai essaye l'autre, c'est pareil ») et une capture ne
   disait pas lequel le client utilisait. --ring est recalcule ici : celui de
   :root garde la couleur du site. */
.momo-page.momo-accent-violet {
    --brand: #7c3aed;
    --brand-strong: #6d28d9;
    --brand-soft: #efe9ff;
    --brand-bright: #a78bfa;
    --brand-rgb: 124, 58, 237;
    --brand-action: #7c3aed;
    --brand-action-strong: #6d28d9;
    --brand-gradient-end: #6d28d9;
    --ring: 0 0 0 4px rgba(124, 58, 237, .16);
}
:root[data-theme="dark"] .momo-page.momo-accent-violet {
    --brand: #a78bfa;
    --brand-strong: #c4b5fd;
    --brand-soft: rgba(167, 139, 250, .16);
    --brand-bright: #c4b5fd;
    --brand-rgb: 167, 139, 250;
    --brand-action: #7c3aed;
    --brand-action-strong: #6d28d9;
    --brand-gradient-end: #6d28d9;
    --ring: 0 0 0 4px rgba(167, 139, 250, .32);
}
/* Reconnaissable d'un coup d'oeil, meme au choix du reseau (aucun bouton n'y
   est encore colore) : un liseré en tete de carte et le nom du mode a sa
   couleur. Le mode a la couleur du site n'a ni l'un ni l'autre. */
.momo-page[class*="momo-accent-"] .momo-card { box-shadow: inset 0 3px 0 var(--brand), var(--shadow-sm); }
.momo-page[class*="momo-accent-"] .momo-top-mode { color: var(--brand); }
/* Relais quand le theme du site est deja violet (Aurore, Orchidee). */
.momo-page.momo-accent-emerald {
    --brand: #047857;
    --brand-strong: #065f46;
    --brand-soft: #dcf7ec;
    --brand-bright: #34d399;
    --brand-rgb: 4, 120, 87;
    --brand-action: #047857;
    --brand-action-strong: #065f46;
    --brand-gradient-end: #065f46;
    --ring: 0 0 0 4px rgba(4, 120, 87, .16);
}
:root[data-theme="dark"] .momo-page.momo-accent-emerald {
    --brand: #34d399;
    --brand-strong: #6ee7b7;
    --brand-soft: rgba(52, 211, 153, .15);
    --brand-bright: #6ee7b7;
    --brand-rgb: 52, 211, 153;
    --brand-action: #047857;
    --brand-action-strong: #065f46;
    --brand-gradient-end: #065f46;
    --ring: 0 0 0 4px rgba(52, 211, 153, .3);
}

.momo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-left: -8px;
}
.momo-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    padding: 0 10px 0 4px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .16s var(--momo-ease), color .16s var(--momo-ease);
}
.momo-back:hover, .momo-back:focus-visible { background: var(--surface-2); color: var(--ink-strong); text-decoration: none; }
.momo-flip { transform: scaleX(-1); }
.momo-top-mode {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Le montant : ce que le client recharge, puis ce qui part de son compte. */
.momo-hero { padding: 4px 8px 20px; }
.momo-hero p { margin: 0; }
.momo-hero-caption { color: var(--muted); font-size: 13px; font-weight: 600; }
.momo-hero .momo-hero-amount {
    margin-top: 6px;
    color: var(--ink-strong);
    font-size: clamp(32px, 9.5vw, 40px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.momo-hero-amount .finance-money { color: inherit; font: inherit; letter-spacing: inherit; white-space: normal; }
.momo-hero .momo-hero-sub { min-height: 18px; margin-top: 8px; color: var(--muted); font-size: 13px; }

.momo-alert {
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line));
    border-radius: 12px;
    background: var(--bad-soft);
    color: var(--bad);
    font-size: 13.5px;
}

/* La carte : en-tete (drapeau puis logo du reseau) et un seul panneau. */
.momo-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}
.momo-card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 10px 10px 16px;
}
.momo-card-head::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 1px;
    background: var(--line);
}
.momo-badge { position: relative; flex: none; width: 40px; height: 40px; }
.momo-badge-flag {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
}
.momo-badge-flag img,
.momo-country-option img,
.momo-phone-lead img {
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(11, 23, 42, .1);
}
.momo-badge-flag img { width: 24px; height: 16px; }
/* Les logos des marques sont dessines sur fond blanc, y compris en sombre. */
.momo-badge-logo,
.momo-net-logo,
.momo-ring img {
    box-sizing: border-box;
    border: 1px solid var(--line);
    background: #fff;
    object-fit: contain;
}
.momo-badge-logo { position: absolute; inset: 0; z-index: 1; width: 40px; height: 40px; border-radius: 12px; }
.momo-head-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.momo-head-text b,
.momo-head-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.momo-head-text b { color: var(--ink-strong); font-size: 15px; font-weight: 650; }
.momo-head-text small { color: var(--muted); font-size: 12.5px; }
.momo-change {
    flex: none;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .16s var(--momo-ease);
}
.momo-change:hover, .momo-change:focus-visible { background: var(--brand-soft); }
.momo-change:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
/* Sans script, « Changer » n'aurait rien a replier : la liste native suffit. */
[data-momo-page]:not([data-enhanced]) .momo-change { display: none; }

.momo-panel { padding: 16px; }
/* Un seul panneau a l'ecran — uniquement quand le script a pris la main. */
[data-momo-page][data-enhanced] .momo-panel { display: none; }
[data-momo-page][data-enhanced][data-momo-step="country"] [data-momo-panel="country"],
[data-momo-page][data-enhanced][data-momo-step="network"] [data-momo-panel="network"],
[data-momo-page][data-enhanced][data-momo-step="number"] [data-momo-panel="number"] { display: block; }
[data-momo-page][data-momo-sending] .momo-change,
[data-momo-page][data-momo-sending] .momo-card-body { pointer-events: none; }

/* Pays : la liste native sans script, une grille de drapeaux avec. */
.momo-country-native { display: grid; gap: 8px; }
.momo-country-native label { color: var(--ink-strong); font-size: 12.5px; font-weight: 600; }
.momo-country-pick { display: none; }
[data-momo-page][data-enhanced] .momo-country-native { display: none; }
[data-momo-page][data-enhanced] .momo-country-pick { display: grid; gap: 10px; }
.momo-country-search { position: relative; }
.momo-country-search .icon {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.momo-page .momo-country-search input {
    width: 100%;
    height: 42px;
    min-height: 0;
    padding: 0 12px 0 38px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.momo-page .momo-country-search input:focus { border-color: var(--brand); outline: none; box-shadow: var(--ring); }
/* iPhone : 16 px, sinon Safari zoome au focus (voir le correctif iPhone plus haut). */
@supports (-webkit-touch-callout: none) {
    .momo-page .momo-country-search input { font-size: 16px; }
}
.momo-country-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.momo-country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 4px 10px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s var(--momo-ease), transform .16s var(--momo-ease);
}
.momo-country-option:hover { border-color: rgba(var(--brand-rgb), .45); }
.momo-country-option:active { transform: scale(.97); }
.momo-country-option:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.momo-country-option[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); }
.momo-country-option img { flex: none; width: 22px; height: 15px; }
.momo-country-option small {
    display: -webkit-box;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.momo-country-empty { grid-column: 1 / -1; margin: 6px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Reseaux : une tuile par marque, choisie d'un toucher. */
.momo-networks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.momo-net {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 100px;
    padding: 11px 6px 9px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .16s var(--momo-ease), opacity .18s ease, transform .26s var(--momo-ease);
}
.momo-net:hover { border-color: rgba(var(--brand-rgb), .45); }
.momo-net:active { transform: scale(.96); }
.momo-page .momo-net input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
.momo-net:has(input:checked) { border-color: var(--brand); }
.momo-net:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.momo-net-logo { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.momo-net-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
/* Le reseau choisi reste, les autres s'effacent, puis la carte change. */
.momo-networks.is-leaving .momo-net { opacity: 0; transform: scale(.92); }
.momo-networks.is-leaving .momo-net.is-picked { border-color: var(--brand); opacity: 1; transform: scale(1.04); }

/* Reseau ou mode momentanement indisponible (proprietaire, 03/11/2026) : la
   tuile reste a l'ecran, grisee, avec un message clair et le temps restant.
   Vieux PC : seule une pastille respire (transform + opacity) ; l'anneau change
   une fois par seconde, sans transition, donc sans repeindre en continu. */
.momo-net.is-cooling { border-style: dashed; cursor: not-allowed; }
.momo-net.is-cooling:hover { border-color: var(--line); }
.momo-net.is-cooling:active { transform: none; }
.momo-net.is-cooling .momo-net-logo { opacity: .4; }
.momo-net.is-cooling .momo-net-name { color: var(--muted); }
.momo-net-wait { color: var(--ink-strong); font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
[data-momo-paused] .momo-net-wait,
[data-momo-paused] [data-momo-cooldown-note] { display: none; }

.momo-cooldown-list { display: grid; gap: 8px; margin-top: 12px; }
.momo-cooldown {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--warn-soft);
    color: var(--ink-strong);
    font-size: 13.5px;
    line-height: 1.4;
}
.momo-cooldown.momo-pause { margin: 0 0 14px; }
.momo-cooldown-text { flex: 1; min-width: 0; margin: 0; }
.momo-cooldown-text p { margin: 0; }
.momo-cooldown b { font-weight: 700; font-variant-numeric: tabular-nums; }
.momo-cooldown-link { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 600; }
.momo-cooldown-text .momo-cooldown-link { margin-top: 4px; }
.momo-cooldown-ring { flex: none; margin-top: 0; overflow: visible; transform: rotate(-90deg); animation: momo-cooldown-breathe 2.4s ease-in-out infinite; }
.momo-cooldown-track,
.momo-cooldown-fill { fill: none; stroke-width: 2.4; }
.momo-cooldown-track { stroke: var(--line); }
.momo-cooldown-fill { stroke: var(--warn); stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; }
@keyframes momo-cooldown-breathe {
    0%, 100% { opacity: 1; transform: rotate(-90deg) scale(1); }
    50% { opacity: .62; transform: rotate(-90deg) scale(.9); }
}
.momo-cooldown.is-back { background: var(--ok-soft); color: var(--ok); }
.momo-cooldown.is-back .momo-cooldown-ring { display: none; }
@media (prefers-reduced-motion: reduce) {
    .momo-cooldown-ring { animation: none; }
}

/* Numero : drapeau + indicatif dans le champ, coche quand il est complet. */
.momo-label { display: block; margin: 0 0 8px; color: var(--ink-strong); font-size: 12.5px; font-weight: 600; line-height: 16px; }
.momo-phone-box {
    display: flex;
    align-items: center;
    height: 56px;
    overflow: hidden;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.momo-phone-box.is-ok { border-color: rgba(var(--brand-rgb), .45); }
.momo-phone-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .16); }
.momo-phone-box:has([aria-invalid="true"]) { border-color: var(--bad); }
.momo-phone-lead {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 12px 0 14px;
    border-right: 1px solid var(--line);
}
.momo-phone-lead img { width: 22px; height: 15px; }
.momo-dial { color: var(--ink); font-size: 15px; font-weight: 600; }
.momo-page .momo-phone-box input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}
.momo-page .momo-phone-box input::placeholder { color: var(--muted); opacity: .55; }
.momo-phone-ok {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 14px;
    border-radius: 50%;
    background: var(--ok-soft);
    color: var(--ok);
    animation: momo-pop .36s var(--momo-ease);
}
.momo-field-err { margin: 8px 0 0; color: var(--bad); font-size: 12.5px; line-height: 1.4; }

/* Mode d'emploi du reseau choisi : une ligne quand c'est possible. */
.momo-guide { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 18px; }
.momo-helper { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.momo-helper .icon { flex: none; margin-top: 2px; }
.momo-helper + .momo-helper { padding-left: 20px; }
.momo-guide-steps { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.momo-guide-steps li::marker { color: var(--brand); font-weight: 700; }
.momo-guide-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; }
.momo-guide-lead { color: var(--ink); font-weight: 600; }
.momo-code {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--ink-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}
.momo-guide-action {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.momo-guide-action:hover, .momo-guide-action:focus-visible { color: var(--ink-strong); }

.momo-otp { margin-top: 14px; }
.momo-page .momo-otp-box input { padding: 0 14px; letter-spacing: .14em; }

/* Bouton : pale tant que le numero n'est pas complet (il reste cliquable :
   c'est le serveur qui juge), un reflet quand tout est pret, une roue a
   l'envoi. */
.momo-page .momo-cta {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    border-radius: 14px;
    font-size: 15px;
    transition: opacity .22s ease, box-shadow .22s ease, transform .16s var(--momo-ease), background .2s ease;
}
.momo-page .momo-cta.is-idle { box-shadow: none; opacity: .45; }
.momo-page .momo-cta.is-idle:hover { transform: none; }
.momo-page .momo-cta:active { transform: scale(.98); }
.momo-cta-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 34%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
    transform: translateX(-140%) skewX(-18deg);
    pointer-events: none;
}
.momo-cta.is-shining .momo-cta-shine { animation: momo-shine .9s ease-out; }
.momo-cta-spin {
    display: none;
    flex: none;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: momo-spin .8s linear infinite;
}
.momo-cta-out { display: none; flex: none; }
.momo-cta.is-link .momo-cta-out { display: inline-block; }
[data-momo-sending] .momo-cta-spin { display: inline-block; }
[data-momo-sending] .momo-cta-out { display: none; }

.momo-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.momo-foot .icon { flex: none; }

/* --- Attente, reussite, echec (page de retour) --------------------------- */
.momo-wait,
.momo-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 24px 16px;
    text-align: center;
    animation: momo-in .42s var(--momo-ease);
}
.momo-ring { position: relative; display: grid; flex: none; place-items: center; width: 96px; height: 96px; }
.momo-ring svg { position: absolute; inset: 0; animation: momo-spin 1.4s linear infinite; }
.momo-ring circle { fill: none; stroke-width: 3; }
.momo-ring-track { stroke: var(--brand-soft); }
.momo-ring-arc { stroke: var(--brand); stroke-dasharray: 64 220; stroke-linecap: round; }
.momo-ring img { width: 56px; height: 56px; border-radius: 16px; }
.momo-wait h2,
.momo-done h2 {
    margin: 16px 0 0;
    color: var(--ink-strong);
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.momo-wait-text { max-width: 300px; margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 20px; text-wrap: balance; }
.momo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    margin: 14px 0 0;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.momo-pill b { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: momo-pulse 1.4s ease-in-out infinite; }
.momo-pill time { color: var(--ink); }
.momo-patience {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .4s ease, transform .4s var(--momo-ease);
}
.momo-patience.is-shown { opacity: 1; transform: none; }

/* Confirmation lente (Orange Mali...) : le delai annonce et une barre qui avance.
   Barre et reflet en transform seulement : les vieux PC restent fluides. */
.momo-slow {
    width: 100%;
    max-width: 340px;
    margin: 14px auto 0;
    padding: 14px;
    border-radius: 14px;
    background: var(--surface-2);
    text-align: left;
}
.momo-slow-title { margin: 0; color: var(--ink-strong); font-size: 14px; font-weight: 700; line-height: 20px; }
.momo-slow-bar { display: block; height: 6px; margin: 10px 0; overflow: hidden; border-radius: 6px; background: var(--line); }
.momo-slow-bar b {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: var(--brand);
    transform: scaleX(.02);
    transform-origin: left center;
    transition: transform 1s linear;
}
.momo-slow-bar i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: translateX(-100%);
    animation: momo-slow-sheen 2.4s ease-in-out infinite;
}
.momo-slow.is-over .momo-slow-bar i { display: none; }
.momo-slow-body { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.momo-wait.is-opening .momo-slow { display: none; }
.payment-return-card .momo-slow { width: auto; max-width: none; margin: 16px 24px; }
@keyframes momo-slow-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
    .momo-slow-bar b { transition: none; }
    .momo-slow-bar i { display: none; }
}

.momo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 8px 0 0; }
.momo-text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .16s var(--momo-ease);
}
.momo-text-btn:hover, .momo-text-btn:focus-visible { background: var(--brand-soft); text-decoration: none; }
.momo-wait .momo-wait-button { min-height: 48px; margin-top: 16px; border-radius: 14px; font-size: 14px; }

/* Page de l'operateur (Wave...) : la barre court pendant l'ouverture. */
.momo-openbar {
    display: none;
    width: 180px;
    height: 4px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--brand-soft);
}
.momo-openbar b { display: block; height: 100%; border-radius: 4px; background: var(--brand); transform-origin: left center; }
.momo-wait.is-opening .momo-openbar { display: block; }
.momo-wait.is-opening .momo-openbar b { animation: momo-bar .9s cubic-bezier(.4, 0, .2, 1) forwards; }
.momo-wait.is-opening .momo-wait-text,
.momo-wait.is-opening .momo-pill,
.momo-wait.is-opening .momo-actions,
.momo-wait.is-opening .momo-details { display: none; }

/* Zamani Cash, Orange Guinee-Bissau : le code a composer, d'un toucher. */
.momo-wait-code {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
    padding: 10px 14px 10px 10px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--ink-strong);
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}
.momo-wait-code-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink-strong);
}
.momo-wait-code b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
}
.momo-wait-code > .icon { color: var(--brand); }
.momo-wait-code:hover, .momo-wait-code:focus-visible { border-color: var(--brand); background: var(--panel); text-decoration: none; }
.momo-wait-code-hint { margin: 8px 0 0; color: var(--ink-strong); font-size: 13px; font-weight: 700; }
.momo-wait-steps {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    counter-reset: momo-wait;
    font-size: 13.5px;
    list-style: none;
    text-align: left;
}
.momo-wait-steps li { display: flex; align-items: center; gap: 10px; counter-increment: momo-wait; }
.momo-wait-steps li::before {
    content: counter(momo-wait);
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.momo-details { width: 100%; margin-top: 10px; text-align: left; }
.momo-details summary {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    list-style: none;
    text-align: center;
    cursor: pointer;
}
.momo-details summary::-webkit-details-marker { display: none; }
.momo-details summary:hover { color: var(--brand); }
.momo-details[open] summary { margin-bottom: 10px; }
.momo-details .payment-return-meta > div { padding: 12px 14px; }

.momo-done-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--ok-soft);
    color: var(--ok);
    animation: momo-pop .52s var(--momo-ease);
}
.momo-done-mark path { stroke-dasharray: 30; animation: momo-draw .6s var(--momo-ease); }
.momo-failed .momo-done-mark { background: var(--bad-soft); color: var(--bad); }
.momo-failed .momo-done-mark path { stroke-dasharray: none; animation: none; }
.momo-done-credit {
    margin: 8px 0 0;
    color: var(--ok);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.momo-done-balance { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.momo-done > .momo-cta { margin-top: 20px; }
.momo-done > .momo-text-btn { margin-top: 6px; }

@keyframes momo-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes momo-pop {
    0% { opacity: 0; transform: scale(.6); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes momo-spin { to { transform: rotate(360deg); } }
@keyframes momo-pulse {
    0%, 100% { opacity: .35; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1); }
}
@keyframes momo-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes momo-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes momo-shine {
    from { transform: translateX(-140%) skewX(-18deg); }
    to { transform: translateX(320%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
    .momo-page *,
    .momo-page *::before,
    .momo-page *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
/* Page de paiement -> page d'attente : fondu court (navigateurs qui savent
   faire ; seules les pages Mobile Money s'y inscrivent). */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; }

/* ==========================================================================
   iKeePay — attente de la fenetre de paiement
   Sur connexion modeste, l iframe met plusieurs secondes a repondre. L ecran
   raconte cette attente avec de VRAIS signaux plutot que de rester fige : le
   client comprend ce qui se passe et ne quitte pas la page en croyant a une
   panne. Toute la motion sert un etat ; rien n est decoratif.
   ========================================================================== */
.ikeepay-popup-page {
    --ikp-ease: cubic-bezier(.22, 1, .36, 1);
    width: min(680px, 100%);
    margin: 0 auto;
    padding-bottom: 32px;
}
.ikp-head { margin-bottom: 16px; }
.ikp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
    text-decoration: none;
    transition: color .18s var(--ikp-ease);
}
.ikp-back:hover, .ikp-back:focus-visible { color: var(--brand); }
.ikp-head h1 { margin: 10px 0 0; font-size: 26px; letter-spacing: -.015em; }
.ikp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.ikp-stage {
    position: relative;
    overflow: hidden;
    padding: 26px 20px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--panel);
    box-shadow: var(--shadow-md);
}

/* Fil de progression : indetermine tant que rien n est acquis, plein a l arrivee. */
.ikp-progress {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    overflow: hidden;
    background: var(--brand-soft);
}
.ikp-progress i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    background: linear-gradient(90deg, transparent, var(--brand), var(--brand-bright), transparent);
    animation: ikp-sweep 1.5s cubic-bezier(.65, 0, .35, 1) infinite;
}
[data-state="ready"] .ikp-progress i,
[data-state="done"] .ikp-progress i { width: 100%; background: var(--brand); animation: none; }
[data-state="error"] .ikp-progress i { width: 100%; background: var(--bad); animation: none; }
@keyframes ikp-sweep { from { transform: translateX(-110%); } to { transform: translateX(330%); } }

.ikp-say h2 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.01em; color: var(--ink-strong); }
.ikp-say p { max-width: 62ch; margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
/* Pas de paragraphe pendant le chargement : les etapes suffisent a raconter,
   et l espace gagne profite a la silhouette de la fenetre. */
.ikp-say p:empty { display: none; }
[data-state="slow"] .ikp-say p { color: var(--warn); font-weight: 600; }
[data-state="error"] .ikp-say h2 { color: var(--bad); }

/* Silhouette de la fenetre qui arrive : on montre CE qui charge. Elle se replie
   (grid-template-rows, jamais height) des que la vraie fenetre s ouvre. */
.ikp-sheet {
    position: relative;
    display: grid;
    grid-template-rows: 1fr;
    justify-items: center;
    margin-top: 20px;
    transition: grid-template-rows .45s var(--ikp-ease), opacity .3s var(--ikp-ease), margin-top .45s var(--ikp-ease);
}
.ikp-halo, .ikp-sheet-card {
    transition: opacity .3s var(--ikp-ease), padding .45s var(--ikp-ease), border-width .45s var(--ikp-ease), box-shadow .3s var(--ikp-ease);
}
[data-state="ready"] .ikp-sheet,
[data-state="done"] .ikp-sheet,
[data-state="error"] .ikp-sheet { grid-template-rows: 0fr; margin-top: 0; opacity: 0; }
[data-state="ready"] .ikp-sheet-card,
[data-state="done"] .ikp-sheet-card,
[data-state="error"] .ikp-sheet-card { padding-top: 0; padding-bottom: 0; border-width: 0; box-shadow: none; }
[data-state="ready"] .ikp-halo,
[data-state="done"] .ikp-halo,
[data-state="error"] .ikp-halo { opacity: 0; animation: none; }
.ikp-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .34) 34%, rgba(var(--brand-rgb), .16) 56%, transparent 72%);
    filter: blur(24px);
    animation: ikp-breathe 5.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ikp-breathe {
    0%, 100% { transform: scale(.9); opacity: .55; }
    50% { transform: scale(1.06); opacity: 1; }
}
.ikp-sheet-card {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(300px, 84%);
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(var(--brand-rgb), .18), var(--shadow-md);
}
.ikp-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ikp-sheet-amount { display: grid; gap: 7px; }
.ikp-sheet-rows { display: grid; gap: 9px; }
.ikp-sheet-row { display: flex; align-items: center; gap: 10px; }
.ikp-sk {
    display: block;
    height: 11px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--chip) 20%, var(--panel) 42%, var(--chip) 64%);
    background-size: 220% 100%;
    animation: ikp-shimmer 1.35s linear infinite;
    animation-delay: calc(var(--i, 0) * 130ms);
}
@keyframes ikp-shimmer { to { background-position: -220% 0; } }
.ikp-sk.dot { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.ikp-sk.avatar { width: 26px; height: 26px; border-radius: 9px; flex: 0 0 auto; }
.ikp-sk.cta { height: 38px; border-radius: 11px; }
.ikp-sk.w28 { width: 28%; }
.ikp-sk.w40 { width: 40%; }
.ikp-sk.w44 { width: 44%; }
.ikp-sk.w52 { width: 52%; }
.ikp-sk.w60 { width: 60%; }
.ikp-sk.h9 { height: 9px; }
.ikp-sk.h18 { height: 18px; }

/* Etapes REELLES : page servie -> fenetre chargee -> fenetre prete. */
.ikp-steps { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; }
.ikp-step {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13.5px;
    color: var(--muted);
    transition: color .22s var(--ikp-ease);
}
[data-state="error"] .ikp-steps { display: none; }
.ikp-step-mark {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    transition: border-color .25s var(--ikp-ease), background-color .25s var(--ikp-ease);
}
.ikp-check { width: 13px; height: 13px; stroke-dasharray: 26; stroke-dashoffset: 26; }
.ikp-step[data-step-state="done"] { color: var(--ink); }
.ikp-step[data-step-state="done"] .ikp-step-mark { background: var(--brand); border-color: var(--brand); }
.ikp-step[data-step-state="done"] .ikp-check { animation: ikp-draw .42s var(--ikp-ease) forwards; }
.ikp-step[data-step-state="active"] { color: var(--ink); font-weight: 650; }
.ikp-step[data-step-state="active"] .ikp-step-mark { border-color: var(--brand); }
.ikp-step[data-step-state="active"] .ikp-step-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand);
    animation: ikp-pulse 1.5s ease-in-out infinite;
}
@keyframes ikp-draw { to { stroke-dashoffset: 0; } }
@keyframes ikp-pulse {
    0%, 100% { transform: scale(.5); opacity: .5; }
    50% { transform: scale(1); opacity: 1; }
}

.ikp-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.ikp-amounts > div { padding: 12px 14px; background: var(--surface-2); }
.ikp-amounts > div + div { border-left: 1px solid var(--line); }
.ikp-amounts span {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.ikp-amounts strong { display: block; margin-top: 5px; font-size: 18px; color: var(--ink-strong); }

.ikp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* .button impose display:flex et ecrase l attribut hidden du navigateur :
   sans cette regle, un bouton masque par le script reste affiche. */
.ikp-actions .button[hidden] { display: none; }
.ikp-guard {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}
[data-state="error"] .ikp-guard { display: none; }

.ikp-leave {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--warn);
    border-radius: var(--r-md);
    background: var(--warn-soft);
    animation: ikp-leave-in .28s var(--ikp-ease);
}
.ikp-leave[hidden] { display: none; }
.ikp-leave h3 { margin: 0 0 5px; font-size: 15px; color: var(--ink-strong); }
.ikp-leave p { margin: 0 0 11px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.ikp-leave-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes ikp-leave-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Fenetre iKeePay : presente des le premier rendu (le telechargement demarre
   tout de suite), invisible et inerte jusqu au signal « prete ». */
.ikeepay-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(2, 6, 23, .58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s var(--ikp-ease, ease), visibility .28s;
}
.ikeepay-overlay[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.ikeepay-overlay-frame {
    width: 100%;
    max-width: 450px;
    height: min(90vh, 760px);
    height: min(90dvh, 760px);
    outline: none;
    opacity: 0;
    transform: scale(.96);
    transition: transform .34s var(--ikp-ease, ease), opacity .28s var(--ikp-ease, ease);
}
.ikeepay-overlay[data-open="true"] .ikeepay-overlay-frame { opacity: 1; transform: none; }
.ikeepay-overlay-frame iframe { width: 100%; height: 100%; border: 0; background: transparent; }
body.ikeepay-overlay-open { overflow: hidden; }

@media (max-width: 560px) {
    .ikp-stage { padding: 22px 15px 16px; }
    .ikp-head h1 { font-size: 22px; }
    .ikp-amounts strong { font-size: 16px; }
    .ikp-actions .button { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ikp-progress i { width: 100%; opacity: .6; animation: none; }
    .ikp-sk, .ikp-halo { animation: none; }
    .ikp-step[data-step-state="active"] .ikp-step-mark::after { animation: none; opacity: 1; transform: scale(.8); }
    .ikp-check { stroke-dashoffset: 0; }
    .ikp-step[data-step-state="done"] .ikp-check { animation: none; }
    .ikp-sheet, .ikp-step, .ikp-step-mark, .ikeepay-overlay, .ikeepay-overlay-frame, .ikp-back { transition-duration: .01ms; }
    .ikp-leave { animation: none; }
}

/* ------------------------------------------------------------------
   Reclamation « location d'outils » : piste A « Anneau », choisie par le
   proprietaire le 27/09/2026. Un petit anneau se vide avec la fenetre de
   reclamation, la photo arrive avec sa coche, puis un grand anneau porte
   l'attente de la reponse. Le bloc vit dans la fiche de commande ET dans la
   dialog de la liste : telephone d'abord. Uniquement des jetons de theme
   (tous les themes, clair et sombre) ; chaque animation s'eteint avec
   prefers-reduced-motion (fin du bloc).
   ------------------------------------------------------------------ */

/* En sombre, --bad est un rose clair : un texte blanc n'y serait plus lisible. */

/* Limite du jour ou de la commande : une information, pas une action. */

/* [hidden] doit gagner : sans cette regle, le display:grid ci-dessous
   reaffiche les etapes masquees et elles s'empilent. */

/* Etape 1 : l'anneau autour de l'appareil photo se vide avec la fenetre et
   passe a l'orange la derniere minute. */

/* Boutons : leve au survol, s'enfonce au clic, anneau de focus au clavier. */

/* Un reflet passe une fois sur « Remboursement » quand la boite apparait. */

/* Etape 2 : la photo. Retour rond, zone de depot en pointilles ; une fois la
   capture choisie, la zone s'efface derriere elle et une coche verte arrive. */

/* Zone de depot = le champ natif. Le clic ouvre Galerie / Appareil photo sur
   telephone ; sur ordinateur on peut aussi coller ou glisser-deposer. */

/* Analyse de la capture (29/09/2026) : un trait lumineux balaie la
   photo tant que le verdict n'est pas tombe (transform seul : vieux PC). */

/* Bonne capture : l'erreur relevee sur la capture, sous la photo. */

/* Capture refusee : la fenetre des recharges sans succes, avec la photo refusee. */

/* Compte lie a un autre PC qui se libere bientot : attendre plutot que reclamer. */

/* Envoyer : s'anime quand la photo le debloque ; pendant l'envoi il reste
   rouge (desactive contre le double envoi), se remplit et tourne. */

/* Pendant l'envoi, la photo reste mais ne se change plus. */

/* Etape 3 : l'attente. Le grand anneau se vide pendant le delai de reponse,
   la perle marque ou il en est ; trois lignes disent ou en est la demande. */

/* Deux phrases dans la meme case, en fondu : l'une puis l'autre. */

/* Trois vues, un seul dessin : customer.js change data-claim-wait-view sur
   place (la fiche est souvent dans la dialog de la liste). */

/* Issue d'une reclamation, en tete de fiche : compte remplace, demande
   refusee ou remboursee. Un client non technique doit la voir avant le reste. */

/* Compte remplace : les nouveaux acces s'allument une fois (customer.js
   retient la reference de la demande dans le navigateur). L'eclat est un
   calque sous le texte qui s'efface : seule son opacite s'anime. */

/* Vue dediee : le reste de la fiche disparait le temps de la photo et de
   l'attente. Sans cela, une grande image repoussait le bouton d'envoi hors
   de l'ecran et il fallait faire defiler la fenetre pour le retrouver. */
.order-detail-content.is-claim-focus > *:not(.claim-box) { display: none !important; }

@keyframes claim-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Formulaire de repli (sans JavaScript) et onglet « Mes reclamations ». */

/* ── Tiroir de suivi des commandes ────────────────────────────────────
   Apres « Passer la commande » : le tiroir suit la commande, puis se range tant
   qu'un resultat reste a voir. Ordinateur : languette sur le cote et tiroir
   lateral. Telephone et tablette : barre de suivi en bas et feuille qui monte du
   bas. La barre d'avancement est celle des lignes de « Mes commandes »
   (.order-live-surface). Animations en transform et opacity seulement, sans flou
   d'arriere-plan : fluide sur les vieux ordinateurs et les petits telephones. */
.order-tray { display: none; }
.order-tray.is-ready { display: block; }
.order-tray [hidden] { display: none; }
.order-tray-bar,
.order-tray-scrim,
.order-tray-handle,
.order-tray-phone-only { display: none; }

.order-tray-drawer {
    position: fixed;
    z-index: 75;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: var(--panel);
    color: var(--ink);
    overflow: hidden;
    visibility: hidden;
}
:root[data-theme="dark"] .order-tray-drawer { border-color: color-mix(in srgb, var(--line) 85%, #ffffff 5%); }
.order-tray.is-open .order-tray-drawer { visibility: visible; }
.order-tray.is-open .order-tray-head { animation: order-tray-rise .45s var(--dash-ease) .08s both; }
.order-tray.is-open .order-tray-live,
.order-tray.is-open .order-tray-list { animation: order-tray-rise .45s var(--dash-ease) .14s both; }

.order-tray-head {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 14px;
    padding: 18px 16px 16px 20px;
    /* Entete aux couleurs de la barre du site (bleu du theme), texte blanc. */
    background: var(--topbar-bg);
    color: #ffffff;
}
:root[data-theme="dark"] .order-tray-head { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.order-tray-heading { flex: 1; min-width: 0; padding-top: 1px; }
.order-tray-eyebrow {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}
.order-tray-heading h2 {
    display: -webkit-box;
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.order-tray-subline { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-tray-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s var(--dash-ease);
}
.order-tray-icon:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.order-tray-icon:active { transform: scale(.94); }
.order-tray-icon:focus-visible { outline: none; box-shadow: var(--ring); }
.order-tray-icon > .order-tray-pc-only { display: grid; place-items: center; }
.order-tray-icon > .order-tray-phone-only { display: none; place-items: center; }
/* Sur l'entete bleu : texte et boutons en blanc. */
.order-tray-head .order-tray-eyebrow { color: rgba(255, 255, 255, .7); font-size: 10.5px; letter-spacing: .09em; }
.order-tray-head .order-tray-heading h2 { color: #ffffff; }
.order-tray-head .order-tray-subline { color: rgba(255, 255, 255, .8); }
/* Liste : le nombre en titre, plus grand ; ce qui attend en pastilles, chacune avec
   le point de couleur de son etat (en cours, reclamation, terminee). */
.order-tray-head.is-list .order-tray-heading h2 { margin-top: 4px; font-size: 19px; line-height: 1.2; letter-spacing: -.015em; }
.order-tray-sum { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 0; }
.order-tray-sum-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 7px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* Chaque pastille dit son etat par un signe, pas par un point : un anneau qui tourne
   pour ce qui est en cours, le « ! » des reclamations et la coche du termine. */
.order-tray-sum-chip::before {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: var(--chip-icon) center / contain no-repeat;
    mask: var(--chip-icon) center / contain no-repeat;
}
.order-tray-sum-chip.is-claim { --chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5M12 16h.01'/%3E%3C/svg%3E"); }
.order-tray-sum-chip.is-done { --chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E"); }
.order-tray-sum-chip.is-claim::before { background: #c4b5fd; }
.order-tray-sum-chip.is-done::before { background: #86efac; }
.order-tray-sum-chip.is-running::before {
    box-sizing: border-box;
    border: 2px solid rgba(252, 211, 77, .3);
    border-top-color: #fcd34d;
    border-radius: 50%;
    background: none;
    -webkit-mask: none;
    mask: none;
    animation: order-tray-spin 1s linear infinite;
}
/* Tiroir ferme : l'anneau ne tourne pas pour rien. */
.order-tray:not(.is-open) .order-tray-sum-chip.is-running::before { animation: none; }
@keyframes order-tray-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .order-tray-sum-chip.is-running::before { animation: none; }
}
.order-tray-head .order-tray-icon { background: rgba(255, 255, 255, .14); color: #ffffff; }
.order-tray-head .order-tray-icon:hover { background: rgba(255, 255, 255, .24); }
.order-tray-head .order-tray-icon:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.order-tray-head .order-tray-logo { border-color: rgba(255, 255, 255, .35); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); }
.order-tray-logo,
.order-tray-thumb {
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    background: var(--panel);
    color: var(--muted);
}
.order-tray-logo { width: 64px; height: 44px; border-radius: 14px; box-shadow: 0 8px 18px -10px rgba(7, 30, 68, .35); }
.order-tray-thumb { width: 52px; height: 36px; border-radius: 11px; }
.order-tray-logo img,
.order-tray-thumb img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
/* Vignette photo : elle remplit tout son cadre (plus de bande blanche autour),
   un fin liseré pose par-dessus garde le bord net. */
.order-tray-logo.is-photo,
.order-tray-thumb.is-photo { position: relative; border: 0; background: #0f2140; }
.order-tray-logo.is-photo img,
.order-tray-thumb.is-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.order-tray-logo.is-photo::after,
.order-tray-thumb.is-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(7, 30, 68, .16);
    pointer-events: none;
}
:root[data-theme="dark"] .order-tray-logo.is-photo::after,
:root[data-theme="dark"] .order-tray-thumb.is-photo::after,
.order-tray-head .order-tray-logo.is-photo::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

.order-tray-live,
.order-tray-row,
.order-tray-bar { position: relative; isolation: isolate; overflow: hidden; }
.order-tray-live .order-live-fx,
.order-tray-row .order-live-fx,
.order-tray-bar .order-live-fx {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.order-tray-live {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    margin: 16px 18px 0;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--status-color) 22%, var(--line));
    border-radius: 16px;
    background: var(--panel);
    transition: border-color .3s ease;
}
.order-tray-live .order-status-line { min-width: 0; }
.order-tray-live .order-live-clock { font-size: 12.5px; white-space: nowrap; }

.order-tray-long {
    flex: none;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 12px 18px 0;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand) 6%, var(--surface-2));
    animation: order-tray-rise .45s var(--dash-ease) both;
}
.order-tray-long-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 14%, var(--panel));
    color: var(--brand);
}
.order-tray-long p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.order-tray-long strong { display: block; color: var(--ink-strong); font-size: 13.5px; }

.order-tray-detail,
.order-tray-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.order-tray-body > .order-detail-loading,
.order-tray-body > .order-detail-error { margin: 0; padding: 18px 20px; }
.order-tray-body .order-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    /* Chaque bloc garde sa hauteur : la fiche defile au lieu d'ecraser un bloc
       a coins arrondis (« Champs envoyes » coupe sur un ecran peu haut). */
    grid-auto-rows: max-content;
    gap: 12px;
    padding: 16px 18px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent;
}
.order-tray-body.is-in .order-detail-content > * { animation: order-tray-rise .42s var(--dash-ease) both; }
.order-tray-body.is-in .order-detail-content > :nth-child(2) { animation-delay: .06s; }
.order-tray-body.is-in .order-detail-content > :nth-child(3) { animation-delay: .12s; }
.order-tray-body.is-in .order-detail-content > :nth-child(n+4) { animation-delay: .18s; }
.order-tray-body .order-detail-section { border-top-color: color-mix(in srgb, var(--line) 70%, transparent); }
.order-tray-body .order-access-row { padding: 11px 14px; border-radius: 14px; }
.order-tray-body .order-result-box,
.order-tray-body .order-code { border-radius: 14px; }

.order-tray-list {
    flex: 1;
    min-height: 0;
    display: grid;
    /* Chaque ligne garde sa hauteur : la liste defile au lieu de les ecraser. */
    grid-auto-rows: max-content;
    align-content: start;
    gap: 8px;
    padding: 14px 14px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent;
}
.order-tray-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px 13px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    border-radius: 16px;
    background: var(--panel);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--dash-ease);
}
.order-tray-row:hover {
    border-color: color-mix(in srgb, var(--status-color) 35%, var(--line));
    box-shadow: 0 12px 26px -18px rgba(7, 30, 68, .45);
    transform: translateY(-1px);
}
.order-tray-row:focus-visible { outline: none; box-shadow: var(--ring); }
.order-tray-row-main { display: grid; gap: 3px; min-width: 0; }
.order-tray-row-name {
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-tray-row-sub { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.order-tray-row-state { font-weight: 700; color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong)); }
:root[data-theme="dark"] .order-tray-row-state { color: color-mix(in srgb, var(--status-color) 45%, #ffffff); }
.order-tray-row-pill .order-status-pill,
.order-tray-bar-pill .order-status-pill { min-width: 0; min-height: 24px; padding: 2px 10px; font-size: 11.5px; }
.order-tray-more {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 6px;
    margin: 4px 4px 0;
    color: var(--brand-strong);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
.order-tray-more:hover { text-decoration: underline; }
/* Ce que le client a saisi (e-mail, IMEI, quantite) : visible des la liste. */
.order-tray-row-input {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-tray-clear {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 7px;
    margin-top: 4px;
    padding: 8px 14px;
    border: 1px dashed color-mix(in srgb, var(--line) 95%, transparent);
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.order-tray-clear:hover { border-style: solid; background: var(--surface-2); color: var(--ink-strong); }
.order-tray-clear:focus-visible { outline: none; box-shadow: var(--ring); }
/* Ordinateur : « Dernieres 24 h », les commandes terminees du jour en lignes compactes,
   sans barre d'avancement ni animation. */
.order-tray-journal {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.order-tray-journal.is-alone { margin-top: 0; padding-top: 2px; border-top: 0; }
/* Commande d'hier soir, commande de ce matin : un separateur de jour, comme dans une
   conversation (« Aujourd'hui », « Hier », la date), quand une liste melange les jours. */
.order-tray-day {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 6px 0;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.order-tray-day::before,
.order-tray-day::after {
    content: "";
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--line) 75%, transparent);
}
.order-tray-day > span {
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    white-space: nowrap;
}
.order-tray-journal-list > .order-tray-day { margin: 8px 6px 6px; }
.order-tray-journal-list > .order-tray-day:first-child { margin-top: 2px; }
.order-tray-journal-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 6px 4px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.order-tray-journal-count {
    min-width: 24px;
    margin-left: auto;
    padding: 2px 8px;
    box-sizing: border-box;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    color: var(--ink-strong);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
}
.order-tray-journal-list { display: grid; gap: 0; }
.order-tray-row.is-journal {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
}
.order-tray-row.is-journal:hover {
    border-color: transparent;
    background: var(--surface-2);
    box-shadow: none;
    transform: none;
}
/* Une ligne fine entre deux commandes des dernieres 24 h, dense au milieu et fondue vers
   les bords, a la couleur du bouton « Mes commandes » ; un separateur de jour la remplace.
   border-image ne peint que le haut (largeurs 1px 0 0 0) : la mise en page ne bouge pas. */
.order-tray-row.is-journal + .order-tray-row.is-journal,
.order-tray-row.is-journal + .order-tray-row.is-journal:hover {
    border-top-color: color-mix(in srgb, var(--line) 65%, transparent);
    border-image: linear-gradient(90deg, transparent, var(--brand-action, var(--brand)), transparent) 1 / 1px 0 0 0;
}
.order-tray-row.is-journal .order-live-fx { display: none; }
.order-tray-row.is-journal .order-tray-thumb { width: 40px; height: 28px; border-radius: 9px; }
.order-tray-row.is-journal .order-tray-row-main { gap: 1px; }
.order-tray-row.is-journal .order-tray-row-name { font-size: 13px; }
.order-tray-row.is-journal .order-tray-row-state { color: var(--muted); font-weight: 600; }

.order-tray-drawer:has(.is-claim-focus) .order-tray-live,
.order-tray-drawer:has(.is-claim-focus) .order-tray-long { display: none; }
/* Tiroir range : ses barres cachees ne tournent pas pour rien. */
.order-tray:not(.is-open) .order-tray-drawer .order-live-wash::after,
.order-tray:not(.is-open) .order-tray-drawer .order-live-line::before { animation: none; }
.order-tray:not(.is-open) .order-tray-drawer .order-live-wash,
.order-tray:not(.is-open) .order-tray-drawer .order-live-line { transition: none; }

.order-tray-foot {
    flex: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 18px 16px;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--surface-2) 45%, var(--panel));
}
.order-tray-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    border-radius: 14px;
    background: var(--panel);
    color: var(--ink-strong);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s var(--dash-ease);
}
.order-tray-button:hover { background: var(--surface-2); text-decoration: none; }
.order-tray-button:active { transform: scale(.98); }
.order-tray-button:focus-visible { outline: none; box-shadow: var(--ring); }
.order-tray-button.is-soft { border-color: transparent; background: var(--brand-soft); color: var(--brand-strong); }
/* « Mes commandes » : bouton bleu, comme les boutons principaux du site. */
.order-tray-button.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-action, var(--brand)), var(--brand-gradient-end, var(--brand)));
    color: var(--brand-action-ink, #ffffff);
}
.order-tray-button.is-primary:hover { background: linear-gradient(135deg, var(--brand-action-strong, var(--brand-strong)), var(--brand-action, var(--brand))); }
.order-tray-button.is-soft:hover { background: color-mix(in srgb, var(--brand) 18%, var(--panel)); }

/* Bulle : ou le suivi est range, puis le resultat. Sa place depend de l'ecran. */
.order-tray-callout {
    --status-color: var(--brand);
    position: fixed;
    z-index: 71;
    max-width: 300px;
    pointer-events: none;
}
.order-tray-callout.is-shown { pointer-events: auto; }
.order-tray-callout-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 18px 10px 10px;
    border: 1px solid color-mix(in srgb, var(--status-color) 24%, var(--line));
    border-radius: 18px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: -16px 24px 50px -22px rgba(7, 30, 68, .45), 0 6px 16px -8px rgba(7, 30, 68, .2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), opacity .25s ease, visibility 0s linear .55s;
}
:root[data-theme="dark"] .order-tray-callout-card { box-shadow: -16px 24px 50px -22px rgba(0, 0, 0, .72), 0 6px 16px -8px rgba(0, 0, 0, .45); }
.order-tray-callout.is-shown .order-tray-callout-card {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), opacity .2s ease;
}
.order-tray-callout-card::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: inherit;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 4px 0 0;
    background: var(--panel);
}
.order-tray-callout-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}
.order-tray-callout-shine::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
    opacity: 0;
}
.order-tray-callout-icon {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--status-color) 14%, transparent);
    color: var(--status-color);
}
.order-tray-callout-icon > span { display: none; }
.order-tray-callout[data-kind="hint"] [data-callout-icon="hint"],
.order-tray-callout[data-kind="success"] [data-callout-icon="success"],
.order-tray-callout[data-kind="fail"] [data-callout-icon="fail"] { display: grid; }
.order-tray-callout-text { position: relative; display: grid; gap: 2px; min-width: 0; }
.order-tray-callout-text strong {
    color: var(--ink-strong);
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.order-tray-callout-text span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-tray-callout[data-kind="success"] .order-tray-callout-card,
.order-tray-callout[data-kind="fail"] .order-tray-callout-card {
    border-color: transparent;
    background: linear-gradient(105deg, color-mix(in srgb, var(--status-color) 82%, #ffffff) 0%, var(--status-color) 55%, color-mix(in srgb, var(--status-color) 86%, #000000) 100%);
    color: #ffffff;
    box-shadow: -16px 24px 50px -20px color-mix(in srgb, var(--status-color) 70%, transparent), 0 8px 20px -10px rgba(7, 30, 68, .35);
}
.order-tray-callout[data-kind="success"] .order-tray-callout-card::after,
.order-tray-callout[data-kind="fail"] .order-tray-callout-card::after { background: color-mix(in srgb, var(--status-color) 86%, #000000); }
.order-tray-callout[data-kind="success"] .order-tray-callout-icon,
.order-tray-callout[data-kind="fail"] .order-tray-callout-icon { background: rgba(255, 255, 255, .2); color: #ffffff; }
.order-tray-callout[data-kind="success"] .order-tray-callout-text strong,
.order-tray-callout[data-kind="fail"] .order-tray-callout-text strong { color: #ffffff; }
.order-tray-callout[data-kind="success"] .order-tray-callout-text span,
.order-tray-callout[data-kind="fail"] .order-tray-callout-text span { color: rgba(255, 255, 255, .86); }
.order-tray-callout.is-shown .order-tray-callout-icon { animation: order-pill-pop .45s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
.order-tray-callout.is-shown[data-kind="success"] .order-tray-callout-shine::before,
.order-tray-callout.is-shown[data-kind="fail"] .order-tray-callout-shine::before { animation: order-tray-shine 1.1s cubic-bezier(.4, 0, .2, 1) .35s both; }
.order-tray-callout.is-shown[data-kind="fail"] .order-tray-callout-card { animation: order-rail-shake .45s ease-in-out .5s; }

/* Eclair sur le bord de l'ecran, du cote de la languette ou de la barre. */
.order-tray-glow {
    --status-color: var(--brand);
    position: fixed;
    z-index: 69;
    opacity: 0;
    pointer-events: none;
}
.order-tray-glow.is-flashing { animation: order-tray-flash 2.2s ease-out both; }

/* ── Anneau de suivi : languette (ordinateur) et bulle (telephone) ── */
.order-tray-tab[data-state="ready"],
.order-tray-tab[data-state="failed"] {
    border-color: color-mix(in srgb, var(--status-color) 50%, var(--line));
    background: color-mix(in srgb, var(--status-color) 11%, var(--panel));
}
.order-tray-ring {
    position: relative;
    z-index: 0;
    display: block;
    width: 42px;
    height: 42px;
    color: var(--status-color);
}
.order-tray-ring-svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.order-tray-ring-track { fill: none; stroke: color-mix(in srgb, var(--status-color) 16%, var(--line)); stroke-width: 3.5; }
.order-tray-ring-arc {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 106.81;
    stroke-dashoffset: 106.81;
    transition: stroke-dashoffset .45s cubic-bezier(.22, .8, .36, 1), stroke .3s ease;
}
.order-tray-core,
.order-tray-tab-label { color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong)); }
:root[data-theme="dark"] .order-tray-core,
:root[data-theme="dark"] .order-tray-tab-label { color: color-mix(in srgb, var(--status-color) 45%, #ffffff); }
.order-tray-core {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.order-tray-glyph {
    position: absolute;
    inset: 12px;
    display: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.order-tray-glyph path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.order-tray-tab[data-glyph="check"] .order-tray-glyph-check,
.order-tray-tab[data-glyph="x"] .order-tray-glyph-x { display: block; }
.order-tray-tab-label {
    max-width: 100%;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-tray-burst { position: absolute; inset: 0; pointer-events: none; }
.order-tray-burst::before,
.order-tray-burst::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
}
.order-tray-burst::before {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 2px solid var(--status-color);
    border-radius: 50%;
}
.order-tray-burst::after {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    color: var(--status-color);
    box-shadow:
        0 -27px 0 0 currentColor, 19px -19px 0 -.5px currentColor,
        27px 0 0 0 currentColor, 19px 19px 0 -.5px currentColor,
        0 27px 0 0 currentColor, -19px 19px 0 -.5px currentColor,
        -27px 0 0 0 currentColor, -19px -19px 0 -.5px currentColor;
}

/* Languette vivante : la comete tourne et le halo respire tant qu'une commande
   tourne ; une onde repart tant qu'un resultat attend d'etre ouvert. */
.order-tray-tab::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: var(--status-color);
    opacity: 0;
    pointer-events: none;
}
.order-tray-ring::before,
.order-tray-ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}
.order-tray-ring::before {
    z-index: -1;
    inset: -10px;
    background: radial-gradient(circle, color-mix(in srgb, var(--status-color) 52%, transparent) 0%, transparent 70%);
}
.order-tray-ring::after { inset: 0; border: 2px solid var(--status-color); }
.order-tray-comet {
    position: absolute;
    inset: 1px;
    display: none;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0turn .66turn, var(--comet-color) 1turn);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.9px), #000 calc(100% - 3.4px), #000 calc(100% - .4px), transparent 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3.9px), #000 calc(100% - 3.4px), #000 calc(100% - .4px), transparent 100%);
}
.order-tray-tab[data-state="running"] .order-tray-comet { display: block; animation: order-tray-orbit 1.7s linear infinite; }
.order-tray-tab[data-state="running"] .order-tray-ring::before { animation: order-tray-breathe 2.4s ease-in-out infinite alternate; }
.order-tray-tab[data-state="ready"] .order-tray-ring::before,
.order-tray-tab[data-state="failed"] .order-tray-ring::before { opacity: .75; }
.order-tray-tab[data-state="ready"] .order-tray-ring::after,
.order-tray-tab[data-state="failed"] .order-tray-ring::after { animation: order-tray-ping 2.6s cubic-bezier(.2, .6, .35, 1) .8s infinite; }

/* Changement de statut : l'anneau se colore et lance deux ondes. */
.order-tray-tab[data-effect="success"]::after,
.order-tray-tab[data-effect="fail"]::after { animation: order-tray-fill 1.9s ease-out both; }
.order-tray-tab[data-effect] .order-tray-burst::before { animation: order-tray-wave .9s cubic-bezier(.2, .7, .3, 1) .15s 2 both; }
.order-tray-tab[data-effect="success"] .order-tray-burst::after { animation: order-rail-spark .75s cubic-bezier(.15, .7, .3, 1) .2s both; }
.order-tray-tab[data-effect] .order-tray-glyph path { animation: order-tray-draw .35s ease-out .3s both; }
.order-tray-tab[data-effect] .order-tray-glyph-x path + path { animation-delay: .45s; }
.order-tray-tab[data-effect="fail"] .order-tray-ring { animation: order-rail-shake .42s ease-in-out .3s both; }
.order-tray-tab[data-effect] .order-tray-tab-label { animation: order-pill-pop .35s cubic-bezier(.34, 1.56, .64, 1) .35s both; }

/* Le suivi se range : l'anneau lance deux ondes a l'arrivee. */
.order-tray.is-docking .order-tray-ring::after { animation: order-tray-ping 1s cubic-bezier(.2, .6, .35, 1) .75s 2 both; }
.order-tray.is-open .order-tray-comet,
.order-tray.is-open .order-tray-ring::before,
.order-tray.is-open .order-tray-ring::after,
.order-tray.is-empty .order-tray-comet,
.order-tray.is-empty .order-tray-ring::before,
.order-tray.is-empty .order-tray-ring::after { animation: none; }

/* ── Ordinateur : languette sur le cote, tiroir lateral ── */
@media (min-width: 1024px) {
    .order-tray-tab {
        --status-color: var(--brand);
        --comet-color: color-mix(in srgb, var(--status-color) 50%, #0b1b2e);
        position: fixed;
        z-index: 70;
        /* Place choisie par le client (glissee le long du bord), sinon le milieu. */
        top: var(--tray-tab-y, 50%);
        right: 0;
        display: grid;
        justify-items: center;
        gap: 7px;
        width: 70px;
        padding: 14px 8px 13px 10px;
        border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
        border-right: 0;
        border-radius: 22px 0 0 22px;
        background: color-mix(in srgb, var(--panel) 97%, transparent);
        color: var(--ink);
        box-shadow: -14px 20px 44px -18px rgba(7, 30, 68, .38), -2px 4px 12px -4px rgba(7, 30, 68, .14);
        font: inherit;
        cursor: pointer;
        touch-action: none;
        transform: translate(0, -50%);
        transition: transform .45s var(--dash-ease), opacity .3s ease, box-shadow .25s ease, border-color .3s ease;
    }
    .order-tray-tab::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(160deg, rgba(255, 255, 255, .12), transparent 45%);
        pointer-events: none;
    }
    :root[data-theme="dark"] .order-tray-tab {
        --comet-color: color-mix(in srgb, var(--status-color) 22%, #ffffff);
        box-shadow: -14px 20px 44px -18px rgba(0, 0, 0, .62), -2px 4px 12px -4px rgba(0, 0, 0, .34);
    }
    :root[data-theme="dark"] .order-tray-tab::before { background: linear-gradient(160deg, rgba(255, 255, 255, .06), transparent 45%); }
    .order-tray-tab:hover { transform: translate(-5px, -50%); }
    .order-tray.is-moving .order-tray-tab { cursor: grabbing; }
    .order-tray-tab:focus-visible { outline: none; box-shadow: var(--ring), -14px 20px 44px -18px rgba(7, 30, 68, .38); }
    .order-tray.is-open .order-tray-tab,
    .order-tray.is-empty .order-tray-tab {
        opacity: 0;
        pointer-events: none;
        transform: translate(115%, -50%);
    }
    /* Au repos (rien n'attend) : la languette reste 24 h, neutre et immobile, avec le
       nombre de commandes du jour. Elle s'eveille des qu'une commande part. */
    .order-tray-tab[data-state="quiet"] {
        --status-color: var(--muted);
        box-shadow: -8px 12px 30px -20px rgba(7, 30, 68, .3), -1px 2px 8px -4px rgba(7, 30, 68, .1);
    }
    :root[data-theme="dark"] .order-tray-tab[data-state="quiet"] { box-shadow: -8px 12px 30px -20px rgba(0, 0, 0, .55), -1px 2px 8px -4px rgba(0, 0, 0, .3); }
    .order-tray-tab[data-state="quiet"] .order-tray-core { font-size: 13px; }
    /* Changement de statut : la languette bondit sur le cote. */
    .order-tray-tab[data-effect] { animation: order-tray-nudge .85s cubic-bezier(.34, 1.56, .64, 1) both; }
    /* Le tiroir se range : la languette arrive en ressort. */
    .order-tray.is-docking .order-tray-tab { animation: order-tray-dock .95s cubic-bezier(.3, 1.3, .5, 1) .2s both; }

    .order-tray-callout {
        top: var(--tray-tab-y, 50%);
        right: 86px;
        transform: translateY(-50%);
    }
    .order-tray-callout-card {
        transform: translateX(26px) scale(.94);
        transform-origin: 100% 50%;
    }
    .order-tray-callout-card::after {
        top: 50%;
        right: -7px;
        margin-top: -6.5px;
        transform: rotate(45deg);
    }
    /* Quand la place a gauche de la languette est prise (carte, bouton), la
       bulle se range sous ou au-dessus d'elle, collee au bord droit, la fleche
       tournee vers la languette (order-tray.js, 23/11/2026). */
    .order-tray-callout.is-below,
    .order-tray-callout.is-above {
        top: var(--hint-top, 50%);
        right: 14px;
        transform: none;
    }
    .order-tray-callout.is-below .order-tray-callout-card,
    .order-tray-callout.is-above .order-tray-callout-card { transform: translateY(-14px) scale(.94); transform-origin: calc(100% - 32px) 0; }
    .order-tray-callout.is-above .order-tray-callout-card { transform: translateY(14px) scale(.94); transform-origin: calc(100% - 32px) 100%; }
    .order-tray-callout.is-shown.is-below .order-tray-callout-card,
    .order-tray-callout.is-shown.is-above .order-tray-callout-card { transform: none; }
    .order-tray-callout.is-below .order-tray-callout-card::after {
        top: -7px;
        right: 28px;
        margin-top: 0;
        transform: rotate(-45deg);
    }
    .order-tray-callout.is-above .order-tray-callout-card::after {
        top: auto;
        bottom: -7px;
        right: 28px;
        margin-top: 0;
        transform: rotate(135deg);
    }
    .order-tray-glow {
        top: var(--tray-tab-y, 50%);
        right: 0;
        width: 220px;
        height: 72vh;
        background: radial-gradient(ellipse 100% 50% at 100% 50%, color-mix(in srgb, var(--status-color) 42%, transparent), transparent 72%);
        transform: translateY(-50%);
    }

    .order-tray-drawer {
        top: 12px;
        right: 12px;
        bottom: 12px;
        width: min(420px, calc(100vw - 24px));
        border-radius: 26px;
        box-shadow: 0 40px 90px -30px rgba(7, 30, 68, .42), 0 14px 36px -14px rgba(7, 30, 68, .24);
        opacity: 0;
        /* Ferme, il se replie dans la languette ; ouvert, il en sort (la ou elle est). */
        transform: translateX(24px) scale(.14);
        transform-origin: 100% var(--tray-origin-y, 50%);
        transition: transform .5s cubic-bezier(.55, 0, .7, .2), opacity .4s cubic-bezier(.55, 0, 1, .45) .08s, visibility 0s linear .5s;
    }
    :root[data-theme="dark"] .order-tray-drawer { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .72), 0 14px 36px -14px rgba(0, 0, 0, .5); }
    .order-tray.is-open .order-tray-drawer {
        opacity: 1;
        transform: none;
        transition: transform .6s cubic-bezier(.2, 1, .3, 1), opacity .22s ease;
    }
}

/* ── Telephone et tablette : barre de suivi en bas, feuille qui monte du bas ── */
@media (max-width: 1023.98px) {
    .order-tray-tab,
    .order-tray-pc-only { display: none; }
    .order-tray-phone-only { display: inline; }
    .order-tray-icon > .order-tray-pc-only { display: none; }
    .order-tray-icon > .order-tray-phone-only { display: grid; }
    /* « Dernieres 24 h » aussi sur telephone, sous ce qui attend (decision du 27/09 soir). */
    html.has-order-tray-bar .ui-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
    html.is-tray-locked { overflow: hidden; }
    /* Widget colle en console (WhatsApp, #ur-wa) : il s'efface sous la feuille ouverte. */
    html.is-tray-locked #ur-wa { visibility: hidden; }

    .order-tray-bar {
        --status-color: var(--brand);
        position: fixed;
        z-index: 70;
        left: 10px;
        /* Un widget flottant dans le coin (WhatsApp) : la barre s'arrete avant lui. */
        right: var(--tray-bar-right, 10px);
        bottom: calc(10px + env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 560px;
        min-height: 62px;
        margin: 0 auto;
        padding: 0 14px 0 12px;
        box-sizing: border-box;
        border: 1px solid color-mix(in srgb, var(--status-color) 30%, var(--line));
        border-radius: 18px;
        background: var(--panel);
        color: var(--ink);
        box-shadow: 0 18px 40px -18px rgba(7, 30, 68, .45), 0 4px 12px -6px rgba(7, 30, 68, .2);
        font: inherit;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform .45s var(--dash-ease), opacity .3s ease, border-color .3s ease;
    }
    :root[data-theme="dark"] .order-tray-bar { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 4px 12px -6px rgba(0, 0, 0, .4); }
    .order-tray-bar:active { transform: scale(.985); }
    .order-tray-bar:focus-visible { outline: none; box-shadow: var(--ring); }
    .order-tray.is-open .order-tray-bar,
    .order-tray.is-empty .order-tray-bar {
        opacity: 0;
        pointer-events: none;
        transform: translateY(130%);
    }
    /* Barre cachee (feuille ouverte ou rien a suivre) : ses reflets ne tournent pas pour rien. */
    .order-tray.is-open .order-tray-bar .order-live-wash::after,
    .order-tray.is-open .order-tray-bar .order-live-line::before,
    .order-tray.is-empty .order-tray-bar .order-live-wash::after,
    .order-tray.is-empty .order-tray-bar .order-live-line::before { animation: none; }
    .order-tray-bar::after {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0;
        border-radius: inherit;
        background: var(--status-color);
        opacity: 0;
        pointer-events: none;
    }
    .order-tray-bar-pill { flex: none; display: inline-flex; }
    .order-tray-bar-text { flex: 1; display: grid; gap: 1px; min-width: 0; }
    .order-tray-bar-text strong,
    .order-tray-bar-text span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .order-tray-bar-text strong { color: var(--ink-strong); font-size: 13.5px; font-weight: 750; line-height: 1.3; }
    .order-tray-bar-text span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
    .order-tray-bar-icon { flex: none; display: grid; place-items: center; color: var(--brand); transform: rotate(180deg); }
    .order-tray-bar[data-effect] { animation: order-tray-bar-nudge .7s cubic-bezier(.34, 1.56, .64, 1) both; }
    .order-tray-bar[data-effect="success"]::after,
    .order-tray-bar[data-effect="fail"]::after { animation: order-tray-fill 1.9s ease-out both; }
    .order-tray-bar[data-effect="fail"] .order-tray-bar-pill { animation: order-rail-shake .42s ease-in-out .3s both; }
    .order-tray.is-docking .order-tray-bar { animation: order-tray-bar-dock .8s cubic-bezier(.3, 1.3, .5, 1) .15s both; }
    /* Glisser la barre vers la droite la range ; le defilement vertical reste libre. */
    .order-tray-bar { touch-action: pan-y; }
    .order-tray-bar.is-swiping { transition: none; }

    /* Barre rangee : une bulle ronde dans le coin, la languette du PC en petit. La
       barre ne s'affiche en entier qu'apres la fermeture du suivi et quand un
       resultat arrive ; un toucher sur la bulle ouvre le suivi. */
    .order-tray.is-tucked .order-tray-bar {
        opacity: 0;
        pointer-events: none;
        transform: translateX(calc(100% + 16px));
        animation: none;
    }
    .order-tray.is-tucked .order-tray-bar .order-live-wash::after,
    .order-tray.is-tucked .order-tray-bar .order-live-line::before { animation: none; }
    .order-tray.is-tucked .order-tray-tab {
        --status-color: var(--brand);
        --comet-color: color-mix(in srgb, var(--status-color) 50%, #0b1b2e);
        position: fixed;
        z-index: 70;
        right: 14px;
        /* Coin de l'ecran, ou plus haut : glissee par le client, ou posee au-dessus d'un
           widget flottant (WhatsApp). */
        bottom: calc(14px + env(safe-area-inset-bottom) + var(--tray-bubble-lift, 0px));
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        padding: 0;
        box-sizing: border-box;
        border: 1px solid color-mix(in srgb, var(--status-color) 34%, var(--line));
        border-radius: 50%;
        background: var(--panel);
        color: var(--ink);
        box-shadow: 0 16px 32px -14px rgba(7, 30, 68, .5), 0 4px 10px -4px rgba(7, 30, 68, .22);
        font: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform .35s var(--dash-ease), opacity .25s ease, border-color .3s ease;
    }
    :root[data-theme="dark"] .order-tray.is-tucked .order-tray-tab {
        --comet-color: color-mix(in srgb, var(--status-color) 22%, #ffffff);
        box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .7), 0 4px 10px -4px rgba(0, 0, 0, .4);
    }
    .order-tray.is-tucked .order-tray-tab[data-state="ready"],
    .order-tray.is-tucked .order-tray-tab[data-state="failed"] {
        border-color: color-mix(in srgb, var(--status-color) 50%, var(--line));
        background: color-mix(in srgb, var(--status-color) 11%, var(--panel));
    }
    .order-tray.is-tucked .order-tray-tab:active { transform: scale(.94); }
    .order-tray.is-tucked .order-tray-tab:focus-visible { outline: none; box-shadow: var(--ring); }
    .order-tray.is-tucked .order-tray-tab-label { display: none; }
    .order-tray.is-tucked .order-tray-ring { width: 44px; height: 44px; }
    .order-tray.is-tucked .order-tray-core { font-size: 12px; }
    /* Au repos (rien n'attend) : la bulle reste 24 h, neutre et immobile, avec le nombre
       de commandes des dernieres 24 h. Elle s'eveille des qu'une commande part. */
    .order-tray.is-tucked .order-tray-tab[data-state="quiet"] {
        --status-color: var(--muted);
        box-shadow: 0 10px 24px -14px rgba(7, 30, 68, .36), 0 2px 8px -4px rgba(7, 30, 68, .14);
    }
    :root[data-theme="dark"] .order-tray.is-tucked .order-tray-tab[data-state="quiet"] { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6), 0 2px 8px -4px rgba(0, 0, 0, .34); }
    .order-tray.is-tucked .order-tray-tab[data-state="quiet"] .order-tray-core { font-size: 13px; }
    /* Glissee le long du bord droit : elle suit le doigt ; la page ne defile pas dessous. */
    .order-tray.is-tucked .order-tray-tab { touch-action: none; }
    .order-tray.is-moving .order-tray-tab { transition: none; }
    .order-tray.is-open .order-tray-tab,
    .order-tray.is-empty .order-tray-tab {
        opacity: 0;
        pointer-events: none;
        transform: scale(.6);
    }
    .order-tray.is-tucked .order-tray-tab[data-effect] { animation: order-tray-bubble-nudge .8s cubic-bezier(.34, 1.56, .64, 1) both; }
    .order-tray.is-tucked.is-docking .order-tray-tab { animation: order-tray-bubble-in .6s cubic-bezier(.3, 1.3, .5, 1) .1s both; }

    /* Saisie dans un champ (IMEI, e-mail...) : le suivi s'efface, puis revient. */
    .order-tray.is-typing .order-tray-bar,
    .order-tray.is-typing .order-tray-tab {
        opacity: 0;
        pointer-events: none;
    }
    .order-tray.is-typing .order-tray-callout { display: none; }

    .order-tray-scrim {
        display: block;
        position: fixed;
        z-index: 74;
        inset: 0;
        background: rgba(4, 10, 20, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility 0s linear .3s;
    }
    .order-tray.is-open .order-tray-scrim { opacity: 1; visibility: visible; transition: opacity .3s ease; }

    .order-tray-drawer {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: 640px;
        height: min(88vh, 760px);
        height: min(88dvh, 760px);
        margin: 0 auto;
        padding-bottom: env(safe-area-inset-bottom);
        border-bottom: 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -24px 60px -24px rgba(7, 30, 68, .5);
        transform: translateY(104%);
        transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s;
    }
    :root[data-theme="dark"] .order-tray-drawer { box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .75); }
    .order-tray.is-open .order-tray-drawer {
        transform: none;
        transition: transform .5s cubic-bezier(.32, .72, 0, 1);
    }
    .order-tray.is-open .order-tray-drawer.is-dragging { transition: none; }
    /* Poignee posee sur l'entete bleu. */
    .order-tray-handle {
        display: block;
        position: absolute;
        z-index: 2;
        top: 9px;
        left: 50%;
        width: 40px;
        height: 5px;
        margin-left: -20px;
        border-radius: 99px;
        background: rgba(255, 255, 255, .5);
    }
    .order-tray-handle,
    .order-tray-head { touch-action: none; }
    .order-tray-head { padding: 24px 14px 14px 16px; }
    .order-tray-logo { width: 54px; height: 38px; border-radius: 11px; }
    .order-tray-live { margin: 14px 16px 0; }
    .order-tray-long { margin: 10px 16px 0; }
    .order-tray-body .order-detail-content { padding: 14px 16px 18px; }
    .order-tray-foot { padding: 12px 16px 14px; }
    .order-tray-list { padding: 12px 12px 14px; }
    .order-tray-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 10px 11px; }
    .order-tray-thumb { width: 44px; height: 32px; border-radius: 10px; }
    .order-tray-row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .order-tray-callout {
        left: 12px;
        right: 12px;
        bottom: calc(86px + env(safe-area-inset-bottom));
        max-width: 460px;
        margin: 0 auto;
    }
    .order-tray-callout-card {
        transform: translateY(14px) scale(.96);
        transform-origin: 50% 100%;
    }
    .order-tray-callout-card::after {
        bottom: -7px;
        left: 50%;
        margin-left: -6.5px;
        transform: rotate(135deg);
    }
    .order-tray.is-tucked .order-tray-callout {
        left: auto;
        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom) + var(--tray-bubble-lift, 0px));
        width: min(320px, calc(100vw - 24px));
        margin: 0;
    }
    .order-tray.is-tucked .order-tray-callout-card { transform-origin: calc(100% - 29px) 100%; }
    .order-tray.is-tucked .order-tray-callout-card::after { left: auto; right: 22px; margin-left: 0; }
    .order-tray.is-tucked .order-tray-callout-text span { white-space: normal; }
    .order-tray-glow {
        left: 0;
        right: 0;
        bottom: 0;
        height: 170px;
        background: radial-gradient(ellipse 70% 100% at 50% 100%, color-mix(in srgb, var(--status-color) 45%, transparent), transparent 72%);
    }
}
@keyframes order-tray-nudge {
    0% { transform: translate(0, -50%); }
    30% { transform: translate(-16px, -50%) scale(1.07); }
    62% { transform: translate(-3px, -50%) scale(.99); }
    100% { transform: translate(0, -50%); }
}
@keyframes order-tray-wave {
    0% { opacity: .7; transform: scale(.85); }
    100% { opacity: 0; transform: scale(2.1); }
}
@keyframes order-tray-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}
@keyframes order-tray-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes order-tray-orbit {
    to { transform: rotate(1turn); }
}
@keyframes order-tray-breathe {
    from { opacity: .3; transform: scale(.84); }
    to { opacity: 1; transform: scale(1.14); }
}
@keyframes order-tray-ping {
    0% { opacity: .65; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.85); }
}
@keyframes order-tray-dock {
    0% { opacity: 0; transform: translate(115%, -50%); }
    55% { opacity: 1; transform: translate(-14px, -50%); }
    78% { transform: translate(3px, -50%); }
    100% { opacity: 1; transform: translate(0, -50%); }
}
@keyframes order-tray-bar-dock {
    0% { opacity: 0; transform: translateY(130%); }
    60% { opacity: 1; transform: translateY(-6px); }
    100% { opacity: 1; transform: none; }
}
@keyframes order-tray-bar-nudge {
    0% { transform: none; }
    30% { transform: translateY(-10px) scale(1.02); }
    62% { transform: translateY(2px) scale(.995); }
    100% { transform: none; }
}
@keyframes order-tray-bubble-in {
    0% { opacity: 0; transform: scale(.4); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: none; }
}
@keyframes order-tray-bubble-nudge {
    0% { transform: none; }
    30% { transform: scale(1.14); }
    62% { transform: scale(.96); }
    100% { transform: none; }
}
@keyframes order-tray-fill {
    0% { opacity: 0; }
    18% { opacity: .3; }
    100% { opacity: 0; }
}
@keyframes order-tray-flash {
    0% { opacity: 0; }
    14% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes order-tray-shine {
    0% { opacity: 0; transform: translateX(-120%) skewX(-18deg); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateX(260%) skewX(-18deg); }
}

/* Fiche dans le tiroir : resultat d'abord, le detail replie en bas. */
.order-detail-content.is-drawer > .order-detail-section:first-child { padding-top: 0; border-top: 0; }
.order-detail-more { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.order-detail-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}
.order-detail-more > summary::-webkit-details-marker { display: none; }
.order-detail-more > summary svg { color: var(--muted); transition: transform .2s ease; }
.order-detail-more[open] > summary svg { transform: rotate(180deg); }
.order-detail-more > .order-moments-grid { margin-bottom: 4px; }
/* Tiroir : « Details de la commande » en trois colonnes (passee, reponse, envoi),
   l'heure en gras, le jour dessous s'il n'est pas aujourd'hui. */
.order-moments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 14px;
    background: var(--panel);
}
.order-moments-grid > div { min-width: 0; padding: 11px 12px; }
.order-moments-grid > div + div { border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.order-moments-grid dt { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.order-moments-grid dd {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-moments-grid dd small { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; }
.order-moments-grid dd.is-empty { color: var(--muted); }
/* Tiroir : les champs envoyes forment un bloc a part, en tete de la fiche. Une ligne
   par champ, libelles alignes a gauche, valeurs a droite, dans l'ordre du formulaire. */
.order-detail-content.is-drawer > .order-detail-section.order-sent-fields,
.order-detail-content.is-drawer > .order-detail-section.order-sent-fields:first-child {
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
    border-radius: 14px;
    background: var(--panel);
}
.order-sent-fields .order-sent-fields-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line));
    background: color-mix(in srgb, var(--brand) 6%, var(--panel));
}
.order-sent-fields-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
}
.order-sent-fields .order-field-list { padding: 0 14px; }
.order-sent-fields .order-field-list div {
    grid-template-columns: minmax(84px, 32%) minmax(0, 1fr);
    gap: 3px 12px;
    padding: 10px 0;
    border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
}
.order-sent-fields .order-field-list div:first-child { padding-top: 11px; }
.order-sent-fields .order-field-list div:last-child { padding-bottom: 12px; }
.order-sent-fields .order-field-list span { line-height: 1.45; }
.order-sent-fields .order-field-list strong { font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; text-align: right; }
/* La reponse suit le bloc sans second trait de separation. */
.order-detail-content.is-drawer > .order-sent-fields + .order-detail-section { padding-top: 2px; border-top: 0; }

@media (prefers-reduced-motion: reduce) {
    .order-tray-tab,
    .order-tray-bar,
    .order-tray-drawer,
    .order-tray.is-open .order-tray-drawer,
    .order-tray-scrim,
    .order-tray.is-open .order-tray-scrim,
    .order-tray-callout-card,
    .order-tray-callout.is-shown .order-tray-callout-card,
    .order-tray-ring-arc,
    .order-tray-row,
    .order-tray.is-tucked .order-tray-tab,
    .order-detail-more > summary svg { transition: none; }
    .order-tray.is-tucked .order-tray-tab[data-effect],
    .order-tray.is-tucked.is-docking .order-tray-tab,
    .order-tray-tab[data-effect],
    .order-tray-tab[data-effect] .order-tray-burst::before,
    .order-tray-tab[data-effect] .order-tray-burst::after,
    .order-tray-tab[data-effect] .order-tray-glyph path,
    .order-tray-tab[data-effect] .order-tray-ring,
    .order-tray-tab[data-effect] .order-tray-tab-label,
    .order-tray-tab[data-effect="success"]::after,
    .order-tray-tab[data-effect="fail"]::after,
    .order-tray-tab[data-state="running"] .order-tray-comet,
    .order-tray-tab[data-state="running"] .order-tray-ring::before,
    .order-tray-tab[data-state="ready"] .order-tray-ring::after,
    .order-tray-tab[data-state="failed"] .order-tray-ring::after,
    .order-tray.is-docking .order-tray-tab,
    .order-tray.is-docking .order-tray-ring::after,
    .order-tray-bar[data-effect],
    .order-tray-bar[data-effect="success"]::after,
    .order-tray-bar[data-effect="fail"]::after,
    .order-tray-bar[data-effect="fail"] .order-tray-bar-pill,
    .order-tray.is-docking .order-tray-bar,
    .order-tray-callout.is-shown .order-tray-callout-icon,
    .order-tray-callout.is-shown[data-kind="success"] .order-tray-callout-shine::before,
    .order-tray-callout.is-shown[data-kind="fail"] .order-tray-callout-shine::before,
    .order-tray-callout.is-shown[data-kind="fail"] .order-tray-callout-card,
    .order-tray.is-open .order-tray-head,
    .order-tray.is-open .order-tray-live,
    .order-tray.is-open .order-tray-list,
    .order-tray-long,
    .order-tray-body.is-in .order-detail-content > * { animation: none; }
}

/* ── Verification iCloud gratuite + bulle unique du coin (30/09/2026) ──
   Seule, la verification a sa bulle (pastille « Verifier iCloud · Gratuit » sur
   ordinateur) ; avec l'assistant, une bulle unique ouvre un menu a deux choix.
   Fenetre au-dessus de la bulle sur ordinateur, plein ecran sur telephone.
   Transitions en transform/opacity seulement (vieux PC). */

/* Lecture de l'IMEI sur une photo (30/09/2026), composant x-imei-scan :
   bulle iCloud et champs IMEI des commandes. Icone scanner dans le champ, menu
   camera / galerie, trait de scanner sur la miniature pendant la lecture
   (transform seul : vieux PC). */

/* Caches a l'oeil, pas au navigateur : iOS n'ouvre pas un champ fichier en display:none. */

/* Bulle iCloud : champ haut de 54 px, bouton a sa mesure. */

/* Numero pose par la lecture : « Verifier » invite une fois au toucher. */

/* Bulle unique : menu a deux choix au-dessus de la bulle. */

/* ════════════════════════════════════════════════════════════════════════
   Parrainage : page client « La Console » (piste B, 04/10/2026), carte du
   tableau de bord, bandeau d'invitation, case « location offerte », partage
   apres commande, classement public. Uniquement des jetons : le theme sombre
   et les reglages d'apparence (--dash-*) suivent seuls.
   ══════════════════════════════════════════════════════════════════════ */
.ref-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}
.ref-pill.ok { background: var(--ok-soft); color: var(--ok); }
.ref-pill.warn { background: var(--warn-soft); color: var(--warn); }
.ref-pill.bad { background: var(--bad-soft); color: var(--bad); }
.ref-pill.violet { background: var(--brand-soft); color: var(--brand-strong); }
.ref-note { margin: 0; padding: 12px var(--dash-pad, 18px) 14px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.ref-note.is-warn { color: var(--warn); }
.ref-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Bouton WhatsApp : vert assez fonce pour un texte blanc lisible (AA). */
.button.ref-wa { background: #0d7f48; box-shadow: 0 8px 20px rgba(13, 127, 72, .24); color: #fff; }
.button.ref-wa:hover { background: #0b6e3e; box-shadow: 0 12px 26px rgba(13, 127, 72, .3); color: #fff; }

/* Corps de carte : icone, texte, action (tableau de bord, filleul) */
.ref-card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: var(--dash-row-y, 14px) var(--dash-pad, 18px);
}
.ref-card-ic,
.ref-invite-ic,
.ref-voucher-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--gold) 20%, var(--panel));
    color: color-mix(in srgb, var(--gold) 55%, var(--ink-strong));
}
.ref-card-tx,
.ref-invite-tx,
.ref-voucher-tx { display: grid; gap: 3px; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.ref-card-tx strong,
.ref-invite-tx strong,
.ref-voucher-tx strong { color: var(--ink-strong); font-family: var(--font-head); font-size: 14px; font-weight: 800; }
.ref-card-tx small,
.ref-voucher-tx small { color: var(--muted); font-size: 12px; }
.ref-card-body .button { white-space: nowrap; }

/* Saisie tardive du code */
.ref-attach { display: grid; gap: 10px; padding: var(--dash-row-y, 14px) var(--dash-pad, 18px) 16px; }
.ref-attach p { margin: 0; color: var(--muted); font-size: 13px; }
.ref-attach-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-attach-row input { flex: 1 1 200px; min-height: 44px; border-radius: 10px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ref-attach-row input::placeholder { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Programme pas encore ouvert */
.ref-soon { display: grid; justify-items: center; gap: 10px; padding: clamp(28px, 5vw, 48px) 20px; text-align: center; }
.ref-soon h1 { margin: 0; color: var(--ink-strong); font-family: var(--font-head); font-size: 20px; font-weight: 800; text-transform: none; }
.ref-soon p { margin: 0 0 6px; max-width: 46ch; color: var(--muted); font-size: 14px; }
.ref-soon-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 20%, var(--panel)); color: color-mix(in srgb, var(--gold) 55%, var(--ink-strong)); }

/* Bandeau d'invitation (inscription) */
.ref-invite {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--gold) 12%, var(--panel));
}

/* Case « Utiliser 1 location offerte » (fiche service) */

/* ── Page « Mon parrainage » : bandeau du design A ────────────────────── */
.ref-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.acct-band .ref-band-code strong { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; }
/* Le lien à donner, après le filet : lisible et sélectionnable d'un geste. */
.ref-band-link { margin: 0; color: #ffffff; font-family: var(--font-mono); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.acct-band .button.ref-wa { min-height: 46px; border-radius: 10px; background: #25d366; box-shadow: none; color: #05301a; }
.acct-band .button.ref-wa:hover { background: #3fdd7d; box-shadow: none; color: #05301a; }
.ref-blocked { margin: 0; }

/* Panneaux : memes reglages d'apparence que les cartes du tableau de bord */
.ref-panel,
.ref-kpi {
    min-width: 0;
    border: 1px solid var(--dash-card-border, var(--line));
    border-radius: var(--dash-card-radius, var(--r-lg));
    background: var(--dash-card-bg, var(--panel));
    box-shadow: var(--dash-card-shadow, var(--shadow-sm));
}
:root[data-card-style="glass"] .ref-panel,
:root[data-card-style="glass"] .ref-kpi { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ref-panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.ref-panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ref-panel h2 { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 700; letter-spacing: -.005em; line-height: 1.45; }
.ref-panel-meta { color: var(--muted); font-size: 12.5px; }
.ref-panel-link,
.ref-kpi-link,
.ref-arrow-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-strong); font-size: 13px; font-weight: 600; }
.ref-panel-link:hover,
.ref-kpi-link:hover,
.ref-arrow-link:hover { text-decoration: underline; }
.ref-panel .ref-note,
.ref-panel .ref-card-body,
.ref-panel .ref-attach { padding: 0; }
.ref-empty { margin: 0; color: var(--muted); font-size: 13.5px; }
/* Pas de mot seul en derniere ligne dans les petits textes. */
.ref-note,
.ref-hint,
.ref-kpi-sub,
.ref-feed-tx,
.ref-standing-tx,
.ref-foot-card p,
.ref-board-lead { text-wrap: pretty; }
.ref-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; }
.ref-funnel { flex: 1 1 480px; }
.ref-share-panel { flex: 1 1 300px; }
.ref-list { flex: 999 1 520px; }
.ref-feed { flex: 1 1 340px; }
.ref-tiers-panel { flex: 1 1 420px; }
.ref-contest { flex: 1 1 340px; }

/* Indicateurs : meme anatomie pour toutes (intitule a icone, grand
   chiffre aligne d'une carte a l'autre, une ligne de contexte) */
.ref-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* Avec commission : trois cartes (palier, gains, valides). Sans commission : deux (concours, valides). */
.ref-kpis.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref-kpis.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ref-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.ref-kpi-k { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ref-kpi-k .icon { flex: none; }
.ref-kpi-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; color: var(--muted); font-size: 13px; }
.ref-kpi-v b { color: var(--ink-strong); font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-kpi-sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.ref-kpi-sub.is-warn { color: var(--warn); }

/* Palier : une case par filleul actif demande, les cases gagnees se remplissent. */
.ref-tierbar { display: flex; gap: 4px; margin: 4px 0 2px; }
.ref-tierbar i { position: relative; flex: 1 1 0; height: 6px; border-radius: 999px; background: var(--chip); }
.ref-tierbar i.is-on::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; background: var(--brand); transform-origin: left center; }

/* Barres (entonnoir, paliers, classement) */
.ref-bar { position: relative; display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--chip); }
.ref-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transform-origin: left center; }
.ref-bar.is-base > i { background: color-mix(in srgb, var(--brand) 45%, var(--chip)); }
.ref-bar.is-thin { height: 6px; }

/* Entonnoir */
.ref-funnel-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ref-funnel-list li { display: grid; gap: 7px; }
.ref-funnel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 13.5px; }
.ref-funnel-top > span:last-child { display: inline-flex; align-items: baseline; gap: 8px; }
.ref-funnel-top small { color: var(--muted); font-size: 12px; }
.ref-funnel-top strong { color: var(--ink-strong); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ref-waiting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: auto; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 13px; }
.ref-waiting p { margin: 0; }
.ref-waiting strong { color: var(--ink-strong); font-weight: 600; }
.ref-mini-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--brand-strong); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ref-mini-btn:hover { border-color: var(--brand); }

.ref-mini-btn:focus-visible,
.ref-seg button:focus-visible,
.ref-more:focus-visible { outline: none; box-shadow: var(--ring); }

/* Au comptoir : QR a faire scanner et affichette A5 (le lien se copie depuis l'en-tete) */
.ref-share-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.ref-share-body .ref-hint { max-width: 34ch; font-size: 13px; }
.ref-qr { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; line-height: 0; }
.ref-qr svg { display: block; width: 168px; height: 168px; }
.ref-flyer-btn { min-height: 44px; }

/* Filleuls : onglets, tableau, repli mobile */
.ref-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.ref-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ref-seg button span { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ref-seg button:hover { color: var(--ink-strong); }
.ref-seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink-strong); box-shadow: 0 1px 2px rgba(13, 34, 45, .12); }
.ref-table { display: grid; }
.ref-thead,
.ref-tr { display: grid; grid-template-columns: minmax(0, 1fr) 88px 140px 84px; gap: 12px; align-items: center; }
/* Sans commission : pas de colonne « Vos gains ». */
.ref-table.no-earned .ref-thead,
.ref-table.no-earned .ref-tr { grid-template-columns: minmax(0, 1fr) 88px 140px; }
.ref-table.no-earned .ref-thead span:last-child { text-align: left; }
.ref-thead { padding: 0 4px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; }
.ref-thead span:last-child,
.ref-td-amt { text-align: right; }
.ref-tbody { display: grid; margin: 0; padding: 0; list-style: none; }
.ref-tr { min-height: 56px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ref-tr:last-child { border-bottom: 0; }
.ref-tr[hidden] { display: none; }
.ref-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ref-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 700; }
.ref-who-tx { display: grid; min-width: 0; }
.ref-who-tx strong { overflow: hidden; color: var(--ink-strong); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ref-who-tx small { display: none; color: var(--muted); font-size: 12px; }
.ref-td-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.ref-td-amt { color: var(--ink-strong); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-td-amt.is-none { color: var(--muted); font-weight: 400; }
.ref-more { display: none; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--brand-strong); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
/* Plus de 8 filleuls : la carte prend la hauteur de sa voisine (le fil
   d'activite) et les lignes defilent dedans, sous l'en-tete du tableau. Les
   lignes en position absolue ne comptent pas dans la hauteur de la rangee ;
   les deux gouttieres de barre gardent les colonnes alignees sous Windows. */
.ref-list.is-scroll .ref-table { display: flex; flex: 1 1 auto; flex-direction: column; }
.ref-list.is-scroll .ref-thead { overflow: hidden; scrollbar-gutter: stable; }
.ref-list.is-scroll .ref-tbody-box { position: relative; flex: 1 1 auto; min-height: 420px; }
.ref-list.is-scroll .ref-tbody { position: absolute; top: 0; right: 0; bottom: 0; left: 0; align-content: start; overflow-y: auto; scrollbar-gutter: stable; }
.ref-list.is-scroll .ref-tbody:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* Activite recente */
.ref-feed-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ref-feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ref-feed-item:first-child { padding-top: 0; }
.ref-feed-item:last-child { padding-bottom: 0; border-bottom: 0; }
.ref-feed-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.ref-feed-dot.is-ok { background: var(--ok-soft); color: var(--ok); }
.ref-feed-dot.is-warn { background: var(--warn-soft); color: var(--warn); }
.ref-feed-dot.is-bad { background: var(--bad-soft); color: var(--bad); }
.ref-feed-tx { display: grid; gap: 2px; min-width: 0; color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.ref-feed-tx small { color: var(--muted); font-size: 12px; }
.ref-feed-amt { color: var(--ok); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-feed-amt.is-wait { color: var(--warn); }
.ref-feed-amt.is-void { color: var(--muted); font-weight: 500; text-decoration: line-through; }

/* Paliers */
.ref-tier-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ref-tier { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.ref-tier.is-current { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }
.ref-tier-rate { color: var(--muted); font-family: var(--font-head); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-tier.is-reached .ref-tier-rate { color: var(--ink-strong); }
.ref-tier.is-current .ref-tier-rate { color: var(--brand-strong); }
.ref-tier-body { display: grid; gap: 6px; min-width: 0; color: var(--ink); font-size: 13px; }

/* Concours */
.ref-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--ink-strong); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-rank-line,
.ref-standing-rank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: var(--muted); font-size: 13.5px; }
.ref-rank-line b,
.ref-standing-rank b { color: var(--ink-strong); font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ref-side-text { margin: 0; color: var(--muted); font-size: 13.5px; }
.ref-prize-strip { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--gold) 8%, var(--panel)); }
.ref-prize-strip img { flex: none; display: block; width: 66px; height: 44px; border-radius: 8px; object-fit: cover; }
.ref-prize-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 22%, var(--panel)); color: color-mix(in srgb, var(--gold) 55%, var(--ink-strong)); }
.ref-prize-mini { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.ref-prize-mini b { color: var(--ink-strong); font-weight: 600; }
.ref-arrow-link { align-self: flex-start; margin-top: auto; font-size: 14px; }

/* Comment ca marche */
.ref-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ref-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ref-steps li > span:last-child { display: grid; gap: 3px; min-width: 0; }
.ref-steps .n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 700; }
.ref-steps strong { color: var(--ink-strong); font-size: 14px; font-weight: 600; }
.ref-fine { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ── Classement public ─────────────────────────────────────────────── */
/* Grille du classement : le chrono et la colonne de droite (position,
   gagnants, reglement) partagent la meme largeur ; les lots s'etalent sous
   la course. La derniere rangee absorbe la hauteur de la colonne de droite. */
.ref-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "copy chrono"
        "board side"
        "lots side";
    gap: 20px 24px;
    align-items: start;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}
.ref-kicker { margin: 0; color: var(--muted); font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.ref-board-copy { grid-area: copy; align-self: center; min-width: 0; }
.ref-board-copy h1 {
    margin: 12px 0 0;
    color: var(--ink-strong);
    font-family: var(--font-head);
    font-size: clamp(26px, 3.4vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-transform: none;
}
.ref-board-lead { margin: 6px 0 0; max-width: 560px; color: var(--muted); font-size: 14.5px; }
.ref-contest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold) 20%, var(--panel));
    color: #7a5200;
    font-size: 12.5px;
    font-weight: 600;
}
:root[data-theme="dark"] .ref-contest-badge { color: var(--gold); }
.ref-chrono { grid-area: chrono; gap: 12px; padding: 18px; }
.ref-chrono h2 { color: var(--muted); font-size: 14px; font-weight: 600; }
.ref-chrono-units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    color: var(--ink-strong);
    font-weight: 600;
}
.ref-chrono-unit {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 4px 8px;
    border-radius: 12px;
    background: var(--brand-soft);
}
.ref-chrono-unit b { color: var(--ink-strong); font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ref-chrono-unit small { color: var(--muted); font-size: 12.5px; }
.ref-chrono-note { margin: 0; color: var(--muted); font-size: 13px; text-wrap: pretty; }
.ref-lb { grid-area: board; gap: 0; padding: 18px 22px 10px; }
.ref-board-side { grid-area: side; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ref-lb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ref-lb-finish { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ref-lb-finish::before { content: ""; width: 0; height: 14px; border-left: 2px dashed currentColor; }
.ref-lb-empty { margin: 0; padding: 14px 0 4px; color: var(--muted); font-size: 13.5px; }
.ref-lb-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ref-lb-row {
    display: grid;
    grid-template-columns: 28px minmax(120px, 210px) minmax(0, 1fr) 84px;
    gap: 16px;
    align-items: center;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.ref-lb-row:last-child { border-bottom: 0; }
.ref-lb-row.is-free { border-bottom-style: dashed; }
.ref-lb-row.is-free:last-child { border-bottom: 0; }
.ref-lb-rank { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ref-lb-row.is-1 > .ref-lb-rank,
.ref-lb-row.is-2 > .ref-lb-rank,
.ref-lb-row.is-3 > .ref-lb-rank { background: var(--brand-soft); color: var(--ink-strong); }
.ref-winners-list .is-1 > .ref-lb-rank { background: var(--gold); color: #3d2a00; }
.ref-winners-list .is-2 > .ref-lb-rank,
.ref-winners-list .is-3 > .ref-lb-rank { background: var(--chip); color: var(--ink-strong); }
.ref-lb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ref-flag { flex: none; display: block; width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.ref-flag.is-emoji { width: auto; height: auto; box-shadow: none; font-size: 16px; line-height: 1; }
.ref-lb-nm { overflow: hidden; color: var(--ink-strong); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ref-lb-name { display: grid; min-width: 0; line-height: 1.35; }
.ref-lb-name strong { overflow: hidden; color: var(--ink-strong); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ref-lb-name small { color: var(--muted); font-size: 12px; }
.ref-you { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
:root[data-theme="dark"] .ref-you { color: var(--bg); }
/* Piste de course : la ligne d'arrivee en pointilles ferme chaque piste. */
.ref-track {
    position: relative;
    display: block;
    height: 34px;
    min-width: 0;
    border-right: 2px dashed color-mix(in srgb, var(--muted) 75%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 8%, var(--panel));
}
.ref-track-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--ref-at, 0%);
    border-radius: inherit;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    transform-origin: left center;
}
.ref-track-dot {
    position: absolute;
    top: 50%;
    left: var(--ref-at, 0%);
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--panel);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 22%, transparent);
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transform: translate(-50%, -50%);
}
.ref-lb-row.is-1 .ref-track-dot { background: var(--brand); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 40%, transparent); }
:root[data-theme="dark"] .ref-lb-row.is-1 .ref-track-dot { color: var(--bg); }
.ref-track.is-free { background: transparent; border: 1px dashed var(--line); border-right: 2px dashed color-mix(in srgb, var(--muted) 75%, transparent); }
.ref-lb-prize { justify-self: end; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--ink-strong); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ref-lb-prize.is-1 { background: color-mix(in srgb, var(--gold) 22%, var(--panel)); color: #7a5200; }
:root[data-theme="dark"] .ref-lb-prize.is-1 { color: var(--gold); }
.ref-lb-prize.is-none { padding: 0; background: none; }
/* Sous le minimum du concours : le lot reste a gagner. */
.ref-lb-prize.is-locked { opacity: .5; }
.ref-standing-rank b { font-size: 30px; }
.ref-standing-tx { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.ref-block-btn { width: 100%; min-height: 44px; }
.ref-join-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ref-join-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 13.5px; }
.ref-join-steps .n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 700; }
.ref-panel.ref-lots { grid-area: lots; gap: 0; padding: 0; overflow: hidden; }

.ref-lots-body { display: grid; gap: 6px; padding: 16px 18px 8px; }
.ref-lots-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ref-lots-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.ref-lots-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--chip); color: var(--ink-strong); font-size: 12px; font-weight: 700; }
.ref-lots-badge.is-1 { background: var(--gold); color: #3d2a00; }
.ref-lots-name { flex: 1; min-width: 0; font-weight: 500; }
/* Vitrine des lots sous la course : visuel a gauche, liste a droite. */

.ref-foot-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 18px 20px; }
.ref-foot-card h2,
.ref-winners h2 { font-size: 15px; }
.ref-foot-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ref-foot-ic { flex: none; margin-top: 2px; color: var(--muted); }
.ref-foot-card.is-rules .ref-foot-ic { color: var(--brand); }
.ref-winners { gap: 10px; }
.ref-winners-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ref-winners-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ref-winners-list li:first-child { padding-top: 0; border-top: 0; }
.ref-winners-list .ref-lb-name { flex: 1; }
.ref-winners-n { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

@media (max-width: 1100px) {
    .ref-kpis,
    .ref-kpis.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ref-kpis.is-three .ref-kpi:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .ref-board {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "copy" "chrono" "board" "lots" "side";
    }
}
@media (max-width: 640px) {
    .ref-panel { padding: 16px; }
    .ref-kpis { gap: 12px; }
    .ref-kpi { padding: 14px; }
    .ref-kpi:first-child,
    .ref-kpi:last-child { grid-column: 1 / -1; }
    .ref-kpis.is-three .ref-kpi:last-child { grid-column: auto; }
    .ref-kpi-v b { font-size: 24px; }
    .ref-qr svg { width: 152px; height: 152px; }
    .ref-flyer-btn { align-self: stretch; }
    .ref-seg { display: flex; width: 100%; }
    .ref-seg button { flex: 1 1 auto; justify-content: center; min-height: 44px; }
    .ref-thead,
    .ref-td-date,
    .ref-td-amt { display: none; }
    .ref-tr,
    .ref-table.no-earned .ref-tr { grid-template-columns: minmax(0, 1fr) auto; }
    .ref-who-tx small { display: block; }
    [data-ref-list]:not(.is-expanded) .ref-tr.is-folded { display: none; }
    .ref-more:not([hidden]) { display: flex; }
    .ref-list.is-scroll .ref-tbody-box { min-height: 0; }
    .ref-list.is-scroll .ref-tbody { position: static; overflow: visible; }
    .ref-steps { grid-template-columns: 1fr; gap: 14px; }
    .ref-card-body { grid-template-columns: auto minmax(0, 1fr); }
    .ref-card-body .button { grid-column: 1 / -1; width: 100%; }
    
    
    .ref-panel.ref-lots .ref-lots-body { padding: 14px 16px 6px; }
    .ref-chrono-unit b { font-size: 24px; }
    .ref-lb { padding: 14px 14px 6px; }
    .ref-lb-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px 10px; }
    .ref-lb-row > .ref-track { grid-column: 2 / -1; grid-row: 2; height: 30px; }
    .ref-track-dot { min-width: 26px; height: 26px; font-size: 12px; }
    .ref-lb-prize.is-none { display: none; }
}

/* Icone cadeau de l'en-tete : meme bouton que le theme, pastille or du
   concours pour les nouveautes, panneau charge au premier clic. */
.ref-bell { position: relative; }
/* Un peu a l'ecart du bouton clair/sombre : le cadeau se lit seul. */
.nav .ref-bell { margin-right: 10px; }
@media (max-width: 720px) {
    .nav .ref-bell { margin-right: 4px; }
}
/* .nav .nav-summary efface le cadre : on reprend celui de .theme-toggle. */
.nav .ref-bell-btn {
    position: relative;
    min-width: 42px;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    color: #fff;
}
.nav .ref-bell-btn:hover,
.ref-bell[open] .ref-bell-btn { background: rgba(255, 255, 255, .18); }
.nav .ref-bell-btn svg { width: 18px; height: 18px; }
/* Cadeau en deux pieces superposees ; le couvercle pivote sur son coin bas
   gauche (3, 12 du dessin 24 x 24) ; le nombre sort au-dessus. */
.ref-gift { position: relative; display: block; width: 18px; height: 18px; }
.ref-gift > svg { display: block; }
.ref-gift-lid { position: absolute; top: 0; left: 0; transform-origin: 12.5% 50%; }
.ref-bell-badge,
.ref-gift-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 1px 4px rgba(3, 24, 43, .35);
    color: #3d2a00;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
/* Le nombre range dans la boite (sa bouche est au centre du bouton),
   visible seulement pendant l'ouverture. */
.ref-gift-count {
    top: 50%;
    right: auto;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -30%) scale(.3);
}
.ref-bell-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    display: grid;
    gap: 12px;
    width: min(340px, calc(100vw - 16px));
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    transform-origin: top right;
}
.ref-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ref-bell-head strong { color: var(--ink-strong); font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.ref-bell-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.ref-bell-note a { color: var(--brand-strong); font-weight: 600; }
.ref-bell-panel .ref-feed-list { max-height: min(300px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.ref-feed-item.is-new .ref-feed-tx > span:first-child { color: var(--ink-strong); font-weight: 600; }
.ref-feed-item.is-new .ref-feed-tx > span:first-child::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 6px 1px 0;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
}
.ref-bell-share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ref-bell-share .button { width: 100%; min-width: 0; justify-content: center; }
@media (max-width: 640px) {
    /* Le cadeau n'est pas au bord : le panneau prend la largeur de la barre. */
    .ref-bell { position: static; }
    .ref-bell-panel { top: calc(100% + 6px); right: 8px; left: 8px; width: auto; }
}

/* Message ponctuel « filleul valide » : sous le cadeau (bord droit, pointe et
   point de fuite cales par customer.js), une seule fois, puis range dans le
   cadeau. Meme carte que le panneau, l'or du parrainage en seul accent. */
.ref-toast {
    --ref-toast-caret: 22px;
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    z-index: 70;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 12px;
    width: min(340px, calc(100vw - 16px));
    padding: 14px 6px 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    transform-origin: calc(100% - var(--ref-toast-caret)) -10px;
}
.ref-toast[hidden] { display: none; }
.ref-toast::before {
    content: "";
    position: absolute;
    top: -6px;
    right: calc(var(--ref-toast-caret) - 5px);
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--panel);
    transform: rotate(45deg);
}
.ref-toast-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Repli des navigateurs sans color-mix (Chrome 109 de Windows 7/8.1). */
    background: rgba(251, 188, 4, .22);
    background: color-mix(in srgb, var(--gold) 22%, transparent);
    color: #8a5a00;
}
:root[data-theme="dark"] .ref-toast-ico { color: var(--gold); }
.ref-toast-tx { display: grid; gap: 2px; margin: 0; padding-top: 1px; font-size: 13.5px; line-height: 1.45; text-wrap: pretty; }
.ref-toast-tx strong { color: var(--ink-strong); font-family: var(--font-head); font-size: 15px; font-weight: 600; }

/* Cible de 44 px, le rond visible reste discret. */
.ref-toast-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -11px 0 -11px -8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    cursor: pointer;
}
.ref-toast-close:hover { background: var(--surface-2); color: var(--ink-strong); }
.ref-toast-link { grid-column: 2; justify-self: start; }
.ref-toast-time {
    position: absolute;
    right: 16px;
    bottom: 6px;
    left: 16px;
    display: none;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform-origin: left center;
}
@media (max-width: 640px) {
    .ref-toast { top: calc(100% + 6px); right: 8px; left: 8px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .ref-toast.is-out { opacity: 0; transition: opacity .2s ease; }
}

/* Entree douce des blocs, une seule fois (transform et opacity ; la jauge
   anime son trait). Rien ne bouge si le systeme demande moins d'animations. */
@keyframes ref-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ref-pop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes ref-grow { from { transform: scaleX(0); } }
@keyframes ref-tier-in { from { transform: scaleX(0); } }
@keyframes ref-dot { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
/* Ouverture du cadeau en boucle (4 s : 2,8 s de mouvement, 1,2 s de repos) :
   la pastille du coin plonge dans la boite, le couvercle se souleve, le
   nombre sort, reste lisible, rentre, le couvercle retombe et la pastille
   revient. */
@keyframes ref-gift-lid {
    0%, 6% { transform: translateY(0) rotate(0); }
    15%, 48% { transform: translateY(-3.75px) rotate(-18deg); }
    55% { transform: translateY(.4px) rotate(2deg); }
    60%, 100% { transform: translateY(0) rotate(0); }
}
@keyframes ref-gift-count {
    0%, 11% { opacity: 0; transform: translate(-50%, -30%) scale(.3); }
    21% { opacity: 1; transform: translate(-50%, -150%) scale(1.12); }
    27%, 42% { opacity: 1; transform: translate(-50%, -140%) scale(1); }
    50%, 100% { opacity: 0; transform: translate(-50%, -30%) scale(.3); }
}
@keyframes ref-gift-badge {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    7%, 59% { opacity: 0; transform: translate(-9px, 9px) scale(.3); }
    65% { opacity: 1; transform: translate(0, 0) scale(1.12); }
    70%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes ref-bell-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes ref-toast-out { to { opacity: 0; transform: translateY(-8px) scale(.35); } }
@keyframes ref-toast-time { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) {
    /* Avec des nouveautes, le cadeau s'ouvre sur leur nombre en boucle jusqu'au
       clic (customer.js) : transform et opacity de trois boites a part, que le
       navigateur anime hors de la page (compositeur), sans script. */
    .ref-bell.is-opening:not([open]) .ref-gift-lid { animation: ref-gift-lid 4s ease-in-out infinite; }
    .ref-bell.is-opening:not([open]) .ref-gift-count { animation: ref-gift-count 4s ease-in-out infinite; }
    .ref-bell.is-opening:not([open]) .ref-bell-badge { animation: ref-gift-badge 4s ease-in-out infinite; }
    .ref-bell[open] .ref-bell-panel { animation: ref-bell-in .16s ease-out both; }
    /* Message « filleul valide » : entree comme le panneau, filet du temps
       restant (fige au survol), sortie aspiree par le cadeau qui repond. */
    .ref-toast.is-in { animation: ref-bell-in .2s ease-out both; }
    .ref-toast.is-in .ref-toast-time { display: block; animation: ref-toast-time var(--ref-toast-ms, 7s) linear both; }
    .ref-toast.is-paused .ref-toast-time { animation-play-state: paused; }
    .ref-toast.is-out { animation: ref-toast-out .34s cubic-bezier(.55, 0, .75, .2) both; }
    .ref-bell.is-fed .ref-bell-badge { animation: ref-pop .45s cubic-bezier(.2, .7, .2, 1) both; }
    .ref-page > *,
    .ref-board > * { animation: ref-rise .42s cubic-bezier(.2, .7, .2, 1) both; }
    .ref-page > :nth-child(2), .ref-board > :nth-child(2) { animation-delay: 60ms; }
    .ref-page > :nth-child(3), .ref-board > :nth-child(3) { animation-delay: 120ms; }
    .ref-page > :nth-child(4), .ref-board > :nth-child(4) { animation-delay: 180ms; }
    .ref-page > :nth-child(n + 5), .ref-board > :nth-child(n + 5) { animation-delay: 240ms; }
    .ref-bar > i { animation: ref-grow .8s cubic-bezier(.2, .7, .2, 1) .3s both; }
    .ref-funnel-list li:nth-child(2) .ref-bar > i { animation-delay: .37s; }
    .ref-funnel-list li:nth-child(3) .ref-bar > i { animation-delay: .44s; }
    .ref-funnel-list li:nth-child(4) .ref-bar > i { animation-delay: .51s; }
    /* Chaque coureur part de la ligne de depart, l'un apres l'autre. */
    .ref-track-fill { animation: ref-grow .9s cubic-bezier(.2, .7, .2, 1) .3s both; }
    .ref-track-dot { animation: ref-dot .5s cubic-bezier(.2, .7, .2, 1) .75s both; }
    .ref-lb-row:nth-child(2) .ref-track-fill { animation-delay: .38s; }
    .ref-lb-row:nth-child(2) .ref-track-dot { animation-delay: .83s; }
    .ref-lb-row:nth-child(n + 3) .ref-track-fill { animation-delay: .46s; }
    .ref-lb-row:nth-child(n + 3) .ref-track-dot { animation-delay: .91s; }
    .ref-tierbar i.is-on::after { animation: ref-tier-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.2s + var(--i) * 70ms); }
    
    .ref-seg button { transition: background-color .15s ease, color .15s ease; }
    .button.ref-wa { transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease; }
    .button.ref-wa:active { transform: scale(.98); }
}

/* ==========================================================================
   Pages legales (08/10/2026) : document lisible et navigation entre les pages.
   Texte brut de la console mis en forme par App\Support\LegalPages.
   ========================================================================== */
.legal {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}
.legal-doc {
    min-width: 0;
    padding: clamp(20px, 4.2vw, 44px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    counter-reset: legal;
    /* Texte long : chiffres et traits d’union proportionnels (le site est en tabular-nums). */
    font-variant-numeric: normal;
}
.legal-head {
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}
.legal-head h1 { letter-spacing: -.02em; }
.legal-lead {
    max-width: 62ch;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}
.legal-toc {
    margin: 0 0 30px;
    padding: 16px 20px 12px;
    background: var(--surface-2);
    border-radius: var(--r-lg);
}
.legal-toc-title,
.legal-nav-title {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2 220px;
    column-gap: 32px;
    counter-reset: legal-toc;
}
.legal-toc li {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    break-inside: avoid;
    counter-increment: legal-toc;
}
.legal-toc li::before {
    content: counter(legal-toc, decimal-leading-zero);
    flex: none;
    min-width: 1.6em;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.75;
    color: var(--muted);
}
.legal-toc a { color: var(--ink); line-height: 1.45; }
.legal-toc a:hover { color: var(--brand); }
.legal-section { scroll-margin-top: 96px; }
.legal-section + .legal-section { margin-top: 30px; }
.legal-section > h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 17.5px;
    color: var(--ink-strong);
}
.legal-section:not(.legal-brief) > h2::before {
    counter-increment: legal;
    content: counter(legal, decimal-leading-zero);
    flex: none;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
}
.legal-section p,
.legal-section li,
.legal-facts dd {
    font-size: 15px;
    line-height: 1.7;
}
.legal-section p { max-width: 72ch; margin: 0 0 10px; }
.legal-section > :last-child { margin-bottom: 0; }
.legal-section a { overflow-wrap: anywhere; }
.legal-list,
.legal-points {
    display: grid;
    gap: 8px;
    max-width: 72ch;
    margin: 2px 0 12px;
    padding: 0;
    list-style: none;
}
.legal-list li { position: relative; padding-left: 20px; }
.legal-list li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: calc(.85em - 2.5px);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .7;
}
.legal-list strong { font-weight: 600; color: var(--ink-strong); }
.legal-brief {
    padding: 18px 20px;
    background: var(--brand-soft);
    border: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: var(--r-lg);
}
.legal-brief > h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
.legal-points li { position: relative; padding-left: 30px; }
.legal-points li::before,
.legal-points li::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}
.legal-points li::before {
    left: 0;
    top: calc(.85em - 9px);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
}
.legal-points li::after {
    left: 6px;
    top: calc(.85em - 6px);
    width: 6px;
    height: 10px;
    border: solid var(--panel);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.legal-facts {
    margin: 2px 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.legal-facts > div {
    display: grid;
    grid-template-columns: minmax(110px, 28%) minmax(0, 1fr);
    gap: 2px 16px;
    padding: 10px 16px;
}
.legal-facts > div + div { border-top: 1px solid var(--line); }
.legal-facts dt {
    padding-top: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.legal-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.legal-contact {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.legal-contact h2 { margin: 0 0 12px; font-size: 16px; }
.legal-contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink);
    font-weight: 600;
}
.legal-contact-link:hover { border-color: rgba(var(--brand-rgb), .45); text-decoration: none; }
.legal-contact-link > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.legal-contact-link small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
}
.legal-contact-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}
.legal-nav {
    min-width: 0;
    padding: 16px 10px 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.legal-nav-title { padding: 0 10px; }
.legal-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.35;
}
.legal-nav a:hover { background: var(--surface-2); text-decoration: none; }
.legal-nav a[aria-current="page"] {
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 600;
}
@media (min-width: 900px) {
    .legal {
        grid-template-columns: minmax(0, 1fr) 240px;
        align-items: start;
        gap: 28px;
    }
    .legal-nav { position: sticky; top: 86px; }
}
@media (max-width: 560px) {
    .legal-brief { padding: 16px; }
    .legal-facts > div { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .legal-nav,
    .legal-toc,
    .legal-contact { display: none; }
    .legal-doc { padding: 0; border: 0; box-shadow: none; }
}

/* --- Virement bancaire (Nigeria) : le compte a crediter -------------------- */
.momo-bank {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 24px 16px;
    text-align: center;
    animation: momo-in .42s var(--momo-ease);
}
.momo-bank h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.momo-bank-list {
    width: 100%;
    margin: 16px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
}
.momo-bank-row { display: grid; gap: 2px; padding: 10px 14px; }
.momo-bank-row + .momo-bank-row { border-top: 1px solid var(--line); }
.momo-bank-row dt { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 16px; }
.momo-bank-row dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin: 0;
}
.momo-bank-value {
    min-width: 0;
    color: var(--ink-strong);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.momo-bank-copy {
    flex: none;
    min-width: 72px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.momo-bank-copy:hover, .momo-bank-copy:focus-visible { color: var(--ink-strong); }
.momo-bank-copy.is-copied { background: var(--ok-soft); color: var(--ok); }
.momo-bank-note,
.momo-bank-deadline {
    max-width: 340px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 19px;
    text-wrap: balance;
}
.momo-bank-note { color: var(--ink); font-weight: 600; }
.momo-bank-deadline { margin-top: 6px; }
.momo-bank-deadline b { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.momo-bank-closed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 14px 6px;
    border-radius: 14px;
    background: var(--bad-soft);
}
.momo-bank-closed[hidden] { display: none; }
.momo-bank-closed p { margin: 0; color: var(--bad); font-size: 13px; font-weight: 600; line-height: 19px; text-wrap: balance; }
.momo-bank.is-expired .momo-wait-text,
.momo-bank.is-expired .momo-bank-copy,
.momo-bank.is-expired .momo-bank-note,
.momo-bank.is-expired .momo-pill { display: none; }
.momo-bank.is-expired .momo-bank-list { opacity: .55; }
.invoice-detail-bank { justify-self: start; }

/* -- Urgence securite (08/11/2026) : ecran « Securisez votre compte » et
   etape « nouveau mot de passe ». Un seul accent (la pastille), aucune
   animation, couleurs par variables (themes et mode sombre). -- */
.secure-head { text-align: center; }
.secure-badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 2px auto 16px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-strong);
    box-shadow: 0 0 0 8px rgba(var(--brand-rgb), .07);
}
.secure-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.secure-head h1 { margin: 0; text-wrap: balance; }
.secure-head .muted { max-width: 410px; margin: 10px auto 0; line-height: 1.6; text-wrap: pretty; }
.secure-alert { margin: 18px 0 0; }
.secure-sent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.secure-sent-ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--brand-strong);
}
.secure-sent strong { display: block; color: var(--ink-strong); font-size: 14.5px; line-height: 1.45; }
.secure-sent .muted { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; }
.secure-email { color: var(--brand-strong); overflow-wrap: anywhere; }
.secure-steps { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; }
.secure-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.secure-step-n {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(var(--brand-rgb), .35);
    border-radius: 50%;
    color: var(--brand-strong);
    font-size: 12.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.secure-form { margin-top: 22px; }
.secure-form .help { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.secure-intact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    color: var(--ok);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.secure-intact svg { flex: none; }
.secure-resend { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; font-size: 13.5px; text-align: center; }
.secure-resend .link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.secure-resend .link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ════════════════════════════════════════════════════════════════════════
   Espace client ToutLike (refonte du 23/11/2026, habillage « Aurore »)
   Gabarit layouts/account : menu « Mon espace » en liste (pastilles sur
   mobile) et bandeau sombre sarcelle <x-account-band> en tête de chaque page
   du compte, avec deux halos doux qui dérivent.
   ══════════════════════════════════════════════════════════════════════ */
:root {
    --acct-band: radial-gradient(420px 260px at 96% -16%, rgba(var(--halo-1), .26), rgba(var(--halo-1), 0) 62%), radial-gradient(380px 240px at 0% 118%, rgba(var(--halo-2), .24), rgba(var(--halo-2), 0) 62%), linear-gradient(150deg, var(--decor-from) 0%, var(--decor-mid) 52%, var(--decor-to) 100%);
    --acct-band-shadow: 0 14px 34px rgba(3, 40, 46, .22);
    --acct-signal: var(--signal);
    --acct-signal-soft: rgba(var(--signal-rgb), .22);
    --acct-trace: rgba(var(--brand-rgb), .24);
    --acct-rule: var(--line);
    --acct-head: var(--surface-2);
    --acct-run: #d28a12;
    --acct-run-soft: #fffaf0;
    --acct-run-track: #f3e3c2;
}
/* Filet intérieur des cartes, plus léger que leur bord, et fond de l'en-tête
   de colonnes, plus clair que --surface-2 (Chrome 109 : sans color-mix, ils
   gardent la couleur du bord et celle de --surface-2). */
@supports (color: color-mix(in srgb, red, blue)) {
    :root { --acct-rule: color-mix(in srgb, var(--line) 58%, var(--panel)); --acct-head: color-mix(in srgb, var(--surface-2) 38%, var(--panel)); }
}
:root[data-theme="dark"] {
    --acct-band: radial-gradient(420px 260px at 96% -16%, rgba(var(--halo-1), .16), rgba(var(--halo-1), 0) 62%), radial-gradient(380px 240px at 0% 118%, rgba(var(--halo-2), .15), rgba(var(--halo-2), 0) 62%), linear-gradient(150deg, var(--decor-from) 0%, var(--decor-mid) 52%, var(--decor-to) 100%);
    --acct-band-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    --acct-signal: var(--signal);
    --acct-signal-soft: rgba(var(--signal-rgb), .2);
    --acct-trace: rgba(var(--brand-rgb), .34);
    --acct-run: #fbbf24;
    --acct-run-soft: rgba(245, 158, 11, .08);
    --acct-run-track: rgba(245, 158, 11, .24);
}

.acct {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
}
.acct-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.acct-main > .panel { margin: 0; }
.acct-main .panel { border-radius: var(--dash-card-radius); box-shadow: var(--dash-card-shadow); }

/* ── Menu « Mon espace » : liste simple, icônes deux tons ───────────────
   Une carte, une ligne par entrée ; chaque icône a sa teinte (--nav-tint,
   fond léger et trait plein). L'entrée en cours prend la pastille pleine
   sarcelle. Survol : la ligne glisse de 2 px, l'icône se penche. */
.acct-nav { position: sticky; top: 92px; min-width: 0; }
.acct-nav-title {
    margin: 4px 0 10px 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.acct-nav-list {
    display: grid;
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}
.acct-nav-link {
    --nav-tint: 0, 128, 124;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px 0 6px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    transition: background-color .18s var(--dash-ease), color .18s var(--dash-ease), transform .2s var(--dash-ease);
}
.acct-nav-link:nth-child(2) { --nav-tint: 214, 60, 84; }
.acct-nav-link:nth-child(3) { --nav-tint: 112, 84, 220; }
.acct-nav-link:nth-child(4) { --nav-tint: 8, 128, 92; }
.acct-nav-link:nth-child(5) { --nav-tint: 176, 108, 8; }
.acct-nav-link:nth-child(6) { --nav-tint: 30, 110, 210; }
.acct-nav-link:nth-child(7) { --nav-tint: 200, 64, 140; }
:root[data-theme="dark"] .acct-nav-link { --nav-tint: 94, 234, 212; }
:root[data-theme="dark"] .acct-nav-link:nth-child(2) { --nav-tint: 255, 143, 163; }
:root[data-theme="dark"] .acct-nav-link:nth-child(3) { --nav-tint: 185, 168, 255; }
:root[data-theme="dark"] .acct-nav-link:nth-child(4) { --nav-tint: 110, 231, 183; }
:root[data-theme="dark"] .acct-nav-link:nth-child(5) { --nav-tint: 252, 211, 77; }
:root[data-theme="dark"] .acct-nav-link:nth-child(6) { --nav-tint: 125, 180, 255; }
:root[data-theme="dark"] .acct-nav-link:nth-child(7) { --nav-tint: 249, 168, 212; }
.acct-nav-link:not(.is-current):hover { background: var(--surface-2); color: var(--ink-strong); text-decoration: none; transform: translateX(2px); }
.acct-nav-link:focus-visible { outline: none; box-shadow: var(--ring); }
.acct-nav-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(var(--nav-tint), .12);
    color: rgb(var(--nav-tint));
    transition: transform .22s var(--dash-ease), background-color .18s var(--dash-ease);
}
.acct-nav-ic .icon { stroke-width: 1.9; }
.acct-nav-link:not(.is-current):hover .acct-nav-ic { background: rgba(var(--nav-tint), .18); transform: rotate(-6deg) scale(1.06); }
.acct-nav-link.is-current {
    background: linear-gradient(135deg, var(--brand-action) 0%, var(--brand-gradient-end) 100%);
    box-shadow: 0 8px 18px rgba(var(--brand-rgb), .26);
    color: #ffffff;
    font-weight: 650;
    text-decoration: none;
}
.acct-nav-link.is-current .acct-nav-ic { background: rgba(255, 255, 255, .2); color: #ffffff; }
@media (prefers-reduced-motion: no-preference) {
    .acct-nav-link { animation: acctNavIn .36s var(--dash-ease) backwards; }
    .acct-nav-link:nth-child(2) { animation-delay: .03s; }
    .acct-nav-link:nth-child(3) { animation-delay: .06s; }
    .acct-nav-link:nth-child(4) { animation-delay: .09s; }
    .acct-nav-link:nth-child(5) { animation-delay: .12s; }
    .acct-nav-link:nth-child(6) { animation-delay: .15s; }
    .acct-nav-link:nth-child(7) { animation-delay: .18s; }
}
@keyframes acctNavIn { from { opacity: 0; transform: translateX(-6px); } }

/* ── Bandeau Aurore des pages du compte ─────────────────────────────────── */
.acct-band {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--brand-rgb), .3);
    border-radius: 16px;
    background: var(--acct-band);
    box-shadow: var(--acct-band-shadow);
    color: #ffffff;
}
/* Deux halos doux (violet en haut à droite, sarcelle en bas à gauche) qui
   dérivent lentement sous le contenu et le dessin. */
.acct-band { isolation: isolate; }
.acct-band::before,
.acct-band::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.acct-band::before { top: -130px; right: -70px; width: 330px; height: 330px; background: radial-gradient(circle, rgba(var(--halo-1), .3), rgba(var(--halo-1), 0) 66%); }
.acct-band::after { bottom: -170px; left: -90px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(var(--halo-2), .26), rgba(var(--halo-2), 0) 66%); }
:root[data-theme="dark"] .acct-band::before { opacity: .65; }
:root[data-theme="dark"] .acct-band::after { opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
    .acct-band::before { animation: acctHalo 18s ease-in-out infinite alternate; }
    .acct-band::after { animation: acctHalo 24s ease-in-out infinite alternate-reverse; }
}
@keyframes acctHalo { to { transform: translate(-40px, 26px) scale(1.15); } }
.acct-band-in { position: relative; z-index: 1; padding: 22px 24px 20px; }
.acct-band-title {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.5;
    text-transform: uppercase;
}
.acct-band-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: 0; line-height: 1.05; }
.acct-band-figure strong { color: #ffffff; font-size: 44px; font-weight: 800; letter-spacing: -.028em; font-variant-numeric: tabular-nums; }
.acct-band-figure span { color: rgba(255, 255, 255, .82); font-size: 18px; font-weight: 700; }
.acct-band-label { margin: 0 0 5px; color: rgba(255, 255, 255, .8); font-size: 13px; }
.acct-band-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s var(--dash-ease);
}
.acct-band-btn:hover { background: rgba(255, 255, 255, .17); color: #ffffff; text-decoration: none; }
.acct-band-btn:focus-visible, .acct-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(143, 243, 255, .55); }
.acct-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    position: relative;
    background: linear-gradient(135deg, var(--signal-from) 0%, var(--signal) 45%, var(--signal-to) 100%);
    box-shadow: 0 10px 24px rgba(var(--signal-rgb), .26), inset 0 1px 0 rgba(255, 255, 255, .55);
    color: var(--signal-ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s var(--dash-ease), box-shadow .18s var(--dash-ease);
}
.acct-cta:hover { color: var(--signal-ink); text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(var(--signal-rgb), .36), inset 0 1px 0 rgba(255, 255, 255, .55); }
.acct-band :is(input, select) {
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background-color: var(--panel);
    color: var(--ink-strong);
}
.acct-band :is(input, select):focus { outline: none; box-shadow: 0 0 0 3px rgba(143, 243, 255, .45); }

/* ── Cartes des pages du compte ───────────────────────────────────────── */
/* Forme, surface, relief et densité suivent les réglages « Thèmes et cartes du
   dashboard client » de la console (jetons --dash-*, valeurs par défaut :
   Équilibrée, Pleine, Douce, Confortable). */
.acct-card {
    min-width: 0;
    border: 1px solid var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    background: var(--dash-card-bg);
    box-shadow: var(--dash-card-shadow);
}
:root[data-card-style="glass"] .acct-card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.acct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-card-head h2 { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -.005em; }
.acct-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -12px 0 -12px auto;
    color: var(--brand);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.acct-card-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
    .acct { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .acct-nav { position: static; margin: -28px -16px 0; }
    .acct-nav-title { display: none; }
    .acct-nav-list {
        display: flex;
        gap: 8px;
        padding: 12px 16px 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .acct-nav-list::-webkit-scrollbar { display: none; }
    .acct-nav-link {
        flex: none;
        gap: 8px;
        padding: 0 15px 0 7px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--panel);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }
    .acct-nav-list { padding: 12px 16px 10px; border: 0; border-radius: 0; background: none; box-shadow: none; }
    .acct-nav-link:not(.is-current):hover { transform: none; }
    .acct-nav-link.is-current { border-color: var(--brand-action); background: var(--brand-action); color: #ffffff; font-weight: 700; }
    .acct-nav-link.is-current .acct-nav-ic { background: rgba(255, 255, 255, .2); box-shadow: none; }
}
@media (max-width: 640px) {
    .acct-band-in { padding: 18px 16px 16px; }
    .acct-band-title { font-size: 11.5px; }
    .acct-band-label { margin-bottom: 3px; }
    .acct-band-figure strong { font-size: 38px; }
    .acct-band-figure span { font-size: 16px; }
    .acct-cta { width: 100%; min-height: 48px; font-size: 14.5px; }
}

/* ── Éléments partagés des pages du compte ────────────────────────────── */
.acct-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.acct-band-greet { color: rgba(255, 255, 255, .72); font-size: 13px; }
.acct-band-figure.is-low strong { color: #ffb4a8; }

.acct-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.acct-badge.is-ok { background: var(--ok-soft); color: var(--ok); }
.acct-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.acct-badge.is-bad { background: var(--bad-soft); color: var(--bad); }
.acct-thumb {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 38px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--brand);
}
.acct-thumb.is-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acct-thumb.is-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .55) 47%, transparent 64%);
    transform: translateX(-135%);
    transition: transform .7s var(--dash-ease);
    pointer-events: none;
}
:is(.acct-feed-row, .order-history-row):hover .acct-thumb.is-photo::after { transform: translateX(135%); }

/* ── Tableau de bord (canvas 1ZJwFv…, « Version A », intégré le 10/11/2026) ── */
/* Marges des cartes : celles de la densité choisie en console, calées sur la
   planche (20 × 16 px en « Confortable »). */
.acct-dash-grid, .acct-dash-pair { --acct-x: calc(var(--dash-pad) + 2px); --acct-y: calc(var(--dash-row-y) + 3px); }
.acct-band--dash, .acct-dash-grid, .acct-dash-pair { line-height: 1.45; }

/* Bandeau en deux moitiés séparées par un filet : le portefeuille, l'activité. */
.acct-band--dash .acct-band-in { padding-bottom: 22px; }
.acct-dash-top { display: flex; align-items: stretch; gap: 28px; margin-top: 16px; }
.acct-dash-wallet { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.acct-dash-wallet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.acct-dash-facts { display: flex; margin: 0; }
.acct-dash-facts > div { display: grid; gap: 1px; padding-right: 20px; }
.acct-dash-facts > div + div { padding: 0 0 0 20px; border-left: 1px solid rgba(255, 255, 255, .16); }
.acct-dash-facts dt { color: rgba(255, 255, 255, .7); font-size: 12px; }
.acct-dash-facts dd { margin: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-activity { flex: 1 1 300px; min-width: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.acct-activity-month { display: flex; align-items: baseline; gap: 8px; margin: 0; color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 600; line-height: 1.1; }
.acct-activity-month strong { color: #ffffff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acct-activity-plot { position: relative; }
.acct-activity-trace { display: block; width: 100%; height: auto; overflow: visible; }
.acct-activity-area stop { stop-color: var(--acct-signal); }
.acct-activity-base { stroke: rgba(255, 255, 255, .16); }

.acct-activity-line { stroke: rgba(255, 255, 255, .62); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.acct-activity-node { fill: #0c2752; stroke: rgba(255, 255, 255, .78); stroke-width: 1.5; }
.acct-activity-halo { fill: var(--acct-signal); opacity: .24; }
.acct-activity-dot { fill: var(--acct-signal); }
.acct-activity-days { position: absolute; inset: 0; display: flex; }
.acct-activity-days span { position: relative; flex: 1 1 0; border-radius: 5px; }
.acct-activity-days b {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    padding: 5px 9px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(4, 16, 40, .35);
    color: #0b172a;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    pointer-events: none;
}
.acct-activity-days .is-start b { left: 0; transform: none; }
.acct-activity-days .is-end b { right: 0; left: auto; transform: none; }
.acct-activity-days span:hover { background: rgba(255, 255, 255, .09); }
.acct-activity-days span:hover b { opacity: 1; }
.acct-activity-axis { display: flex; justify-content: space-between; gap: 12px; margin: 3px 0 0; color: rgba(255, 255, 255, .66); font-size: 11px; font-variant-numeric: tabular-nums; }
.acct-activity-axis span:last-child { color: rgba(255, 255, 255, .86); font-weight: 600; }

/* Commandes récentes : compteurs en point + nombre, puis les lignes. */
.acct-dash-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.acct-dash-orders { flex: 2.4 1 500px; overflow: hidden; }
.acct-dash-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.acct-dash-orders-top { padding: var(--acct-y) var(--acct-x) calc(var(--acct-y) - 2px); }
.acct-counts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 12px; }
.acct-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border-left: 1px solid var(--acct-rule);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}
.acct-count:first-child { padding-left: 0; border-left-color: transparent; }
/* Cible de 44 px, la ligne visible reste fine. */
.acct-count::after { content: ""; position: absolute; inset: -12px 0; }
.acct-count i { flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid var(--acct-tone); border-radius: 50%; background: var(--acct-tone); }
.acct-count b { color: var(--ink-strong); font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.acct-count.is-run { --acct-tone: var(--acct-run); }
.acct-count.is-wait { --acct-tone: var(--muted); }
.acct-count.is-ok { --acct-tone: var(--ok); }
.acct-count.is-bad { --acct-tone: var(--bad); }
.acct-count.is-zero i { border-color: var(--lead); background: transparent; }
.acct-count.is-zero b { color: var(--muted); }
.acct-count:hover { color: var(--muted); text-decoration: none; }
.acct-count:hover b { color: var(--brand); }
.acct-count:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
/* Tableau de bord (B v3, 11/11/2026) : les compteurs des commandes récentes
   réunis dans une réglette claire, chacun avec son nombre ; un seul point
   doré, celui d'« En cours », seulement quand une commande tourne. */
.acct-dash-orders .acct-counts { flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--order-day-bg); box-shadow: inset 0 0 0 1px var(--order-day-rule-bottom); }
.acct-dash-orders .acct-count, .acct-dash-orders .acct-count:first-child { flex: 1 1 0; justify-content: center; min-width: 0; height: 30px; padding: 0 10px; border: 0; border-radius: 9px; white-space: nowrap; }
.acct-dash-orders .acct-count::after { inset: -7px 0; }
.acct-dash-orders .acct-count i { width: 7px; height: 7px; border: 0; background: var(--acct-run); }
.acct-dash-orders .acct-count:hover { background: var(--panel); }
.acct-dash-orders .acct-count:focus-visible { outline-offset: -2px; border-radius: 9px; }

.acct-feed { margin: 0; padding: 0; list-style: none; }
.acct-feed-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    min-height: calc(var(--dash-row-y) * 2 + 44px);
    box-sizing: border-box;
    padding: calc(var(--dash-row-y) - 3px) calc(var(--acct-x) - 6px) calc(var(--dash-row-y) - 3px) var(--acct-x);
    border-top: 1px solid var(--acct-rule);
    transition: background-color .16s var(--dash-ease);
}
.acct-feed-row.is-running { background: var(--acct-run-soft); }
.acct-feed-row:hover { background: rgba(var(--brand-rgb), .05); }
/* Colonnes fixes : nom, statut, montant. Un montant ou un statut plus long
   élargit sa colonne vers la gauche, sans rien couper. */
.acct-feed-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, max-content) minmax(92px, max-content);
    grid-template-areas: "name pill amount" "meta pill amount";
    align-items: center;
    gap: 3px 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
/* Toute la ligne ouvre le détail ; « Commander à nouveau » reste au-dessus. */
.acct-feed-main::after { content: ""; position: absolute; inset: 0; }
.acct-feed-main:focus-visible { outline: none; }
.acct-feed-main:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -2px; }
.acct-feed-name { grid-area: name; overflow: hidden; color: var(--ink-strong); font-size: 14px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.acct-feed-meta { grid-area: meta; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.acct-feed-ref { min-width: 0; overflow: hidden; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.acct-feed .order-status-pill { grid-area: pill; gap: 5px; min-width: 0; height: 26px; min-height: 0; padding: 0 9px; border: 0; font-weight: 700; letter-spacing: 0; }
.acct-feed .order-status-pill .icon { width: 13px; height: 13px; }
.acct-feed-amount { grid-area: amount; color: var(--ink-strong); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.acct-again {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3);
    color: var(--brand);
}
.acct-again::before { content: ""; position: absolute; inset: -5px; }
.acct-again:hover { background: var(--brand-soft); color: var(--brand); }
.acct-again:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Commande en cours : un filet avance sous la ligne (transform seul). */
.acct-feed-run {
    position: absolute;
    right: calc(var(--acct-x) - 6px);
    bottom: -1px;
    left: var(--acct-x);
    z-index: 1;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--acct-run-track);
    pointer-events: none;
}
.acct-feed-run i { display: block; width: 26%; height: 100%; border-radius: 2px; background: var(--acct-run); }
@keyframes acct-feed-run {
    from { transform: translateX(-110%); }
    to { transform: translateX(370%); }
}
@media (prefers-reduced-motion: no-preference) {
    .acct-feed-run i { animation: acct-feed-run 2s cubic-bezier(.45, 0, .55, 1) infinite; }
}
.acct-dash-empty { display: grid; justify-items: center; gap: 14px; padding: 56px 24px 60px; border-top: 1px solid var(--acct-rule); text-align: center; }
.acct-dash-empty-ic { display: grid; place-items: center; width: 46px; height: 46px; box-sizing: border-box; border: 1.5px solid rgba(var(--brand-rgb), .34); border-radius: 50%; color: var(--brand); }
.acct-dash-empty p { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 700; }

/* Réussite : le taux en grand, un rail de 24 segments, trois lignes pointillées. */
.acct-perf { padding: var(--acct-y) var(--acct-x); }
.acct-perf h2 { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 700; line-height: 1.45; }
.acct-perf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 10px; }
.acct-perf-rate { display: flex; align-items: baseline; gap: 5px; margin: 0; color: var(--ink-strong); line-height: 1; }
.acct-perf-rate strong { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.acct-perf-rate span { font-size: 18px; font-weight: 700; }
.acct-perf-legend { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.acct-perf-legend li { display: flex; align-items: center; gap: 8px; }
.acct-perf-legend i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.acct-perf-legend b { color: var(--ink-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.acct-perf-rail { display: flex; gap: 3px; margin-top: 14px; }
.acct-perf-rail i { flex: 1 1 0; height: 8px; border-radius: 2px; background: var(--acct-rule); }
.acct-perf i.is-ok { background: var(--ok); }
.acct-perf i.is-bad { background: var(--bad); }
.acct-dots { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--acct-rule); font-size: 13px; }
.acct-dots > div { display: flex; align-items: baseline; gap: 8px; }
.acct-dots dt { order: 1; color: var(--muted); }
.acct-dots dd { order: 3; margin: 0; color: var(--ink-strong); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-dots > div::before { content: ""; order: 2; flex: 1 1 auto; border-bottom: 1px dotted rgba(var(--brand-rgb), .34); }

/* Mouvements : le libellé, puis la date et le montant sur la même ligne. */
.acct-moves { flex: 1 1 auto; display: flex; flex-direction: column; padding: var(--acct-y) var(--acct-x) 6px; }
.acct-moves .acct-card-head { padding-bottom: 10px; }
.acct-move-list { flex: 1 1 auto; display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; }
.acct-move-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--acct-rule); }
/* B v3 : entre deux mouvements, la ligne fine du tiroir de suivi. */
.acct-move-list li + li { border-image: linear-gradient(90deg, transparent, var(--brand-action, var(--brand)), transparent) 1 / 1px 0 0 0; }
.acct-move-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border: 1.5px solid rgba(var(--brand-rgb), .3); border-radius: 50%; background: var(--panel); color: var(--brand); }
.acct-move-ic.is-in { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.acct-move-tx { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.acct-move-label { color: var(--ink-strong); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.acct-move-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acct-move-line small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.acct-move-line b { color: var(--ink-strong); font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-move-line b.is-in { color: var(--ok); }
.acct-empty { flex: 1 1 auto; display: grid; place-items: center; margin: 0; padding: 26px 0 30px; border-top: 1px solid var(--acct-rule); color: var(--muted); font-size: 13px; text-align: center; }

/* Rangée du bas : API revendeur et Parrainage, l'action sous le texte. */
.acct-dash-pair { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.acct-dash-pair:not(:has(> *)) { display: none; }
.acct-mini { flex: 1 1 300px; display: flex; align-items: center; gap: 14px; padding: var(--acct-y) var(--acct-x); }
.acct-mini.is-wide { flex: 1.35 1 380px; }
.acct-mini-ic { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; color: var(--brand); }
.acct-mini-ic::before { content: ""; position: absolute; inset: 0; border: 1.5px solid currentColor; border-radius: 50%; opacity: .36; }
.acct-mini-ic.is-ok { color: var(--ok); }
.acct-mini-tx { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }

.acct-mini-title { margin: 0; color: var(--ink-strong); font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.acct-mini-sub { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; font-variant-numeric: tabular-nums; text-wrap: pretty; }
.acct-mini .acct-badge { height: 20px; padding: 0 8px; }
.acct-mini .acct-card-link { justify-self: start; margin: -8px 0 -13px; }
.acct-mini .button { justify-self: start; margin-top: 6px; white-space: nowrap; }

@media (max-width: 760px) {
    .acct-dash-top { flex-direction: column; gap: 16px; }
    .acct-activity { flex-basis: auto; min-width: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); border-left: 0; }
}
@media (max-width: 640px) {
    .acct-main:has(> .acct-band--dash) { gap: 14px; }
    .acct-dash-grid, .acct-dash-pair { --acct-x: calc(var(--dash-pad) - 4px); --acct-y: calc(var(--dash-row-y) + 1px); gap: 14px; }
    .acct-band--dash .acct-band-in { padding-bottom: 16px; }
    .acct-band--dash .acct-band-head { gap: 2px 10px; }
    .acct-band--dash .acct-band-greet { font-size: 12.5px; }
    .acct-dash-top { margin-top: 14px; }
    .acct-dash-wallet { gap: 16px; }
    .acct-dash-wallet-row { display: grid; gap: 16px; }
    .acct-dash-facts { display: grid; grid-template-columns: 1fr 1fr; }
    .acct-dash-facts > div { padding-right: 0; }
    .acct-dash-facts > div + div { padding-left: 16px; }
    .acct-dash-facts dd { white-space: normal; }
    .acct-activity .acct-band-label { font-size: 12.5px; }
    .acct-activity-month { gap: 7px; font-size: 13.5px; }
    .acct-activity-month strong { font-size: 22px; }

    .acct-dash-orders-top { padding: 4px 0 10px; }
    .acct-dash-orders .acct-card-head { padding: 0 var(--acct-x); }
    .acct-dash-grid .acct-card-link { margin-top: 0; margin-bottom: 0; }
    /* Compteurs : quatre cases, le nombre au-dessus de son libellé. */
    .acct-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0 6px; }
    .acct-count, .acct-count:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 1px 5px; min-height: 44px; padding: 0 8px; font-size: 11.5px; line-height: inherit; white-space: nowrap; }
    .acct-count::after { content: none; }
    .acct-count i { grid-area: 2 / 1; width: 7px; height: 7px; }
    .acct-count span { grid-area: 2 / 2; overflow: hidden; text-overflow: ellipsis; }
    .acct-count b { grid-area: 1 / 1 / 2 / 3; font-size: 17px; line-height: 1.2; }
    .acct-dash-orders .acct-counts { margin: 10px 12px 0; }
    .acct-dash-orders .acct-count, .acct-dash-orders .acct-count:first-child { height: auto; min-height: 44px; padding: 0 6px; }
    /* Lignes : le nom, puis type et montant, puis référence et statut. */
    .acct-feed-row { grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 0 10px; min-height: 0; padding: 12px 10px 12px var(--acct-x); }
    .acct-feed-row > .acct-thumb { align-self: start; width: 48px; height: 33px; margin-top: 2px; border-radius: 7px; }
    .acct-feed-main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "tag amount" "ref pill"; gap: 4px 8px; }
    .acct-feed-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13.5px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
    .acct-feed-meta { display: contents; }
    
    .acct-feed-ref { grid-area: ref; font-size: 11.5px; white-space: normal; }
    .acct-feed .order-status-pill { justify-self: end; height: 24px; padding: 0 9px 0 7px; font-size: 11.5px; }
    .acct-feed-amount { font-size: 13.5px; }
    .acct-again { width: 36px; height: 36px; }
    .acct-again::before { inset: -4px; }
    .acct-feed-run { right: var(--acct-x); }
    .acct-dash-empty { padding: 36px 20px 40px; }

    .acct-perf { padding-bottom: calc(var(--acct-y) + 2px); }
    .acct-moves { padding-top: 4px; }
    .acct-moves .acct-card-head { padding-bottom: 0; }
    .acct-move-list { grid-auto-rows: auto; }
    .acct-move-list li { padding: 9px 0; }
    .acct-mini { gap: 12px; padding: var(--acct-x); }
}

/* ── Mes commandes (canvas 1ZJwFv…, « Version A », intégré le 10/11/2026) ── */
.finance-list-shell, .order-history-shell { display: grid; gap: 20px; min-width: 0; line-height: 1.45; }
.finance-list-card, .order-history-card { overflow: hidden; }

/* Bandeau : le nombre et la recherche, puis les statuts en puces. */

.order-history-search { display: flex; align-items: center; position: relative; flex: 0 1 360px; min-width: 220px; }
.order-history-search .icon { position: absolute; left: 15px; color: rgba(255, 255, 255, .8); pointer-events: none; }
.order-history-search input {
    width: 100%;
    padding: 0 14px 0 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 14px;
}
.order-history-search input::placeholder { color: rgba(255, 255, 255, .66); }
.order-history-search input:hover { border-color: rgba(255, 255, 255, .44); }
.order-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.order-chip {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .94);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s var(--dash-ease);
}
/* Cible de 44 px, la puce visible reste fine. */
.order-chip::after { content: ""; position: absolute; inset: -5px 0; }
.order-chip i { flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid var(--chip-dot); border-radius: 50%; background: var(--chip-dot); }
.order-chip b { color: rgba(255, 255, 255, .74); font-weight: 800; font-variant-numeric: tabular-nums; }
.order-chip.is-run { --chip-dot: #f2b84b; --chip-dot-on: #d28a12; }
.order-chip.is-wait { --chip-dot: #a9b6c9; --chip-dot-on: #6b7789; }
.order-chip.is-ok { --chip-dot: #3fcf9f; --chip-dot-on: #087252; }
.order-chip.is-bad { --chip-dot: #ff8a94; --chip-dot-on: #b42333; }
.order-chip.is-zero { color: rgba(255, 255, 255, .72); }
.order-chip.is-zero b { color: rgba(255, 255, 255, .56); }
.order-chip.is-zero i { border-color: rgba(255, 255, 255, .5); background: transparent; }
.order-chip:not([aria-current]):hover { background: rgba(255, 255, 255, .15); color: #ffffff; text-decoration: none; }
.order-chip:focus-visible { outline: 2px solid var(--acct-signal); outline-offset: 2px; }
.order-chip[aria-current], .order-chip[aria-current]:hover { border-color: #ffffff; background: #ffffff; color: var(--decor-mid); text-decoration: none; }
.order-chip[aria-current] b { color: var(--brand-action); }
.order-chip[aria-current] i { border-color: var(--chip-dot-on); background: var(--chip-dot-on); }
.order-chip[aria-current].is-zero i { border-color: #9aa7ba; background: transparent; }

/* B v3 « Journal du jour » (11/11/2026). .acct-band--low : carte basse, le
   titre et un trait fin terminé par un anneau sur une ligne (Mes commandes,
   Mes factures, Mouvements, Profil, Tableau de bord). .acct-band--journal :
   la recherche au bout de cette ligne, puis les statuts réunis dans une seule
   réglette avec leur nombre. Un seul accent : le point doré d'« En cours »
   (ou d'« En attente »), seulement quand il en reste une. */
.acct-band--low .acct-band-in { padding: 16px 20px; }
.acct-band--low .acct-band-head { flex-wrap: nowrap; align-items: center; gap: 16px; }
.acct-band--low .acct-band-title { flex: none; color: #ffffff; font-size: 20px; font-weight: 700; letter-spacing: -.012em; line-height: 1.2; text-transform: none; }
.order-band-rule { flex: 1 1 auto; min-width: 24px; display: flex; align-items: center; }
.order-band-rule::before { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2)); }
.order-band-rule::after { content: ""; flex: none; width: 7px; height: 7px; box-sizing: border-box; border: 1.5px solid rgba(255, 255, 255, .32); border-radius: 50%; }
.acct-band--journal .order-history-search { flex: 0 1 320px; min-width: 200px; }
.acct-band--journal .order-history-search .icon { left: 13px; }
.acct-band--journal .order-history-search input { height: 40px; min-height: 0; padding: 0 12px 0 40px; border-color: rgba(255, 255, 255, .24); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.acct-band--journal .order-history-search input:hover { border-color: rgba(255, 255, 255, .4); }
.acct-band--journal .order-chips {
    flex-wrap: nowrap;
    gap: 2px;
    margin-top: 14px;
    padding: 3px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    overflow-x: auto;
    scrollbar-width: none;
}
.acct-band--journal .order-chips::-webkit-scrollbar { display: none; }
.acct-band--journal .order-chip {
    flex: 1 0 auto;
    justify-content: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .9);
    font-size: 12.5px;
    font-weight: 600;
    transition: background-color .15s var(--dash-ease), color .15s var(--dash-ease);
}
.acct-band--journal .order-chip::after { display: none; }
.acct-band--journal .order-chip i { width: 7px; height: 7px; border: 0; background: #f2b84b; }
.acct-band--journal .order-chip b { color: rgba(255, 255, 255, .6); font-weight: 700; }
.acct-band--journal .order-chip.is-zero { color: rgba(255, 255, 255, .66); }
.acct-band--journal .order-chip.is-zero b { color: rgba(255, 255, 255, .56); }
.acct-band--journal .order-chip:not([aria-current]):hover { background: rgba(255, 255, 255, .12); color: #ffffff; }
.acct-band--journal .order-chip:focus-visible { outline-offset: -2px; }
.acct-band--journal .order-chip[aria-current],
.acct-band--journal .order-chip[aria-current]:hover { background: #ffffff; box-shadow: 0 1px 2px rgba(4, 14, 36, .28); color: var(--decor-mid); }
.acct-band--journal .order-chip[aria-current] b { color: var(--brand-action); }
.acct-band--journal .order-chip[aria-current] i { background: #d28a12; }
/* Une action au bout de la ligne du titre (Profil) : à la hauteur de la recherche. */
.acct-band--low .acct-band-head .acct-band-btn { flex: none; min-height: 40px; }

/* Liste : en-tête de colonnes, puis une ligne par commande. Un statut ou un
   montant plus long élargit sa colonne vers la gauche, sans rien couper. */
.order-list-head, .order-history-row, .finance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, max-content) minmax(140px, max-content) minmax(112px, max-content) 18px;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
}
.order-list-head { padding-bottom: 9px; background: var(--acct-head); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.order-list-head span:nth-child(4) { text-align: right; }
.order-list, .order-day-list { margin: 0; padding: 0; list-style: none; }
.finance-row, .order-history-row {
    position: relative;
    min-height: 64px;
    box-sizing: border-box;
    border-top: 1px solid var(--acct-rule);
    cursor: pointer;
    transition: background-color .16s var(--dash-ease);
}
:is(.order-history-row, .finance-row):hover { background: rgba(var(--brand-rgb), .05); }
.order-history-card .order-list-head { padding-top: 11px; padding-bottom: 10px; background: none; }

/* Un bandeau par jour du client (couleurs de la v2) : le nom du jour en encre
   foncée, la date en gris, le nombre de commandes du jour à droite. Sans
   color-mix (Chrome 109), il garde --surface-2 et la couleur des filets. */
:root { --order-day-bg: var(--surface-2); --order-day-rule-top: var(--line); --order-day-rule-bottom: var(--line); }
@supports (color: color-mix(in srgb, red, blue)) {
    :root {
        --order-day-bg: color-mix(in srgb, var(--surface-2) 99%, var(--ink-strong));
        --order-day-rule-top: color-mix(in srgb, var(--line) 95.5%, var(--ink-strong));
        --order-day-rule-bottom: color-mix(in srgb, var(--order-day-rule-top) 77%, var(--panel));
    }
}
.order-day-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px;
    border-top: 1px solid var(--order-day-rule-top);
    border-bottom: 1px solid var(--order-day-rule-bottom);
    background: var(--order-day-bg);
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}
.order-day-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.order-day-name b { color: var(--ink-strong); font-weight: 700; }
.order-day-date .is-short { display: none; }
.order-day-count { flex: none; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Entre deux commandes d'un même jour : la ligne fine du tiroir de suivi,
   dense au milieu et fondue vers les bords. border-image ne peint que le haut
   (largeurs 1px 0 0 0) : la mise en page ne bouge pas. */
.order-history-row, .order-day-list > .finance-row { border-top-color: transparent; }
.order-history-row + .order-history-row { border-image: linear-gradient(90deg, transparent, var(--brand-action, var(--brand)), transparent) 1 / 1px 0 0 0; }
.order-day-list > .finance-row + .finance-row { border-image: linear-gradient(90deg, transparent, var(--brand-action, var(--brand)), transparent) 1 / 1px 0 0 0; }
.order-row-service { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-row-tx { display: grid; gap: 3px; min-width: 0; }
.finance-operation-label, .order-service-name { color: var(--ink-strong); font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.order-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.order-row-detail { min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-row-id { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.order-history-row .order-id-button { padding: 0; color: var(--ink-strong); font-family: inherit; font-size: 13.5px; font-weight: 650; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.order-history-row .order-id-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.order-row-date, .order-row-clock { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.order-row-clock, .order-row-pct, .order-row-fx { display: none; }
.order-history-row .order-status-line { justify-self: start; gap: 0; min-width: 0; }
.order-list .order-status-pill { gap: 5px; min-width: 92px; height: 26px; min-height: 0; padding: 0 11px 0 9px; border: 0; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.order-list .order-status-pill .icon { width: 13px; height: 13px; }
.order-row-pct { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-row-price { display: grid; justify-items: end; gap: 1px; text-align: right; }
.order-row-price b, .finance-row-amount { color: var(--ink-strong); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-row-note { color: var(--ok); font-size: 11.5px; font-weight: 600; }
.order-row-go { color: var(--muted); opacity: .7; transition: transform .15s var(--dash-ease); }
:is(.order-history-row, .finance-row):hover .order-row-go { color: var(--brand); opacity: 1; transform: translateX(2px); }
/* Survol (et toucher sur mobile) : la ligne prend une teinte de son statut, le
   fond de sa pastille éclairci de moitié, et la flèche la couleur du statut.
   Les pastilles sont cerclées d'un filet de leur couleur. Mêmes teintes pour
   les factures et les mouvements rangés par jour (un débit garde la marque) et
   pour les « Commandes récentes » du tableau de bord, avec la ligne du tiroir
   entre deux commandes. */
.acct-feed-row + .acct-feed-row { border-image: linear-gradient(90deg, transparent, var(--brand-action, var(--brand)), transparent) 1 / 1px 0 0 0; }
.acct-feed-row.is-live-row { background: none; }
.order-history-row:hover .order-row-go, .order-day-list > .finance-row:hover .order-row-go { color: var(--status-color, var(--brand)); }
@supports (color: color-mix(in srgb, red, blue)) {
    .order-history-row:hover, .order-history-row:active, .order-day-list > .finance-row:hover, .order-day-list > .finance-row:active, .acct-feed-row:hover, .acct-feed-row:active { background: color-mix(in srgb, var(--status-color, var(--brand)) 8%, var(--panel)); }
    .order-history-row:hover .order-row-go, .order-day-list > .finance-row:hover .order-row-go { color: color-mix(in srgb, var(--status-color, var(--brand)) 55%, var(--ink-strong)); }
    .order-history-row .order-status-pill, .order-day-list > .finance-row > .order-status-pill, .acct-feed .order-status-pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, color-mix(in srgb, var(--status-color) 55%, var(--ink-strong)) 18%, transparent); }
    :root[data-theme="dark"] .order-history-row:hover, :root[data-theme="dark"] .order-history-row:active, :root[data-theme="dark"] .order-day-list > .finance-row:hover, :root[data-theme="dark"] .order-day-list > .finance-row:active, :root[data-theme="dark"] .acct-feed-row:hover, :root[data-theme="dark"] .acct-feed-row:active { background: color-mix(in srgb, var(--status-color, var(--brand)) 10%, var(--panel)); }
    :root[data-theme="dark"] .order-history-row:hover .order-row-go, :root[data-theme="dark"] .order-day-list > .finance-row:hover .order-row-go { color: color-mix(in srgb, var(--status-color, var(--brand)) 45%, #ffffff); }
    :root[data-theme="dark"] .order-history-row .order-status-pill, :root[data-theme="dark"] .order-day-list > .finance-row > .order-status-pill, :root[data-theme="dark"] .acct-feed .order-status-pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, color-mix(in srgb, var(--status-color) 45%, #ffffff) 18%, transparent); }
}
/* Commande en cours : les deux effets du tiroir de suivi (.order-live-surface)
   portés sur la ligne. Le fond se teinte jusqu'à l'avancement réel (--p, tenu
   par customer.js) et un reflet le parcourt ; la ligne du bas pousse, perle en
   tête et anneau qui pulse. Ambre pendant l'envoi, couleur du statut final à
   la fin : un éclat traverse la ligne (data-order-effect), puis l'effet
   s'efface (is-live-done). Tout bouge en transform et en opacity, même
   l'avancement (scaleX du fond, translateX de la ligne), et les teintes passent
   par l'opacité (Chrome 109 sans color-mix). Mêmes effets sur une commande en
   cours des « Commandes récentes » du tableau de bord (.acct-feed-row). */
.acct-feed-row, .order-history-row { --row-fx: var(--status-color); }
.acct-feed-row[data-order-live-status="in_process"], .order-history-row[data-order-live-status="in_process"] { --row-fx: var(--acct-run); }
.acct-feed-row.is-live-row, .order-history-row.is-live-row { isolation: isolate; overflow: hidden; }

.acct-feed-row.is-live-row .order-row-fx, .order-history-row.is-live-row .order-row-fx {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .6s ease, visibility 0s linear;
}
.order-history-row.is-live-row .order-live-wash, .acct-feed-row.is-live-row .order-live-wash,
.acct-feed-row.is-live-row .order-live-line, .order-history-row.is-live-row .order-live-line {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.22, .8, .36, 1);
}
.acct-feed-row.is-live-row .order-live-wash, .order-history-row.is-live-row .order-live-wash {
    top: 0;
    bottom: 0;
    overflow: hidden;
    transform: scaleX(calc(var(--p, 0) / 100));
}
.order-history-row.is-live-row .order-live-wash::before, .acct-feed-row.is-live-row .order-live-wash::before,
.order-history-row.is-live-row .order-live-wash::after, .acct-feed-row.is-live-row .order-live-wash::after,
.acct-feed-row.is-live-row[data-order-effect] .order-live-sweep, .order-history-row.is-live-row[data-order-effect] .order-live-sweep {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}
.acct-feed-row.is-live-row .order-live-wash::before, .order-history-row.is-live-row .order-live-wash::before {
    right: 0;
    background: linear-gradient(90deg, var(--row-fx) 0, var(--row-fx) calc(100% - 36px), transparent);
    opacity: .09;
}
.acct-feed-row.is-live-row .order-live-wash::after, .order-history-row.is-live-row .order-live-wash::after {
    width: 42%;
    background: linear-gradient(90deg, transparent, var(--row-fx), transparent);
    opacity: .2;
    transform: translateX(-100%);
    animation: order-live-flow 2.6s cubic-bezier(.45, .05, .35, 1) .4s infinite;
}
.acct-feed-row.is-live-row .order-live-line, .order-history-row.is-live-row .order-live-line {
    bottom: 0;
    height: 2px;
    border-radius: 0 3px 3px 0;
    background: var(--row-fx);
    transform: translateX(calc((var(--p, 0) - 100) * 1%));
}
.acct-feed-row.is-live-row .order-live-line::after, .order-history-row.is-live-row .order-live-line::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--row-fx);
    transition: opacity .3s ease;
}
.acct-feed-row.is-live-row .order-live-line::before, .order-history-row.is-live-row .order-live-line::before {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -4px;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid var(--row-fx);
    border-radius: 50%;
    opacity: 0;
    animation: order-live-bead 1.9s cubic-bezier(.2, .6, .35, 1) infinite;
}
.acct-feed-row.is-live-row[data-order-effect] .order-live-line::after, .order-history-row.is-live-row[data-order-effect] .order-live-line::after { opacity: 0; }
.order-history-row.is-live-row[data-order-effect] .order-live-line::before, .acct-feed-row.is-live-row[data-order-effect] .order-live-line::before,
.acct-feed-row.is-live-row[data-order-effect] .order-live-wash::after, .order-history-row.is-live-row[data-order-effect] .order-live-wash::after { animation: none; opacity: 0; }
.acct-feed-row.is-live-row[data-order-effect] .order-live-sweep, .order-history-row.is-live-row[data-order-effect] .order-live-sweep {
    display: block;
    width: 36%;
    background: linear-gradient(90deg, transparent, var(--row-fx), transparent);
    opacity: .24;
    transform: translateX(-110%);
    animation: order-live-sweep .9s cubic-bezier(.4, 0, .2, 1) .25s both;
}
.acct-feed-row.is-live-done .order-row-fx, .order-history-row.is-live-done .order-row-fx { visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s linear .6s; }
:root[data-theme="dark"] .acct-feed-row.is-live-row .order-live-wash::before, :root[data-theme="dark"] .order-history-row.is-live-row .order-live-wash::before { opacity: .14; }
:root[data-theme="dark"] .acct-feed-row.is-live-row .order-live-wash::after, :root[data-theme="dark"] .order-history-row.is-live-row .order-live-wash::after { opacity: .3; }
:root[data-theme="dark"] .acct-feed-row.is-live-row[data-order-effect] .order-live-sweep, :root[data-theme="dark"] .order-history-row.is-live-row[data-order-effect] .order-live-sweep { opacity: .32; }
@media (prefers-reduced-motion: reduce) {
    .order-history-row.is-live-row .order-row-fx, .acct-feed-row.is-live-row .order-row-fx,
    .order-history-row.is-live-row .order-live-wash, .acct-feed-row.is-live-row .order-live-wash,
    .acct-feed-row.is-live-row .order-live-line, .order-history-row.is-live-row .order-live-line { transition: none; }
    .order-history-row.is-live-row .order-live-wash::after, .acct-feed-row.is-live-row .order-live-wash::after,
    .acct-feed-row.is-live-row .order-live-line::before, .order-history-row.is-live-row .order-live-line::before { animation: none; opacity: 0; }
    .order-history-row.is-live-row[data-order-effect] .order-live-sweep, .acct-feed-row.is-live-row[data-order-effect] .order-live-sweep,
    .acct-feed-row .acct-thumb.is-photo::after, .order-history-row .acct-thumb.is-photo::after { display: none; }
}
@supports selector(:has(a)) {
    /* Au clavier, le contour entoure toute la ligne. */
    .order-history-row:has(.order-id-button:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
    .order-history-row .order-id-button:focus-visible { outline: none; }
}
/* Tant que la commande tourne : le minuteur remplace l'heure, dans la teinte
   du statut, et la pastille porte « · n % » (« En cours · 64 % »), sur
   ordinateur comme sur mobile. */
.order-history-row.is-live-row:not(.is-live-done) .order-row-date { display: none; }
.order-history-row.is-live-row:not(.is-live-done) .order-row-clock { display: inline; }
.order-history-row.is-live-row:not(.is-live-done) .order-status-line {
    justify-content: center;
    min-width: 92px;
    height: 26px;
    box-sizing: border-box;
    padding-right: 11px;
    border-radius: 999px;
    background: var(--status-bg);
    color: var(--status-color);
}
.order-history-row.is-live-row:not(.is-live-done) .order-status-pill { min-width: 0; padding-right: 0; background: none; box-shadow: none; }
.order-history-row.is-live-row:not(.is-live-done) .order-row-pct { display: inline; }
.order-history-row.is-live-row:not(.is-live-done) .order-row-pct::before { content: "·"; margin: 0 5px; }
.order-history-row.is-live-row[data-order-effect="fail"] .order-row-pct { display: none; }
@supports (color: color-mix(in srgb, red, blue)) {
    .order-history-row.is-live-row:not(.is-live-done) .order-status-line {
        background: color-mix(in srgb, var(--status-color) 18%, var(--panel));
        box-shadow: inset 0 0 0 1px color-mix(in srgb, color-mix(in srgb, var(--status-color) 55%, var(--ink-strong)) 18%, transparent);
        color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong));
    }
    .order-history-row.is-live-row:not(.is-live-done) .order-row-clock { color: color-mix(in srgb, var(--status-color) 55%, var(--ink-strong)); }
    :root[data-theme="dark"] .order-history-row.is-live-row:not(.is-live-done) .order-status-line {
        background: color-mix(in srgb, var(--status-color) 22%, var(--panel));
        box-shadow: inset 0 0 0 1px color-mix(in srgb, color-mix(in srgb, var(--status-color) 45%, #ffffff) 18%, transparent);
        color: color-mix(in srgb, var(--status-color) 45%, #ffffff);
    }
    :root[data-theme="dark"] .order-history-row.is-live-row:not(.is-live-done) .order-row-clock { color: color-mix(in srgb, var(--status-color) 45%, #ffffff); }
}
@media (min-width: 721px) and (max-width: 1199px) {
    .order-list-head, .order-history-row, .finance-row {
        grid-template-columns: minmax(0, 1fr) minmax(118px, max-content) minmax(124px, max-content) minmax(96px, max-content) 18px;
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }
    .order-day-band { padding: 0 16px; }
}

/* Liste vide, ou aucun résultat pour la recherche ou le statut choisi. */
.order-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 24px 60px; color: var(--muted); font-size: 13px; text-align: center; }
.order-empty strong { margin-top: 8px; color: var(--ink-strong); font-size: 15px; font-weight: 700; }
.order-empty .button { margin-top: 10px; }

/* Pied : « 1–20 sur 41 commandes », puis les pages. */
.order-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--acct-rule); }
.order-pager-range { margin: 0 auto 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.order-page {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 4px;
    border-radius: 9px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}
a.order-page:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.order-page:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.order-page.is-current { background: var(--brand-strong); color: var(--panel); font-weight: 700; }
.order-page.is-gap { min-width: 20px; color: var(--muted); }
.order-page:is(.is-prev, .is-next) { border: 1px solid var(--line); color: var(--brand); }
.order-page.is-prev .icon { transform: scaleX(-1); }
.order-page[aria-disabled] { border-color: var(--acct-rule); color: var(--muted); opacity: .6; }
@media (min-width: 721px) {
    /* Ordinateur : flèches seules, le mot reste lu par les lecteurs d'écran. */
    .order-page:is(.is-prev, .is-next) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 720px) {
    .finance-list-shell, .order-history-shell { gap: 14px; }
    
    .order-history-search { margin-top: 14px; }
    .order-history-search .icon { left: 14px; }
    .order-history-search input { height: 48px; padding-left: 42px; font-size: 16px; }
    /* Puces sur une rangée qui défile, d'un bord à l'autre du bandeau. */
    .order-chips { flex-wrap: nowrap; margin: 16px -16px -16px; padding: 14px 16px 16px; overflow-x: auto; scrollbar-width: none; }
    .order-chips::-webkit-scrollbar { display: none; }
    .order-chip { height: 40px; }
    .order-chip::after { inset: -2px 0; }

    /* Carte basse : le titre, la recherche sur toute la largeur, puis la
       réglette qui défile. */
    .acct-band--low .acct-band-in { padding: 14px; }
    .acct-band--low .acct-band-head { flex-wrap: wrap; gap: 12px; }
    .acct-band--low .acct-band-title { flex: 1 1 100%; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
    .acct-band--low .order-band-rule { display: none; }
    /* Sans recherche (Profil, Tableau de bord) : le titre partage sa ligne avec
       la salutation ou l'action. */
    .acct-band--low:not(.acct-band--journal) .acct-band-head { flex-wrap: nowrap; align-items: center; }
    .acct-band--low:not(.acct-band--journal) .acct-band-title { flex: 0 1 auto; min-width: 0; }
    .acct-band--low:not(.acct-band--journal) .acct-band-btn { margin-left: auto; }
    .acct-band--journal .order-history-search { flex: 1 1 100%; min-width: 0; margin-top: 0; }
    .acct-band--journal .order-history-search input { height: 44px; padding-left: 40px; font-size: 16px; }
    .acct-band--journal .order-chips { margin: 12px 0 0; padding: 3px; }
    .acct-band--journal .order-chip { flex: none; height: 38px; padding: 0 12px; font-size: 13px; }

    /* Bandeaux de jour : la date en court (« mer. 11 nov. »), le premier sans
       filet sous le bord de la carte. */
    .order-day-band { gap: 10px; padding: 0 14px; }
    .order-day:first-child .order-day-band { border-top-color: transparent; }
    .order-day-name { gap: 0 7px; }
    .order-day-date .is-long { display: none; }
    .order-day-date .is-short { display: inline; }

    /* Trois lignes par commande : le nom ; le type et le prix ; le numéro et
       le statut. Une commande en cours garde ses effets et son « n % » dans
       la pastille. */
    .order-list-head, .order-row-go { display: none; }
    .order-history-row {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-areas: "thumb name name" "thumb meta price" "thumb ref pill";
        gap: 0 10px;
        min-height: 0;
        padding: 12px 14px;
    }
    .order-row-service, .order-row-tx { display: contents; }
    .order-history-row .acct-thumb { grid-area: thumb; align-self: start; width: 48px; height: 33px; margin-top: 2px; border-radius: 7px; }
    .finance-operation-label, .order-service-name { grid-area: name; font-size: 13.5px; line-height: 1.3; }
    .order-row-meta { grid-area: meta; flex-wrap: nowrap; gap: 7px; margin-top: 4px; font-size: 11.5px; }
    
    .order-row-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .order-row-price { grid-area: price; justify-self: end; display: flex; align-items: baseline; gap: 7px; margin-top: 4px; }
    .order-row-price b { order: 1; font-size: 13.5px; }
    .order-row-id { grid-area: ref; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; margin-top: 4px; }
    .order-history-row .order-id-button { color: var(--muted); font-size: 11.5px; font-weight: 400; }
    .order-row-date, .order-row-clock { font-size: 11.5px; }
    .order-row-date::before, .order-row-clock::before { content: "·"; margin-right: 5px; }
    .order-list .order-status-pill { grid-area: pill; justify-self: end; min-width: 0; height: 24px; margin-top: 4px; padding: 0 9px 0 7px; font-size: 11.5px; }
    .order-history-row .order-status-line { grid-area: pill; justify-self: end; margin-top: 4px; }
    .order-history-row .order-status-pill { margin-top: 0; }
    .order-history-row.is-live-row:not(.is-live-done) .order-status-line { min-width: 0; height: 24px; padding-right: 9px; }
    .order-row-pct { font-size: 11.5px; }

    .order-empty { padding: 44px 20px 48px; }

    /* Précédent, le décompte au centre, Suivant. */
    .order-pager { flex-wrap: nowrap; gap: 10px; padding: 12px 14px; }
    .order-pager-range { order: 2; flex: 1 1 auto; margin: 0; text-align: center; }
    .order-pager > .order-pager-range span, .order-page:not(.is-prev, .is-next), .order-page .icon { display: none; }
    .order-page:is(.is-prev, .is-next) { height: 44px; padding: 0 14px; border-radius: 10px; }
    .order-page.is-prev { order: 1; }
    .order-page.is-next { order: 3; }
    a.order-page.is-next, a.order-page.is-next:hover { padding: 0 16px; border-color: var(--brand-strong); background: var(--brand-strong); color: var(--panel); font-weight: 700; }
}

/* ── Profil, double authentification, numéro (version A « Net ») ──────── */
/* Bandeau : l'identité à gauche, les étapes après le filet. */
.acct-id { display: flex; align-items: center; gap: 14px; }
.acct-avatar { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #ffffff; color: var(--navy); font-size: 22px; font-weight: 800; }
.acct-avatar.is-icon { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: var(--acct-signal); }
.acct-id-tx { min-width: 0; }
.acct-id-tx strong { display: block; color: #ffffff; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.acct-id-tx span { display: block; margin-top: 4px; color: rgba(255, 255, 255, .72); font-size: 13px; overflow-wrap: anywhere; }
.acct-band-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ffffff; font-size: 11.5px; font-weight: 700; }
.acct-band-btn.is-light { min-height: 46px; border-color: #ffffff; background: #ffffff; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); color: var(--navy); font-size: 14px; font-weight: 750; }
.acct-band-btn.is-light:hover { background: #eaf2ff; color: var(--navy); }
.acct-track { min-width: 0; }
.acct-track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; }
.acct-track-head b { color: #ffffff; font-weight: 700; font-variant-numeric: tabular-nums; }
.acct-track-steps { display: flex; margin: 14px 0 0; padding: 0; list-style: none; }
.acct-track-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.acct-track-step + .acct-track-step::before { content: ""; position: absolute; top: 11px; right: calc(50% + 16px); width: calc(100% - 32px); border-top: 2px dotted rgba(255, 255, 255, .3); }
.acct-track-step:is(.is-done, .is-current)::before { border-top-style: solid; border-top-color: var(--acct-signal); }
.acct-track-dot { display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #06283d; }
.acct-track-step:is(.is-done, .is-current) .acct-track-dot { border-color: var(--acct-signal); box-shadow: 0 0 0 4px var(--acct-signal-soft); }
.acct-track-step.is-done .acct-track-dot { background: var(--acct-signal); }
.acct-track-step.is-current .acct-track-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acct-signal); }
.acct-track-label { margin-top: 7px; color: rgba(255, 255, 255, .72); font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.acct-track-step:is(.is-done, .is-current) .acct-track-label { color: #ffffff; }
.acct-track-state { color: rgba(255, 255, 255, .66); font-size: 11.5px; line-height: 1.35; }

/* Cartes de formulaire : le titre (et son lien ou son état) sur une ligne,
   les champs sur une grille, un seul bouton principal par carte. */
.acct-pad { --acct-x: calc(var(--dash-pad) + 2px); --acct-y: calc(var(--dash-row-y) + 3px); padding: var(--acct-y) var(--acct-x) var(--acct-x); line-height: 1.45; }
.acct-pad > .acct-card-head { margin-bottom: 14px; }
/* Profil (B v3, 11/11/2026) : l'en-tête de chaque carte prend la bande de jour
   de « Mes commandes » (couleurs de la v2), collée aux bords de la carte. */
.acct-pad > .acct-card-head.is-band {
    min-height: 42px;
    box-sizing: border-box;
    margin: calc(var(--acct-y) * -1) calc(var(--acct-x) * -1) 18px;
    padding: 6px var(--acct-x);
    border-bottom: 1px solid var(--order-day-rule-bottom);
    border-radius: calc(var(--dash-card-radius) - 1px) calc(var(--dash-card-radius) - 1px) 0 0;
    background: var(--order-day-bg);
}
.acct-card-head.is-band h2 { font-size: 14px; }
.acct-card-title { margin: 0 0 16px; color: var(--ink-strong); font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.acct-card-sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.acct-profile-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.acct-profile-info { flex: 3 1 440px; }
.acct-profile-password { flex: 2 1 320px; }
.acct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.acct-fields .field, .acct-form .field:last-of-type { margin-bottom: 0; }
.acct-form .help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.acct-form .err { display: block; margin-top: 6px; color: var(--bad); font-size: 12.5px; font-weight: 600; }
.acct-locked input:disabled { padding-right: 42px; border-style: dashed; opacity: 1; }
.acct-locked-ic { position: absolute; top: 50%; right: 14px; display: grid; place-items: center; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.acct-checks { margin-top: 18px; border-top: 1px solid var(--acct-rule); }
.acct-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 0 10px; border-bottom: 1px solid var(--acct-rule); color: var(--ink); font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.acct-check input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--brand); cursor: pointer; }
.acct-check .icon { flex: none; margin-top: 1px; color: var(--muted); }
.button.acct-submit { min-height: 46px; margin-top: 16px; }
.acct-rules { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; }
.acct-rules li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color .16s var(--dash-ease); }
.acct-rule-dot { display: grid; place-items: center; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--acct-trace); border-radius: 50%; color: #ffffff; }
.acct-rule-dot .icon { opacity: 0; transition: opacity .16s var(--dash-ease); }
.acct-rules li.is-ok { color: var(--ok); }
.acct-rules li.is-ok .acct-rule-dot { border-color: var(--ok); background: var(--ok); }
.acct-rules li.is-ok .acct-rule-dot .icon { opacity: 1; }
.acct-2fa-off { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) auto; gap: 12px 16px; align-items: end; }
.button.acct-danger { min-height: 46px; border: 1px solid var(--bad); background: var(--panel); box-shadow: none; color: var(--bad); }
.button.acct-danger:hover { background: var(--bad-soft); color: var(--bad); }

/* Double authentification : le QR et la clé, puis le formulaire ; les codes de secours. */
.acct-2fa-setup { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; }
.acct-2fa-key { flex: 0 1 300px; min-width: 0; }
.acct-2fa-qr { width: 204px; box-sizing: border-box; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.acct-2fa-qr svg { display: block; width: 100%; height: auto; }
.acct-2fa-key-label { margin: 14px 0 6px; color: var(--muted); font-size: 12.5px; }
.acct-2fa-key-row { display: flex; align-items: center; gap: 8px; max-width: 320px; }
.acct-2fa-secret { flex: 1 1 auto; min-width: 0; padding: 11px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-strong); font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; overflow-wrap: anywhere; }
.acct-2fa-copy { flex: none; min-height: 44px; }
.acct-2fa-form { flex: 1 1 320px; min-width: 0; max-width: 460px; }
.acct-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.acct-note .icon { flex: none; margin-top: 2px; }
.acct-note.is-warn { background: var(--warn-soft); color: var(--warn-ink); }
.acct-recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.acct-recovery-codes code { display: block; padding: 11px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-strong); font-family: var(--font-mono); font-size: 14px; font-weight: 650; letter-spacing: .06em; text-align: center; }
.acct-recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-recovery-done { margin-left: auto; }

@media (max-width: 640px) {
    .acct-id { gap: 12px; }
    .acct-avatar { width: 46px; height: 46px; font-size: 19px; }
    .acct-id-tx strong { font-size: 21px; }
    .acct-id-tx span { font-size: 12.5px; }
    .acct-track-label { font-size: 12px; }
    .acct-pad { --acct-x: calc(var(--dash-pad) - 2px); }
    .acct-form .acct-submit, .acct-2fa-off .button { width: 100%; }
    .acct-2fa-off { grid-template-columns: minmax(0, 1fr); }
    .acct-2fa-qr { margin: 0 auto; }
    .acct-2fa-key-row { max-width: none; }
    .acct-recovery-actions .button { flex: 1 1 100%; }
    .acct-recovery-done { margin-left: 0; }
}
@media print {
    .acct:has(.acct-recovery) { display: block; }
    .acct:has(.acct-recovery) .acct-nav,
    .acct:has(.acct-recovery) .acct-band,
    .acct-recovery-actions { display: none; }
}

/* ── Ajouter du solde (version A « Net ») ──────────────────────────────── */
.acct-main .fact-card { border-radius: var(--dash-card-radius); box-shadow: var(--dash-card-shadow); }
.balance-step-title { margin: 0 0 12px; color: var(--ink-strong); font-size: 15px; font-weight: 700; }
.balance-add-summary .acct-card-title { margin-bottom: 12px; }
.balance-add-summary .pay-summary { margin-top: 0; padding-top: 0; border-top: 0; }
.balance-add-submit { margin-top: 14px; }

/* Mini-carte « solde après dépôt » de la prod 1.0.164 (12/11/2026) : en une
   colonne, le récapitulatif tombe sous le formulaire, loin du bandeau ; le
   chiffre revient donc près du bouton et le bandeau garde le solde disponible
   seul. Ordinateur (deux colonnes) : bandeau inchangé, mini-carte cachée. */
.bal-wallet--stacked { display: none; }
.bal-wallet {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 14px;
    padding: 16px 16px 14px;
    border-radius: var(--r-lg);
    background: var(--dash-balance-grad);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.bal-wallet::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 92% -40%, rgba(255, 255, 255, .20), transparent 55%);
    pointer-events: none;
}
.bal-wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255, 255, 255, .85); }
.bal-wallet-label { font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bal-wallet-amount { display: block; margin-top: 7px; font-family: var(--font-mono); font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; overflow-wrap: anywhere; }
.bal-wallet-after { margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .88); }
.bal-wallet-after strong { font-family: var(--font-mono); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 980px) {
    .balance-band-after { display: none; }
    .bal-wallet--stacked { display: block; }
}

@media (max-width: 720px) {
    .bal-wallet-amount { font-size: 22px; }
    .acct-main .balance-add-form-panel { border-radius: 14px 14px 0 0; box-shadow: none; }
    .acct-main .balance-add-summary { border-radius: 0 0 14px 14px; }
    .balance-add-form-panel .quick-amounts .chip { min-height: 44px; }
}

/* ── Parcours de paiement (A-MobileMoney, A-Binance, statut) ───────────── */
.acct-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -12px 0 -10px; color: var(--brand); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.acct-back:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
/* Même bord que le bandeau « Net » des autres pages du compte. */
.acct .momo-hero { position: relative; overflow: hidden; margin: 2px 0 16px; padding: 18px 20px 16px; border: 1px solid rgba(var(--brand-rgb), .3); border-radius: 16px; background: var(--acct-band); box-shadow: var(--acct-band-shadow); }
.acct .momo-hero-caption { color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.acct .momo-hero .momo-hero-amount { color: #ffffff; font-weight: 800; letter-spacing: -.028em; }
.acct .momo-hero .momo-hero-sub { color: rgba(255, 255, 255, .72); }
.acct .binance-pay-head {
    --bp-title: #ffffff;
    --bp-mut: rgba(255, 255, 255, .72);
    --bp-ink: #ffffff;
    --bp-accent: var(--acct-signal);
    --bp-line: rgba(255, 255, 255, .25);
    --bp-raised: rgba(255, 255, 255, .1);
    --bp-ok: #7ee2b8;
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    border: 1px solid rgba(var(--brand-rgb), .3);
    border-radius: 16px;
    background: var(--acct-band);
    box-shadow: var(--acct-band-shadow);
}

@media (max-width: 640px) {
    .acct .binance-pay-head { padding: 18px 16px; }
}

/* ── Commande, réclamations (version A « Net ») ───────────────────────── */
.acct-page-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -12px 0 -10px; }
.acct-page-top .acct-back { margin: 0; }
.acct-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Bandeau : la vignette et le service ; le statut à côté du numéro. */
.acct-order-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acct-order-id .acct-thumb { width: 64px; height: 44px; }
.acct-order-name { margin: 0; color: #ffffff; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
.acct-band-head .order-status-pill { align-self: center; gap: 5px; min-width: 0; height: 26px; min-height: 0; padding: 0 11px 0 9px; border: 0; font-weight: 700; letter-spacing: 0; }
.acct-band-head .order-status-pill .icon { width: 13px; height: 13px; }
/* Détail en page pleine : le contenu de la fenêtre, mis en forme comme une
   carte « Net » (titres en clair, libellés au repos, filets fins). */
.order-detail-page-panel { --acct-x: calc(var(--dash-pad) + 2px); --acct-y: calc(var(--dash-row-y) + 3px); line-height: 1.45; }
.order-detail-page-panel .order-detail-content { gap: var(--acct-y); padding: var(--acct-y) var(--acct-x) var(--acct-x); }
.order-detail-page-panel .order-detail-section { padding-top: var(--acct-y); border-top-color: var(--acct-rule); }
.order-detail-page-panel .order-detail-content > .order-detail-section:first-child { padding-top: 0; border-top: 0; }
.order-detail-page-panel .order-detail-section h3 { margin-bottom: 8px; color: var(--ink-strong); font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.005em; text-transform: none; }
.order-detail-page-panel .order-detail-section-head h3 { margin-bottom: 0; }
.order-detail-page-panel :is(.order-timeline-list, .order-field-list) div { grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); padding: 9px 0; border-bottom-color: var(--acct-rule); }
.order-detail-page-panel :is(.order-timeline-list, .order-field-list) div:last-child { padding-bottom: 0; }
.order-detail-page-panel :is(.order-timeline-list dt, .order-field-list span) { font-family: inherit; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.order-detail-page-panel :is(.order-timeline-list dd, .order-field-list strong) { font-size: 14px; font-variant-numeric: tabular-nums; }
/* Réclamations : le service, la date, l'état ; un refus dit sa raison sous la ligne. */
.order-list-head.is-claims, .finance-row.is-claim { grid-template-columns: minmax(0, 1fr) minmax(140px, max-content) minmax(236px, max-content) 18px; }

/* Trois faits dans le bandeau : celui du milieu garde son air à droite. */
.acct-dash-facts.is-trio > div + div:not(:last-child) { padding-right: 20px; }

@media (max-width: 720px) {
    .acct-order-id { gap: 12px; }
    .acct-order-id .acct-thumb { width: 56px; height: 38px; }
    .acct-order-name { font-size: 18px; }
    .order-detail-page-panel { --acct-x: calc(var(--dash-pad) - 2px); }
    .order-detail-page-panel :is(.order-timeline-list, .order-field-list) div { grid-template-columns: minmax(104px, .4fr) minmax(0, 1fr); }
    /* Trois lignes par réclamation : le service ; la référence et la date ; l'état. */
    .finance-row.is-claim { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mark name name" "mark meta date" "mark reason reason" "mark pill pill"; }
    .acct-dash-facts.is-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .acct-dash-facts.is-trio > div + div { padding: 0 0 0 12px; }
    .finance-row.is-claim .acct-thumb { width: 48px; height: 33px; margin-top: 2px; border-radius: 7px; }
    .finance-row.is-claim .order-status-pill { justify-self: start; margin-top: 6px; }
    
}

/* ── Factures et mouvements (version A « Net », intégré le 10/11/2026) ──── */
/* Bandeau, liste, pastilles, états vides et pagination sont ceux de « Mes
   commandes » ; seul ce qui est propre à l'argent est écrit ici. */
.acct-band--money .acct-band-figure { overflow-wrap: anywhere; }
/* Sous les deux moitiés : le mode de paiement ou le sens du mouvement. */
.acct-dash-top + .acct-band-mode { margin-top: 14px; }
/* Le libellé (facture) ou le numéro (mouvement) ouvre le détail, et toute la
   ligne avec lui ; le lien vers la source reste au-dessus. */
.finance-row-link { color: inherit; text-decoration: none; }
.finance-row-link:hover { color: inherit; text-decoration: none; }
.finance-row-link::after { content: ""; position: absolute; inset: 0; }
.finance-row-link:focus-visible { outline: none; }
.finance-row-link:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -2px; }
.finance-row .order-row-meta { flex-wrap: nowrap; }
.finance-row .order-row-meta > * { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.finance-row .order-row-meta > * + *::before { content: "·"; display: inline-block; margin-right: 8px; color: var(--muted); font-weight: 400; }

/* Référence complète sur une ligne, coupée : elle est entière dans le détail. */
.finance-row .order-row-meta > .finance-row-ref { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.finance-row > .order-status-pill { justify-self: start; }
/* Un logo seul garde la place d'une pile de trois : les libellés restent alignés. */
.order-list:has(.acct-pay-stack) .finance-row .order-row-service > .acct-pay { margin-right: 38px; }
.finance-row-amount { text-align: right; }
.finance-row-amount.is-in { color: var(--ok); }

/* « Solde après » : dit par l'en-tête de colonnes sur ordinateur, écrit dans la ligne sur mobile. */

.order-list-head.is-statements span:nth-child(3) { text-align: right; }
/* Page d'une facture ou d'un mouvement : le montant est dans le bandeau, la
   première section n'a plus de trait au-dessus. */

@media (max-width: 720px) {
    /* Trois lignes par ligne de liste : le libellé et le montant ; le numéro
       et la source ; la date, puis le statut ou le solde après. */
    .finance-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 10px; min-height: 0; padding: 12px 14px; }
    .finance-row:first-child { border-top: 0; }
    .finance-row.is-invoice { grid-template-areas: "mark name amount" "mark meta meta" "mark date pill"; }
    .finance-row.is-statement { grid-template-areas: "mark name amount" "mark meta meta" "mark date after"; }
    .finance-row .order-row-service > :first-child { grid-area: mark; align-self: start; }
    .finance-row-amount { grid-area: amount; font-size: 13.5px; }
    .finance-row .order-row-meta { overflow: hidden; }
    .finance-row .order-row-date { grid-area: date; margin-top: 5px; }
    .finance-row .order-row-date::before { content: none; }
    
    
}

/* Logos du mode de paiement : fond blanc, car le jeu d'assets est mixte
   (pastilles pleines et logos sur fond transparent). Une pastille pleine est
   légèrement recadrée pour que son bord sorte du rond. */
.acct-pay {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
}
.acct-pay img { width: 100%; height: 100%; object-fit: contain; }
.acct-pay.is-badge { border-color: transparent; background: transparent; }
.acct-pay.is-badge img { position: absolute; inset: -25%; width: 150%; height: 150%; max-width: none; object-fit: cover; }
.acct-pay.is-mono { background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 800; }
/* Plusieurs opérateurs : pile décalée de trois logos, le premier devant. */
.acct-pay-stack { flex: none; display: flex; align-items: center; }
.acct-pay-stack .acct-pay { padding: 3px; border: 1.5px solid var(--panel); }
.acct-pay-stack .acct-pay.is-badge { padding: 0; }
.acct-pay-stack .acct-pay + .acct-pay { margin-left: -11px; }
.acct-pay-stack .acct-pay:nth-child(1) { z-index: 3; }
.acct-pay-stack .acct-pay:nth-child(2) { z-index: 2; }
.acct-pay-stack .acct-pay:nth-child(3) { z-index: 1; }
/* Sens du mouvement : entrée sur le solde, sortie du solde. */
.acct-op { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.acct-op.is-credit { background: var(--ok-soft); color: var(--ok); }
.acct-op.is-debit { background: var(--surface-2); color: var(--muted); }
.acct-band-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; }
.acct-band .acct-op.is-debit { background: rgba(255, 255, 255, .12); color: #ffffff; }

/* ── API revendeur (version A « Net ») : accès, historique, documentation ── */
.acct-band-state { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 750; }
.acct-band-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.acct-band-state.is-ok { background: rgba(76, 218, 173, .16); color: #9ff3d6; }
.acct-band-state.is-warn { background: rgba(255, 213, 138, .14); color: #ffd58a; }
.acct-band-state.is-bad { background: rgba(255, 143, 128, .16); color: #ffb4a8; }
.acct-band-figure.is-warn strong { color: #ffd58a; }
.acct-band-figure.is-bad strong { color: #ffb4a8; }
/* Plusieurs boutons sous la valeur : serrés, jamais écartés comme deux faits. */
.acct-dash-wallet-row.is-actions { gap: 10px; }

/* Accès : les trois valeurs à copier, une par ligne, le bouton à droite. */

/* Page Acces API en onglets (13/11/2026) : API classique, API Pro. Un trait
   sous l'onglet choisi ; seuls transform et opacity bougent. */

/* Mention discrete, a droite du titre de la carte. */

.acct-pad > .acct-card-sub:last-child { margin-bottom: 0; }

/* Historique : une ligne par appel, le code HTTP en dernière colonne. */
.order-list-head.is-api, .finance-row.is-api { grid-template-columns: minmax(0, 1fr) minmax(132px, max-content) minmax(150px, max-content) 52px; }
.finance-row.is-api { cursor: default; }
.finance-row.is-api:hover { background: none; }
.finance-row.is-api .acct-op { background: var(--surface-2); color: var(--muted); }
.finance-row.is-api code { padding: 0; background: none; color: inherit; font-family: var(--font-mono); font-size: inherit; }

/* Documentation : l'adresse en grand, puis un chapitre par carte. */

@media (max-width: 720px) {
    
    
    
    
    
    
    
    /* Trois lignes par appel : l'action et l'état ; le sens ; la date et le code. */
    .finance-row.is-api { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mark name pill" "mark meta meta" "mark reason reason" "mark date http"; }
    .finance-row.is-api > .order-status-pill { justify-self: end; margin-top: 0; }
    
    
    
    
}

/* Profil « A · Carte » (11/11/2026) : la page sert de preuve de compte. L'avatar
   (figurine 3D au choix), le nom et ses pastilles ; le choix de l'avatar dans
   le bandeau ; quatre repères ; fuseau court ; interrupteurs. Animations en
   transform/opacity seulement. */
.prof-id { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.prof-avatar { position: relative; flex: none; width: 76px; height: 76px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.prof-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #ffffff, 0 0 0 7px rgba(255, 255, 255, .14); }
.prof-avatar-pen { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffffff; color: var(--navy); box-shadow: 0 2px 6px rgba(7, 30, 68, .35); transition: transform .16s var(--dash-ease); }
.prof-avatar:hover .prof-avatar-pen { transform: scale(1.08); }
.prof-avatar:focus-visible { outline: 3px solid var(--acct-signal); outline-offset: 4px; }
.prof-id-tx { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.prof-id-tx strong { color: #ffffff; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.prof-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.prof-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #ffffff; font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.prof-pill.is-ok { border-color: rgba(110, 231, 183, .38); background: rgba(52, 211, 153, .16); color: #b6f5d8; font-weight: 700; }
.prof-pill.is-warn { border-color: rgba(252, 211, 77, .38); background: rgba(251, 191, 36, .14); color: #fde9a8; font-weight: 700; }
.prof-pill-g { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; color: var(--brand); font-size: 10px; font-weight: 800; }

.prof-avatar-panel { margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(8, 27, 61, .55); animation: profPanelIn .22s var(--dash-ease) both; }
.prof-avatar-panel[hidden] { display: none; }
.prof-avatar-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.prof-avatar-panel legend { margin: 0 0 14px; padding: 0; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; }
.prof-avatar-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; justify-items: center; }
.prof-avatar-opt { position: relative; display: block; width: 56px; height: 56px; cursor: pointer; }
.prof-avatar-opt input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.prof-avatar-opt img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .16s var(--dash-ease), box-shadow .16s var(--dash-ease); pointer-events: none; }
.prof-avatar-opt:hover img { transform: scale(1.04); }
.prof-avatar-opt input:checked + img { transform: scale(1.06); box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px rgba(95, 211, 243, .55); }
.prof-avatar-opt input:focus-visible + img { box-shadow: 0 0 0 3px var(--acct-signal), 0 0 0 6px rgba(95, 211, 243, .35); }
@container (max-width: 865px) {
    .prof-avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@supports not (container-type: inline-size) {
    @media (max-width: 1199px) {
        .prof-avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    }
}
.prof-avatar-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.prof-avatar-cancel, .prof-avatar-save { min-height: 42px; padding: 0 16px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.prof-avatar-cancel { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #ffffff; font-weight: 650; }
.prof-avatar-save { border: 0; background: #ffffff; color: var(--brand); }
@keyframes profPanelIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.prof-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .12); }
.prof-facts > div { min-width: 0; padding: 12px 14px; background: rgba(8, 27, 61, .55); }
.prof-facts dt { color: rgba(255, 255, 255, .62); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.prof-facts dd { margin: 3px 0 0; color: #ffffff; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.prof-facts dd.is-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.prof-facts dd.is-missing { color: #fde9a8; }

/* Fuseau : icône à gauche, flèche à droite, texte court coupé proprement. */
.prof-tz select { padding-right: 40px; padding-left: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; appearance: none; -webkit-appearance: none; background-image: none; }
.prof-tz-caret { position: absolute; top: 50%; right: 14px; display: flex; color: var(--muted); transform: translateY(-50%); pointer-events: none; }

/* Interrupteurs : la case reste une vraie case, dessinée en interrupteur à droite. */
.acct-check.is-switch { align-items: center; font-weight: 600; }
.acct-check.is-switch span { flex: 1 1 auto; }
.acct-check.is-switch input { order: 3; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: #c3cfdf; appearance: none; -webkit-appearance: none; transition: background-color .18s var(--dash-ease); }
.acct-check.is-switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(7, 30, 68, .3); transition: transform .18s var(--dash-ease); }
.acct-check.is-switch input:checked { background: var(--brand); }
.acct-check.is-switch input:checked::before { transform: translateX(18px); }
.acct-check.is-switch input:focus-visible { outline: none; box-shadow: var(--ring); }
.prof-2fa-on { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 0; }

@media (max-width: 640px) {
    .prof-id { gap: 14px; margin-top: 14px; }
    .prof-avatar { width: 62px; height: 62px; }
    .prof-avatar-pen { width: 24px; height: 24px; }
    .prof-id-tx strong { font-size: 22px; }
    .prof-avatar-panel { padding: 14px; }
    .prof-avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
    .prof-avatar-opt { width: 52px; height: 52px; }
    .prof-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prof-facts > .is-wide { grid-column: span 2; }
}

/* Profil sur téléphone : la bulle rangée du suivi des commandes ne se pose
   jamais sur la carte d'identité (capture de preuve) ; la barre reste en bas. */
@media (max-width: 1023.98px) {
    .order-tray.is-tucked[data-order-tray-hide-bubble] .order-tray-tab { display: none; }
}

/* Avatar vivant : léger balancement (transform seul, vieux PC), petit rebond quand on en choisit un autre. */
@media (prefers-reduced-motion: no-preference) {
    .prof-avatar img { animation: profAvatarIdle 6s ease-in-out infinite; }
    .prof-avatar img.is-pop { animation: profAvatarPop .36s var(--dash-ease) both, profAvatarIdle 6s ease-in-out .36s infinite; }
    .prof-avatar-opt:hover img { transform: scale(1.04) rotate(-3deg); }
}
@keyframes profAvatarIdle { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-2px) rotate(-1.5deg); } 65% { transform: translateY(1px) rotate(1deg); } }
@keyframes profAvatarPop { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .prof-avatar-panel { animation: none; }
    .prof-avatar-pen, .prof-avatar-opt img, .acct-check.is-switch input, .acct-check.is-switch input::before { transition: none; }
}

/* Profil : la bulle du coin (assistant, iCloud) reste sur ordinateur, jamais sur la carte au téléphone. */

/* ── Motifs du bandeau (refonte ToutLike, 23/11/2026) ──────────────────
   Un dessin par rubrique (data-motif, posé par <x-account-band motif>) sur le
   thème des réseaux sociaux : courbe et cœurs, bulles de notification, pièces
   et paiement mobile, reçu coché, avatar vérifié, amis reliés, messages. SVG
   en ligne dans un repère 620 × 300 ancré en haut à droite (.acct-band-art),
   réduit selon la largeur du bandeau (requêtes de conteneur). Pages
   « journal » : version courte au bout du trait du titre (--band-strip).
   Mouvement doux (opacité, déplacement, tracé), seulement si l'appareil n'a
   pas demandé moins d'animations. */
.acct-band[data-motif] { container-type: inline-size; }
.acct-band-art { position: absolute; top: 0; right: 0; z-index: 1; display: block; width: 620px; height: 300px; transform-origin: 100% 0; pointer-events: none; }
.acct-band-art svg { display: block; overflow: visible; }
/* Les motifs sont dessinés en sarcelle (#5eead4, clair #d5fbf4, encre
   #063b3a) : ces teintes suivent le signal du thème actif. */
.acct-band-art [fill="#5eead4"] { fill: var(--signal); }
.acct-band-art [stroke="#5eead4"] { stroke: var(--signal); }
.acct-band-art [fill="#d5fbf4"] { fill: var(--signal-from); }
.acct-band-art [stroke="#d5fbf4"] { stroke: var(--signal-from); }
.acct-band-art [fill="#063b3a"], .acct-band-art [fill="#0a3d3b"] { fill: var(--signal-ink); }
.acct-band-art [stroke="#063b3a"], .acct-band-art [stroke="#0a3d3b"] { stroke: var(--signal-ink); }
.acct-band-art :is(.art-float, .art-rise, .art-glow, .art-pop, .art-twinkle, .art-blink) { transform-box: fill-box; transform-origin: center; }
/* Profil : sous le bouton 2FA, à droite de l'identité. 2FA et numéro : petit,
   dans le coin, au-dessus des étapes. */
.acct-band--profile .acct-band-art { top: 54px; transform: scale(.85); }
.acct-band:not(.acct-band--low)[data-motif="verifie"] .acct-band-art { transform: scale(.55); }
/* Bandeaux bas (tableau de bord, profil) : le décor remplace le trait. */
.acct-band--low[data-motif]:not(.acct-band--journal) .order-band-rule::before,
.acct-band--low[data-motif]:not(.acct-band--journal) .order-band-rule::after { display: none; }

/* Pages « journal » : bulle de notification ou reçu coché au bout du trait. */
:root {
    --band-bulles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 36' fill='none'%3E %3Crect x='1' y='8' width='96' height='22' rx='11' fill='%23ffffff' fill-opacity='.08' stroke='%23d5fbf4' stroke-opacity='.36'/%3E %3Ccircle cx='13' cy='19' r='7' fill='%23ff8fa3'/%3E %3Cpath transform='translate(9 15.2) scale(.66)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%23ffffff'/%3E %3Crect x='26' y='14.5' width='38' height='4' rx='2' fill='%23ffffff' fill-opacity='.55'/%3E %3Crect x='26' y='21.5' width='24' height='3' rx='1.5' fill='%23ffffff' fill-opacity='.3'/%3E %3Ccircle cx='103' cy='10' r='7' fill='%235eead4'/%3E %3Cpath d='M103 6.8v6.4M99.8 10h6.4' stroke='%23063b3a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.acct-band--journal[data-motif="bulles"] { --band-strip: var(--band-bulles); --band-strip-w: 112px; }
:root {
    --band-recu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 36' fill='none'%3E %3Cpath d='M6 4h18a2 2 0 0 1 2 2v26l-3.5-2-3.5 2-3.5-2-3.5 2-3.5-2-3 2V6a2 2 0 0 1 2-2Z' fill='%23ffffff' fill-opacity='.1' stroke='%23ffffff' stroke-opacity='.42' stroke-linejoin='round'/%3E %3Cpath d='M9 11h12M9 16h12M9 21h7' stroke='%23ffffff' stroke-opacity='.5' stroke-linecap='round'/%3E %3Crect x='34' y='12' width='40' height='4' rx='2' fill='%23ffffff' fill-opacity='.5'/%3E %3Crect x='34' y='20' width='26' height='3' rx='1.5' fill='%23ffffff' fill-opacity='.28'/%3E %3Ccircle cx='93' cy='18' r='9' fill='%235eead4'/%3E %3Cpath d='M88.8 18.2l2.8 2.8 5-5.5' stroke='%23063b3a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.acct-band--journal[data-motif="recu"] { --band-strip: var(--band-recu); --band-strip-w: 104px; }
.acct-band--journal[data-motif] .order-band-rule { align-self: stretch; background: var(--band-strip) right center / auto 34px no-repeat; }
.acct-band--journal[data-motif] .order-band-rule::before { margin-right: var(--band-strip-w); }
.acct-band--journal[data-motif] .order-band-rule::after { display: none; }

@container (max-width: 859px) {
    .acct-band-art { transform: scale(.72); }
    .acct-band--profile .acct-band-art { top: 64px; transform: scale(.68); }
    .acct-band:not(.acct-band--low)[data-motif="verifie"] .acct-band-art { transform: scale(.5); }
}
@container (max-width: 759px) {
    .acct-band--journal[data-motif] .order-band-rule { background: none; }
    .acct-band--journal[data-motif] .order-band-rule::before { margin-right: 0; }
    .acct-band--journal[data-motif] .order-band-rule::after { display: block; }
}
@container (max-width: 599px) {
    .acct-band-art { transform: scale(.46); }
    .acct-band--dash .acct-band-art { top: 26px; }
    .acct-band--profile .acct-band-art { top: 7px; right: 175px; transform: scale(.4); }
    .acct-band:not(.acct-band--low)[data-motif="verifie"] .acct-band-art { transform: scale(.42); }
}
/* Navigateur sans requetes de conteneur (iOS 15, vieux Chrome) : decor retire,
   trait du titre comme sur un bandeau etroit. */
@supports not (container-type: inline-size) {
    .acct-band-art { display: none; }
    @media (max-width: 800px) {
        .acct-band--journal[data-motif] .order-band-rule { background: none; }
        .acct-band--journal[data-motif] .order-band-rule::before { margin-right: 0; }
        .acct-band--journal[data-motif] .order-band-rule::after { display: block; }
    }
}
@media (max-width: 640px) {
    .acct-band--journal[data-motif] .acct-band-title { padding-right: calc(var(--band-strip-w) * .76); background: var(--band-strip) right center / auto 26px no-repeat; }
}

@media (prefers-reduced-motion: no-preference) {
    .acct-band-art svg { animation: bandArtIn .7s var(--dash-ease) .1s backwards; }
    .acct-band-art .art-draw { animation: bandDraw 1.6s var(--dash-ease) .35s backwards; }
    .acct-band-art .art-float { animation: bandFloat 5.5s ease-in-out infinite alternate backwards; }
    .acct-band-art .art-rise { animation: bandRise 6s ease-out infinite backwards; }
    .acct-band-art .art-glow { animation: bandGlow 3.2s ease-in-out infinite; }
    .acct-band-art .art-pop { animation: bandPop .6s cubic-bezier(.34, 1.56, .64, 1) .5s backwards; }
    .acct-band-art .art-twinkle { animation: bandTwinkle 3.6s ease-in-out infinite backwards; }
    .acct-band-art .art-blink { animation: bandBlink 1.4s ease-in-out infinite backwards; }
    .acct-band-art .art-flow { animation: bandFlow 1.6s linear infinite; }
    .acct-band-art .art-late { animation-delay: .9s; }
    .acct-band-art .art-later { animation-delay: 1.8s; }
    .acct-band-art .art-blink.art-late { animation-delay: .2s; }
    .acct-band-art .art-blink.art-later { animation-delay: .4s; }
}
@keyframes bandArtIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes bandDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes bandFloat { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes bandRise { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 18% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: .9; } 100% { opacity: 0; transform: translateY(-22px) scale(1); } }
@keyframes bandGlow { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes bandPop { from { opacity: 0; transform: scale(.4); } }
@keyframes bandTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes bandBlink { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes bandFlow { to { stroke-dashoffset: -20; } }

/* Fenêtres de commande et de facture (#orderDetailDialog,
   #invoiceDetailDialog) : le motif de la page journal (bulle de notification,
   reçu coché) au bout d'un trait fin, sur la ligne du numéro, juste avant la
   croix. Décor seul, sans animation. */
.order-dialog { --dialog-motif: var(--band-bulles); --dialog-motif-w: 75px; }
.invoice-detail-modal { --dialog-motif: var(--band-recu); --dialog-motif-w: 70px; }
.order-dialog .order-dialog-band::before,
.finance-dialog .order-dialog-band::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 70px;
    width: min(210px, calc(100% - 270px));
    height: 24px;
    background:
        var(--dialog-motif) right center / auto 24px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2)) left center / calc(100% - var(--dialog-motif-w) - 9px) 1px no-repeat;
    pointer-events: none;
}
@media (max-width: 560px) {
    .order-dialog .order-dialog-band::before,
    .finance-dialog .order-dialog-band::before { right: 62px; width: min(150px, calc(100% - 250px)); }
}

/* Tiroir ☰ (#mobileNav), surface claire : petits dessins sarcelle en clair,
   blancs en sombre. En-tête « Menu » (visiteur) : un cœur et une bulle au bout
   d'un trait, sur la ligne du titre, avant la croix. Corps : une courbe qui
   monte, une notification et des cœurs très pâles, dans 88 px réservés après
   le dernier bloc (fond « local » : il suit la liste et ne passe jamais sous un
   bouton). Décor seul, sans animation. */
.drawer-head:not(.is-account)::after {
    content: "";
    position: absolute;
    top: calc(50% + env(safe-area-inset-top, 0px) / 2);
    right: 66px;
    width: min(170px, calc(100% - 150px));
    height: 24px;
    transform: translateY(-50%);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='7' fill='%23007878' fill-opacity='.16'/%3E%3Cpath transform='translate(7.6 7.2) scale(.74)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%23007878' fill-opacity='.7'/%3E%3Ccircle cx='30' cy='9' r='2.4' fill='%23007878' fill-opacity='.4'/%3E%3Cpath d='M40 6h14a4 4 0 0 1 4 4v3a4 4 0 0 1-4 4h-9l-4 3v-3h-1a4 4 0 0 1-4-4v-3a4 4 0 0 1 4-4Z' fill='%23007878' fill-opacity='.14' stroke='%23007878' stroke-opacity='.45'/%3E%3C/svg%3E") right center / auto 24px no-repeat,
        linear-gradient(90deg, rgba(var(--brand-rgb), 0), rgba(var(--brand-rgb), .32)) left center / calc(100% - 66px) 1px no-repeat;
    pointer-events: none;
}
:root[data-theme="dark"] .drawer-head:not(.is-account)::after {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='7' fill='%23ffffff' fill-opacity='.16'/%3E%3Cpath transform='translate(7.6 7.2) scale(.74)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%23ffffff' fill-opacity='.7'/%3E%3Ccircle cx='30' cy='9' r='2.4' fill='%23ffffff' fill-opacity='.4'/%3E%3Cpath d='M40 6h14a4 4 0 0 1 4 4v3a4 4 0 0 1-4 4h-9l-4 3v-3h-1a4 4 0 0 1-4-4v-3a4 4 0 0 1 4-4Z' fill='%23ffffff' fill-opacity='.14' stroke='%23ffffff' stroke-opacity='.45'/%3E%3C/svg%3E") right center / auto 24px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22)) left center / calc(100% - 66px) 1px no-repeat;
}
.drawer-body {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 96' fill='none'%3E%3Cpath d='M10 82C60 80 96 70 132 60S204 30 250 22' stroke='%2364748b' stroke-opacity='.22' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='250' cy='22' r='4' fill='%2364748b' fill-opacity='.35'/%3E%3Cg transform='translate(198 44)'%3E%3Crect width='58' height='24' rx='12' fill='%2364748b' fill-opacity='.08' stroke='%2364748b' stroke-opacity='.25'/%3E%3Ccircle cx='12' cy='12' r='7' fill='%23e0466a' fill-opacity='.55'/%3E%3Crect x='24' y='8.5' width='24' height='3.5' rx='1.75' fill='%2364748b' fill-opacity='.3'/%3E%3Crect x='24' y='14.5' width='14' height='3' rx='1.5' fill='%2364748b' fill-opacity='.18'/%3E%3C/g%3E%3Cpath transform='translate(92 30) scale(.9)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%23e0466a' fill-opacity='.45'/%3E%3Cpath transform='translate(150 16) scale(.6)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%2364748b' fill-opacity='.3'/%3E%3Ccircle cx='60' cy='52' r='2.6' fill='%2364748b' fill-opacity='.25'/%3E%3C/svg%3E") right 2px bottom 4px / 260px auto no-repeat local;
    padding-bottom: 88px;
}
:root[data-theme="dark"] .drawer-body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 96' fill='none'%3E%3Cpath d='M10 82C60 80 96 70 132 60S204 30 250 22' stroke='%23ffffff' stroke-opacity='.22' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='250' cy='22' r='4' fill='%23ffffff' fill-opacity='.35'/%3E%3Cg transform='translate(198 44)'%3E%3Crect width='58' height='24' rx='12' fill='%23ffffff' fill-opacity='.08' stroke='%23ffffff' stroke-opacity='.25'/%3E%3Ccircle cx='12' cy='12' r='7' fill='%23ff8fa3' fill-opacity='.55'/%3E%3Crect x='24' y='8.5' width='24' height='3.5' rx='1.75' fill='%23ffffff' fill-opacity='.3'/%3E%3Crect x='24' y='14.5' width='14' height='3' rx='1.5' fill='%23ffffff' fill-opacity='.18'/%3E%3C/g%3E%3Cpath transform='translate(92 30) scale(.9)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%23ff8fa3' fill-opacity='.45'/%3E%3Cpath transform='translate(150 16) scale(.6)' d='M6 10 1.6 5.8A2.6 2.6 0 0 1 6 2.6a2.6 2.6 0 0 1 4.4 3.2Z' fill='%23ffffff' fill-opacity='.3'/%3E%3Ccircle cx='60' cy='52' r='2.6' fill='%23ffffff' fill-opacity='.25'/%3E%3C/svg%3E");
}

/* Reflet sur « Ajouter du solde » (menu du compte et tiroir ☰, 12/11/2026) :
   une fenêtre étroite (.topup-shine) glisse sur le libellé et montre une copie
   menthe du mot (::before, content: attr(data-label), hors du texte de la page),
   recalée en sens inverse : seules les lettres s'allument, comme si la lumière
   passait dessus. Transform seul (unités cqw du libellé). Passages continus
   (1,8 s de passage, 0,6 s de répit) tant que le menu est ouvert ; menu fermé,
   le contenu caché ne s'anime plus. Rien sous prefers-reduced-motion. */
.topup-shine-host { position: relative; display: block; overflow: hidden; container-type: inline-size; }
.topup-shine { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .topup-shine {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 54px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 62%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 38%, #000 62%, transparent);
        transform: translateX(-56px);
        animation: topupShineWindow 2.4s cubic-bezier(.45, 0, .3, 1) .35s infinite;
        pointer-events: none;
    }
    .topup-shine::before {
        content: attr(data-label);
        position: absolute;
        top: 0;
        left: 0;
        color: var(--signal-from);
        text-shadow: 0 0 10px rgba(var(--signal-rgb), .75);
        white-space: nowrap;
        transform: translateX(56px);
        animation: topupShineText 2.4s cubic-bezier(.45, 0, .3, 1) .35s infinite;
    }
}
@keyframes topupShineWindow { 0% { transform: translateX(-56px); } 75%, 100% { transform: translateX(100cqw); } }
@keyframes topupShineText { 0% { transform: translateX(56px); } 75%, 100% { transform: translateX(-100cqw); } }

/* ════════════════════════════════════════════════════════════════════════
   Fenetre de commande « A · Bandeau » (canvas 2Mxhf8…, integree le 11/11/2026)
   Dialog #orderDetailDialog seulement (.order-dialog) : la recharge et le releve
   reutilisent .order-detail-modal et ne changent pas. Le bandeau bleu nuit vient
   du fragment (partials/detail-band) : premier enfant du corps, il reste en place
   pendant que la fiche defile dessous ; le numero et la croix flottent dessus.
   Vieux PC : animations en transform/opacity, aucun flou, color-mix sous @supports.
   ══════════════════════════════════════════════════════════════════════ */
.order-dialog .order-detail-modal-card > h2 {
    position: absolute;
    top: 17px;
    left: 22px;
    right: 70px;
    z-index: 2;
    margin: 0;
    padding: 0;
    background: none;
    color: rgba(255, 255, 255, .66);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.order-dialog .order-detail-modal-card .modal-close {
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    box-shadow: none;
    transition: background-color .15s ease;
}
.order-dialog .order-detail-modal-card .modal-close:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: none; }
.order-dialog .order-detail-modal-card .modal-close:focus-visible { outline: 2px solid #8fc3ff; outline-offset: 2px; }

/* Bandeau : service, puis la ligne d'etat (statut, avancement, horloge, montant). */
.order-dialog-band {
    position: relative;
    flex: none;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--acct-band);
}
/* Nom tres long (jusqu'a 216 caracteres en prod, 12/11/2026) : le bandeau ne retrecit
   jamais (flex: none), un nom de 7 lignes ne laissait presque rien a la fiche qui defile.
   3 lignes au plus (2 sur un ecran bas, 1 en paysage) ; toucher le nom coupe l'affiche en
   entier (customer.js : .is-clamped puis .is-full). Marges et non padding : avec
   line-clamp, un padding bas laisserait voir le haut de la ligne suivante. */
.order-dialog .order-dialog-band .order-detail-service {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 38px 70px 16px 22px;
    padding: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.33;
    font-weight: 700;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.order-dialog .order-dialog-band .order-detail-service.is-clamped { cursor: pointer; }
.order-dialog .order-dialog-band .order-detail-service.is-full { display: block; -webkit-line-clamp: none; overflow: visible; }
@media (max-height: 620px) {
    .order-dialog .order-dialog-band .order-detail-service { -webkit-line-clamp: 2; }
}
@media (max-height: 460px) {
    .order-dialog .order-dialog-band .order-detail-service { -webkit-line-clamp: 1; margin-top: 34px; margin-bottom: 10px; }
}
.order-dialog-strip {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 0 22px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.order-dialog-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.order-dialog-pill { display: inline-flex; }
.order-dialog .order-dialog-band .order-status-pill {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.order-dialog-amount { flex: none; display: grid; justify-items: end; gap: 1px; text-align: right; }
.order-dialog-amount strong { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-dialog-amount small { color: rgba(255, 255, 255, .66); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Avancement : meme dessin que la ligne de « Mes commandes » (.order-live-surface),
   teintes reprises pour le bleu nuit. customer.js le recopie depuis la ligne
   (.is-mirrored) ; sans ligne vivante sur la page, le statut seul. */
.order-dialog .order-dialog-band .order-dialog-strip .order-live-fx {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    color: var(--status-color);
}
.order-dialog .order-dialog-band .order-dialog-strip .order-live-wash { background: none; }
.order-dialog .order-dialog-band .order-dialog-strip .order-live-wash::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, currentColor 0, currentColor calc(100% - 36px), transparent);
    opacity: .2;
}
.order-dialog .order-dialog-band .order-dialog-strip .order-live-wash::after { background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .36; }
.order-dialog .order-dialog-band .order-dialog-strip .order-live-line,
.order-dialog .order-dialog-band .order-dialog-strip .order-live-line::after { background: currentColor; }
.order-dialog .order-dialog-band .order-dialog-strip .order-live-line::before { border-color: currentColor; }
.order-dialog .order-dialog-band .order-dialog-strip[data-order-effect] .order-live-sweep { background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .28; }
.order-dialog .order-dialog-band .order-dialog-strip .order-live-pct { color: rgba(255, 255, 255, .86); }
.order-dialog .order-dialog-band .order-dialog-strip .order-live-clock {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.order-dialog .order-dialog-band[data-order-step="done"] .order-dialog-strip .order-live-clock { color: rgba(255, 255, 255, .78); }
.order-dialog .order-dialog-band .order-live-dot { border-color: rgba(255, 255, 255, .28); background: transparent; }
.order-dialog .order-dialog-band .order-live-dot:first-child,
.order-dialog .order-dialog-band .order-live-meta[data-order-step="running"] .order-live-dot:nth-child(2),
.order-dialog .order-dialog-band .order-live-meta[data-order-step="done"] .order-live-dot { border-color: var(--status-color); background: var(--status-color); }
.order-dialog .order-dialog-band .order-live-meta[data-order-step="waiting"] .order-live-dot:nth-child(2) { border-color: var(--status-color); }
.order-dialog .order-dialog-band.is-live:not(.is-mirrored) .order-live-meta,
.order-dialog .order-dialog-band.is-live:not(.is-mirrored) .order-live-clock,
.order-dialog .order-dialog-band.is-live:not(.is-mirrored) .order-live-fx { display: none; }
.order-dialog .order-dialog-band .order-dialog-strip.is-live-done .order-live-meta { display: none; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .order-dialog .order-dialog-band .order-status-pill {
        border-color: color-mix(in srgb, var(--status-color) 55%, var(--navy));
        background: color-mix(in srgb, var(--status-color) 24%, var(--navy));
        color: color-mix(in srgb, var(--status-color) 42%, #fff);
    }
    .order-dialog .order-dialog-band .order-dialog-strip .order-live-fx { color: color-mix(in srgb, var(--status-color) 78%, #fff); }
    .order-dialog .order-dialog-band .order-dialog-strip .order-live-pct { color: color-mix(in srgb, var(--status-color) 45%, #fff); }
}

/* Page de reclamation : la ligne d'etat devient la piste 1 Capture, 2 Verification,
   3 Resultat (data-claim-stage, tenu par customer.js). */

.order-dialog .order-dialog-band[data-claim-stage] .order-dialog-status,
.order-dialog .order-dialog-band[data-claim-stage] .order-dialog-strip .order-live-fx { display: none; }

.order-dialog-band[data-claim-stage="1"] [data-claim-node="1"],
.order-dialog-band[data-claim-stage="2"] [data-claim-node="2"],
.order-dialog-band[data-claim-stage="3"] [data-claim-node="3"] { color: #fff; }

.order-dialog-band[data-claim-stage="2"] [data-claim-node="1"],
.order-dialog-band[data-claim-stage="3"] [data-claim-node="1"],
.order-dialog-band[data-claim-stage="3"] [data-claim-node="2"] { color: rgba(255, 255, 255, .88); }

.order-dialog-band.is-claim-sending[data-claim-stage="1"] [data-claim-line="1"] i,
.order-dialog-band[data-claim-stage="3"] [data-claim-line="2"] i { transform: scaleX(1); }
.order-dialog-band[data-claim-stage="2"] [data-claim-line="1"] i,
.order-dialog-band[data-claim-stage="3"] [data-claim-line="1"] i { transform: scaleX(1); background: #34b27b; }

/* Chargement et erreur : un bandeau d'attente, pour que le numero et la croix
   restent lisibles sur le bleu nuit. */
.order-dialog-band.is-loading { min-height: 138px; }
.order-dialog-band.is-loading i {
    position: absolute;
    left: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    animation: order-dialog-pulse 1.1s ease-in-out infinite alternate;
}
.order-dialog-band.is-loading i:nth-child(1) { top: 42px; width: 58%; height: 16px; }
.order-dialog-band.is-loading i:nth-child(2) { top: 95px; width: 116px; height: 27px; animation-delay: .2s; }
.order-dialog-band.is-empty { min-height: 58px; }
.order-dialog .order-detail-loading,
.order-dialog .order-detail-error { margin: 0; padding: 16px 20px 18px; }
@keyframes order-dialog-pulse { from { opacity: .5; } to { opacity: 1; } }

/* Corps : une seule zone qui defile, les blocs a leur hauteur naturelle. */
.order-dialog .order-detail-modal-card .order-detail-content {
    grid-auto-rows: max-content;
    align-content: start;
    gap: 12px;
    padding: 16px 20px 18px;
    scrollbar-gutter: auto;
}
.order-dialog-long {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(138, 75, 0, .2);
    border-radius: 12px;
    background: var(--warn-soft);
    animation: claim-rise .45s var(--dash-ease) backwards;
}
.order-dialog-long[hidden] { display: none; }
.order-dialog-long-icon { flex: none; margin-top: 1px; color: var(--warn); }
.order-dialog-long p { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.order-dialog-long strong { color: var(--ink-strong); }
.order-dialog-phone-only { display: none; }

/* Colonne d'informations (piste 5 « Colonne » du canvas du corps, 12/11/2026) : la date
   une fois, la frise des moments (dernier point a la couleur du statut), puis les champs
   envoyes, libelle au-dessus, sans bouton Copier. Telephone : bande pale au-dessus de la
   reponse. Ordinateur (561 px et plus) : colonne de 192 px a gauche, reponse et
   reclamation a droite. Page de reclamation (.is-claim-focus) : une colonne, comme avant.
   Sans :has() (Firefox ESR des vieux PC). */
.order-dialog .order-detail-modal-card .order-detail-content:not(.is-claim-focus) { gap: 0; padding: 0 0 16px; }
.order-dialog .order-detail-content:not(.is-claim-focus) > * { margin: 14px 16px 0; }
.order-dialog .order-detail-content:not(.is-claim-focus) > .order-info { margin: 0; }
.order-dialog .order-detail-content:not(.is-claim-focus) > .order-info:not(:first-child) { margin-top: 14px; border-top: 1px solid var(--line); }
.order-dialog .order-info {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 12px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--acct-head);
}
.order-dialog .order-info-date { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-dialog .order-info .order-timeline-list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.order-dialog .order-info .order-timeline-list div {
    position: relative;
    display: grid;
    grid-template-columns: none;
    align-items: start;
    gap: 1px;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
}
.order-dialog .order-info .order-timeline-list div::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}
.order-dialog .order-info .order-timeline-list div.is-end::before { background: var(--status-color, var(--muted)); }
.order-dialog .order-info .order-timeline-list dt { color: var(--muted); font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.order-dialog .order-info .order-timeline-list dd { margin: 0; color: var(--ink-strong); font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-dialog .order-info .order-timeline-list dd.is-empty { color: var(--muted); }
.order-dialog .order-info-fields { display: grid; gap: 8px; min-width: 0; }
.order-dialog .order-info-fields-head {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
/* Une case par champ (demande du proprietaire, 12/11/2026) : avec 4 ou 5 champs ou un
   e-mail long, les champs se lisaient comme un seul bloc. Fond blanc sur la colonne pale,
   filet fin ; la valeur passe a la ligne apres @ _ - / (<wbr> de detail-fields), sinon
   n'importe ou plutot que de deborder. Telephone : deux cases par ligne des 140 px. */
.order-dialog .order-info .order-field-list { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.order-dialog .order-info .order-field-list div {
    display: grid;
    grid-template-columns: none;
    align-content: start;
    gap: 2px;
    min-width: 0;
    padding: 6px 9px 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}
.order-dialog .order-info .order-field-list div > span {
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
.order-dialog .order-info .order-field-list strong { min-width: 0; color: var(--ink-strong); font-size: 13.5px; font-weight: 700; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }

@media (min-width: 561px) {
    /* Colonne pleine hauteur : elle couvre toutes les lignes ; la derniere (1fr) prend le
       surplus pour que la reponse reste en haut. Le ::after donne la marge du bas. */
    .order-dialog .order-detail-modal-card .order-detail-content:not(.is-claim-focus) {
        grid-template-columns: 192px minmax(0, 1fr);
        grid-template-rows: repeat(8, max-content) 1fr;
        padding: 0;
    }
    .order-dialog .order-detail-content:not(.is-claim-focus)::after { content: ""; grid-column: 2; height: 18px; }
    .order-dialog .order-detail-content:not(.is-claim-focus) > * { grid-column: 2; margin: 16px 20px 0 16px; }
    .order-dialog .order-detail-content:not(.is-claim-focus) > .order-info,
    .order-dialog .order-detail-content:not(.is-claim-focus) > .order-info:not(:first-child) {
        grid-column: 1;
        grid-row: 1 / -1;
        margin: 0;
        padding: 16px 12px 18px 18px;
        border-top: 0;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }
    .order-dialog .order-info .order-timeline-list { display: grid; gap: 0; }
    .order-dialog .order-info .order-timeline-list div { padding: 0 0 10px 18px; }
    .order-dialog .order-info .order-timeline-list div::after {
        content: "";
        position: absolute;
        top: 16px;
        bottom: 2px;
        left: 3.5px;
        width: 1px;
        background: var(--line);
    }
    .order-dialog .order-info .order-timeline-list div:last-child { padding-bottom: 4px; }
    .order-dialog .order-info .order-timeline-list div:last-child::after { display: none; }
    /* Colonne de droite (environ 320 px) : acces libelle au-dessus, invitation empilee. */
    .order-dialog .order-detail-content:not(.is-claim-focus) .order-access-row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; min-height: 0; padding: 8px 8px 8px 14px; }
    .order-dialog .order-detail-content:not(.is-claim-focus) .order-access-row dt { font-size: 12px; }
    
    
}

/* Boutons Copier : pastilles de 34 px, faciles a viser. */
.order-dialog .order-detail-content .order-copy-button {
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--brand-strong);
    font-size: 12.5px;
    font-weight: 700;
}
.order-dialog .order-detail-content .order-copy-button span { color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.order-dialog .order-detail-content .order-copy-button:hover { border-color: var(--brand); background: var(--brand-soft); }
.order-dialog .order-detail-content .order-copy-mini { flex: none; min-width: 74px; padding: 0 12px; }

/* Reponse : memes branches qu'avant (acces, code, texte traduit, lignes, images,
   Loupe), valeurs en Inter et en gras, un seul defilement (celui de la fiche). */
.order-dialog .order-detail-section { display: grid; gap: 8px; padding: 0; border-top: 0; }
.order-dialog .order-detail-section > * { margin-top: 0; margin-bottom: 0; }
.order-dialog .order-detail-section-head { min-height: 34px; }
.order-dialog .order-detail-section h3 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.order-dialog .order-result-box {
    max-height: none;
    overflow: hidden;
    padding: 14px 16px;
    border-color: var(--line);
    border-radius: 12px;
    background: var(--panel);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    text-wrap: pretty;
}
.order-dialog .order-result-box-original { color: var(--ink); }
.order-dialog .order-result-box:has(+ .order-hint-slot) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.order-dialog .order-result-box + .order-hint-slot {
    margin-top: -8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--acct-head);
}
.order-dialog .order-access { gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.order-dialog .order-access-row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    min-height: 48px;
    padding: 0 8px 0 14px;
    border: 0;
    border-radius: 0;
    background: none;
}
.order-dialog .order-access-row + .order-access-row { border-top: 1px solid var(--acct-rule); }
.order-dialog .order-access-row dt { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.order-dialog .order-access-row code,
.order-dialog .order-code code { font-family: inherit; font-weight: 700; }
.order-dialog .order-access-row code { font-size: 16px; letter-spacing: .005em; }
.order-dialog .order-code { border-radius: 12px; }

/* Reclamation, vue principale : l'invitation sur une ligne (ordinateur). */

/* Page de reclamation : elle glisse depuis la droite, la fiche revient de la gauche. */

.order-dialog .order-detail-content.is-claim-back > * { animation: order-dialog-page-back .34s cubic-bezier(.2, .8, .2, 1) backwards; }

@keyframes order-dialog-page-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

/* Chrono pres du titre : la meme fenetre que le petit anneau de l'invitation. */

/* Viseur a coins a la place des pointilles ; l'erreur lue sur la capture s'y affiche. */

/* Attente : une ligne d'etat (celle qui tourne) ; anneau et textes cote a cote
   sur ordinateur. Hors fenetre, les deux enveloppes s'effacent. */

@media (max-width: 1023.98px) {
    .order-dialog-pc-only { display: none; }
    .order-dialog-phone-only { display: inline; }
}
@media (max-width: 560px) {
    .order-dialog .order-detail-modal-card > h2 { top: 14px; left: 18px; right: 62px; }
    .order-dialog .order-detail-modal-card .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; }
    .order-dialog .order-dialog-band .order-detail-service { margin: 34px 62px 14px 18px; font-size: 17px; }
    .order-dialog-strip { gap: 10px; min-height: 58px; padding: 8px 18px; }
    .order-dialog-amount strong { font-size: 19px; }
    .order-dialog .order-dialog-band[data-claim-stage] .order-dialog-amount { display: none; }
    
    
    .order-dialog-band.is-loading { min-height: 130px; }
    .order-dialog-band.is-loading i { left: 18px; }
    .order-dialog-band.is-loading i:nth-child(1) { top: 38px; }
    .order-dialog-band.is-loading i:nth-child(2) { top: 88px; }
    .order-dialog-band.is-empty { min-height: 54px; }
    .order-dialog .order-detail-loading,
    .order-dialog .order-detail-error { padding: 14px 16px 16px; }
    .order-dialog .order-detail-modal-card .order-detail-content { padding: 14px 16px 16px; }
    .order-dialog .order-info-year { display: none; }
    .order-dialog .order-access-row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding-left: 12px; }
    .order-dialog .order-detail-content .order-copy-mini { min-width: 64px; }
    
}
/* Telephone : feuille du bas, comme le canvas « Fenetre de commande » (2Mxhf8…, demande
   du proprietaire du 12/11/2026) : pleine largeur, collee en bas, coins hauts arrondis,
   poignee, montee par le bas. Hauteur a son contenu, 88 % de l'ecran au plus ; seule la
   fiche defile. Ordinateur et fenetres Facture / Mouvement : inchanges. */
@media (max-width: 560px) {
    dialog.modal.order-detail-modal.order-dialog {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0;
        border-radius: 20px 20px 0 0;
    }
    .order-dialog .order-detail-modal-card.modal-card {
        max-height: min(88vh, calc(100dvh - 40px));
        border-radius: 20px 20px 0 0;
    }
    dialog.modal.order-dialog[open] .modal-card { animation: order-sheet-in .3s cubic-bezier(.2, .8, .2, 1); }
    .order-dialog .order-detail-modal-card::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        z-index: 3;
        width: 38px;
        height: 4px;
        margin-left: -19px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .32);
        pointer-events: none;
    }
    .order-dialog .order-detail-modal-card > h2 { top: 20px; }
    .order-dialog .order-detail-modal-card .modal-close { top: 15px; }
    .order-dialog .order-dialog-band .order-detail-service { margin-top: 40px; }
    .order-dialog .order-detail-modal-card .order-detail-content:not(.is-claim-focus),
    .order-dialog .order-detail-modal-card .order-detail-content.is-claim-focus { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes order-sheet-in { from { transform: translateY(104%); } to { transform: none; } }
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
    dialog.modal.order-dialog[open] .modal-card { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .order-dialog-band.is-loading i,
    .order-dialog .order-dialog-band[data-claim-stage] .order-dialog-track,
    .order-dialog-node-dot,
    .order-dialog-long,
    .order-dialog .order-detail-content.is-claim-focus .claim-box,
    .order-dialog .order-detail-content.is-claim-back > *,
    .order-dialog .claim-detected { animation: none !important; }
    
    
    .order-dialog-line i,
    .order-dialog .order-detail-modal-card .modal-close,
    .claim-vf i,
    .claim-tchip,
    .claim-tchip-arc { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Fenetres de facture et de mouvement « A · Bandeau » (11/11/2026)
   Dialogs #invoiceDetailDialog et #statementDetailDialog (.finance-dialog) : meme
   dessin que la fenetre de commande (.order-dialog, bloc ci-dessus, non modifie).
   Classes reprises : .order-dialog-band (+ is-loading, is-empty), .order-dialog-strip,
   .order-dialog-status, .order-dialog-pill, .order-dialog-amount, .order-info,
   .order-timeline-list, .order-field-list, .order-copy-button. Le fragment apporte
   le bandeau en tete du corps ; seule la fiche defile dessous. Pages pleines
   /invoices/{id} et /statements/{id} non touchees.
   Vieux PC : aucun flou, aucune animation neuve, color-mix sous @supports.
   ══════════════════════════════════════════════════════════════════════ */
dialog.modal.order-detail-modal.finance-dialog { width: min(540px, calc(100vw - 20px)); }

/* Numero et croix en surimpression sur le bandeau bleu nuit. */
.finance-dialog .order-detail-modal-card > h2 {
    position: absolute;
    top: 17px;
    left: 22px;
    right: 70px;
    z-index: 2;
    margin: 0;
    padding: 0;
    background: none;
    color: rgba(255, 255, 255, .66);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.finance-dialog .order-detail-modal-card .modal-close {
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    box-shadow: none;
    transition: background-color .15s ease;
}
.finance-dialog .order-detail-modal-card .modal-close:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: none; }
.finance-dialog .order-detail-modal-card .modal-close:focus-visible { outline: 2px solid #8fc3ff; outline-offset: 2px; }

/* Corps : le bandeau reste en place, seule la fiche defile (contenu court : aucun
   defilement, la fenetre prend la hauteur de son contenu). */
.finance-dialog .order-detail-modal-card > :is([data-invoice-dialog-body], [data-statement-dialog-body]) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.finance-dialog .order-detail-modal-card > :is([data-invoice-dialog-body], [data-statement-dialog-body])[aria-busy="true"] { padding: 0; }

.finance-dialog .order-detail-loading,
.finance-dialog .order-detail-error { margin: 0; padding: 16px 20px 18px; }

/* Bandeau : mode de paiement (logo + nom) ou operation, puis le statut et le montant. */
.finance-dialog-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 38px 70px 16px 22px;
    color: #fff;
    font-size: 18px;
    line-height: 1.33;
    font-weight: 700;
}
.finance-dialog-label > span:last-child { min-width: 0; text-wrap: balance; overflow-wrap: anywhere; }
.finance-dialog .order-dialog-band .order-status-pill {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .finance-dialog .order-dialog-band .order-status-pill {
        border-color: color-mix(in srgb, var(--status-color) 55%, var(--navy));
        background: color-mix(in srgb, var(--status-color) 24%, var(--navy));
        color: color-mix(in srgb, var(--status-color) 42%, #fff);
    }
}
/* Debit : pastille neutre, comme les lignes du journal (pas de rouge). */
.finance-dialog .order-dialog-band .order-status-pill.is-neutral {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* Carte d'informations : trois cases cote a cote, puis les lignes (Copier sur la
   reference complete), comme la carte de la commande. */
.finance-dialog .order-info { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.finance-dialog .order-info .order-timeline-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 11px 11px 0 0;
    background: var(--acct-head);
}
.finance-dialog .order-info .order-timeline-list div {
    display: grid;
    grid-template-columns: none;
    align-content: start;
    align-items: start;
    gap: 3px;
    min-width: 0;
    padding: 9px 14px 10px;
    border: 0;
}
.finance-dialog .order-info .order-timeline-list div + div { border-left: 1px solid var(--line); }
.finance-dialog .order-info .order-timeline-list dt { font-size: 10.5px; }
.finance-dialog .order-info .order-timeline-list dd { display: grid; gap: 1px; min-width: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.finance-dialog .order-info-when > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finance-dialog .order-info-when small { color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.finance-dialog .order-info .order-timeline-list dd.is-empty { color: var(--muted); }
.finance-dialog .order-info .order-timeline-list dd.finance-info-state { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; }
/* Un long montant passe a la ligne avant la devise, jamais au milieu d'un chiffre. */
.finance-dialog .order-info .order-timeline-list dd.finance-info-money { overflow-wrap: normal; }
.finance-dialog .order-info > .order-field-list { padding: 2px 8px 2px 14px; border-top: 1px solid var(--line); }
.finance-dialog .order-info .order-field-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 4px 0;
    box-sizing: border-box;
    border: 0;
}
.finance-dialog .order-info .order-field-list div + div { border-top: 1px solid var(--acct-rule); }
.finance-dialog .order-info .order-field-list div > span {
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
.finance-dialog .order-info .order-field-list strong { min-width: 0; color: var(--ink-strong); font-size: 15.5px; font-weight: 700; letter-spacing: .005em; }
.finance-dialog .order-info .order-field-list strong a { color: var(--brand-strong); text-decoration: none; }
.finance-dialog .order-info .order-field-list strong a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.finance-dialog .order-info .order-field-list strong small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.finance-dialog .order-info .order-field-list strong.is-muted { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Reference complete (26 caracteres sans coupure) : un cran plus petite, une ligne sur ordinateur. */
.finance-dialog .order-info .order-field-list strong.finance-info-ref { font-size: 13.5px; letter-spacing: 0; }
.finance-dialog .order-info .order-copy-button {
    flex: none;
    justify-content: center;
    min-width: 74px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--brand-strong);
    font-size: 12.5px;
    font-weight: 700;
}
.finance-dialog .order-info .order-copy-button span { color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.finance-dialog .order-info .order-copy-button:hover { border-color: var(--brand); background: var(--brand-soft); }

/* Mouvements d'une facture : titre comme « Reponse » de la commande, une ligne par
   mouvement (sens, date, montant, solde apres). */
.finance-dialog-section { display: grid; gap: 8px; min-width: 0; }
.finance-dialog-section h3 {
    margin: 0;
    color: var(--ink-strong);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.finance-dialog-empty {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--acct-head);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}
.finance-dialog-moves {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}
.finance-dialog-moves li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    box-sizing: border-box;
}
.finance-dialog-moves li + li { border-top: 1px solid var(--acct-rule); }
.finance-dialog-move-main { display: grid; gap: 1px; min-width: 0; }
.finance-dialog-move-main strong { color: var(--ink-strong); font-size: 14px; font-weight: 700; }
.finance-dialog-move-main time { color: var(--muted); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.finance-dialog-move-sum { display: grid; justify-items: end; gap: 1px; text-align: right; }
.finance-dialog-move-sum b { color: var(--ink-strong); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance-dialog-move-sum b.is-in { color: var(--ok); }
.finance-dialog-move-sum small { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 720px) {
    dialog.modal.order-detail-modal.finance-dialog { width: min(540px, calc(100vw - 16px)); }
}
@media (max-width: 560px) {
    .finance-dialog .order-detail-modal-card > h2 { top: 14px; left: 18px; right: 62px; }
    .finance-dialog .order-detail-modal-card .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; }
    .finance-dialog-label { gap: 9px; padding: 34px 62px 14px 18px; font-size: 17px; }
    .finance-dialog .order-detail-loading,
    .finance-dialog .order-detail-error { padding: 14px 16px 16px; }
    
    .finance-dialog .order-info .order-timeline-list div { padding: 8px 10px 9px; }
    .finance-dialog .order-info .order-timeline-list dt { font-size: 10px; letter-spacing: .03em; }
    .finance-dialog .order-info .order-timeline-list dd.finance-info-money { font-size: 13px; }
    .finance-dialog .order-info-year { display: none; }
    .finance-dialog .order-info > .order-field-list { padding: 2px 6px 2px 12px; }
    .finance-dialog .order-info .order-field-list div { grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; }
    .finance-dialog .order-info .order-copy-button { min-width: 64px; }
    .finance-dialog-moves li { gap: 10px; padding: 8px 12px; }
}
/* Telephone : meme feuille du bas que la fenetre de commande (demande du proprietaire du
   12/11/2026, keyframes order-sheet-in du bloc .order-dialog). Ordinateur inchange. */
@media (max-width: 560px) {
    dialog.modal.order-detail-modal.finance-dialog {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0;
        border-radius: 20px 20px 0 0;
    }
    .finance-dialog .order-detail-modal-card.modal-card {
        max-height: min(88vh, calc(100dvh - 40px));
        border-radius: 20px 20px 0 0;
    }
    dialog.modal.finance-dialog[open] .modal-card { animation: order-sheet-in .3s cubic-bezier(.2, .8, .2, 1); }
    .finance-dialog .order-detail-modal-card::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        z-index: 3;
        width: 38px;
        height: 4px;
        margin-left: -19px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .32);
        pointer-events: none;
    }
    .finance-dialog .order-detail-modal-card > h2 { top: 20px; }
    .finance-dialog .order-detail-modal-card .modal-close { top: 15px; }
    .finance-dialog .finance-dialog-label { padding-top: 40px; }
    
}
@media (prefers-reduced-motion: reduce) {
    .finance-dialog .order-detail-modal-card .modal-close { transition: none; }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
    dialog.modal.finance-dialog[open] .modal-card { animation: none; }
}
/* Feuilles du bas : glisser vers le bas pour fermer (13/11/2026, customer.js « Feuille
   du bas ») ; ×, voile et Echap la font redescendre. --sheet-from = ou le doigt l'a
   lachee, --sheet-progress = part de la hauteur deja descendue (voile plus clair).
   Transform et opacite seulement (vieux telephones). */
@media (max-width: 560px) {
    dialog.modal:is(.order-dialog, .finance-dialog)::backdrop { opacity: calc(1 - var(--sheet-progress, 0) * .85); }
    dialog.modal:is(.order-dialog, .finance-dialog).is-dragging .modal-card { transition: none; will-change: transform; }
    dialog.modal:is(.order-dialog, .finance-dialog).is-settling .modal-card { transition: transform .34s cubic-bezier(.32, .72, 0, 1); }
    dialog.modal:is(.order-dialog, .finance-dialog).is-settling::backdrop { transition: opacity .34s ease; }
    dialog.modal:is(.order-dialog, .finance-dialog).is-closing .modal-card { animation: order-sheet-out .28s cubic-bezier(.32, .72, 0, 1) forwards; }
    dialog.modal:is(.order-dialog, .finance-dialog).is-closing::backdrop { animation: drawer-veil-out .28s ease forwards; }
}
@keyframes order-sheet-out { from { transform: translateY(var(--sheet-from, 0px)); } to { transform: translateY(104%); } }
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
    dialog.modal:is(.order-dialog, .finance-dialog).is-settling .modal-card,
    dialog.modal:is(.order-dialog, .finance-dialog).is-settling::backdrop { transition: none; }
}

/* ── En-tête, mode sombre et pied de page communs (23/11/2026) ───────────
   Un seul en-tête et un seul pied pour toutes les pages client et publiques,
   accueil « Commander » compris. Logo ToutLike de l'ancien site, détouré
   (partials/brand-logo) : lettres blanches sur le bandeau sarcelle. */
.brand { gap: 0; padding-block: 4px; border-radius: 10px; }
.brand:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
picture.brand-logo { display: block; line-height: 0; }
picture.brand-logo img,
img.brand-logo { display: block; width: auto; height: 34px; max-width: 178px; max-height: 44px; object-fit: contain; border-radius: 0; }
img.brand-logo:not(.is-default) { height: auto; }
@media (max-width: 480px) {
    picture.brand-logo img { height: 30px; }
}

/* Bouton du mode sombre : lune en clair, soleil en sombre, avec un quart de
   tour en fondu. Rond de 40 px (44 px dans le tiroir), cible tactile pleine. */
.theme-toggle.theme-toggle-top {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 999px;
}
.theme-ico-stage { position: relative; display: grid; place-items: center; width: 18px; height: 18px; }
.theme-ico-stage .theme-ico {
    grid-area: 1 / 1;
    display: inline-flex !important;
    transition: opacity .24s ease, transform .36s cubic-bezier(.22, 1, .36, 1);
}
.theme-ico-stage .theme-ico-sun { opacity: 0; transform: rotate(-90deg) scale(.6); color: #fcd34d; }
.theme-ico-stage .theme-ico-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-ico-stage .theme-ico-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-ico-stage .theme-ico-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.drawer-foot .theme-ico-stage .theme-ico-sun { color: #d97706; }
:root[data-theme="dark"] .drawer-foot .theme-ico-stage .theme-ico-sun { color: #fcd34d; }
.theme-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
/* Bascule clair/sombre : fondu enchaîné de toute la page par les View
   Transitions (customer.js pose .theme-fondu le temps du fondu). */
:root.theme-fondu::view-transition-old(root),
:root.theme-fondu::view-transition-new(root) {
    animation-duration: .45s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
    :root.theme-fondu::view-transition-old(root),
    :root.theme-fondu::view-transition-new(root) { animation: none; }
}
/* Repli sans View Transitions : fondu bref des couleurs unies (380 ms). */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease !important;
}
@media (prefers-reduced-motion: reduce) {
    .theme-ico-stage .theme-ico { transition: none; }
}

/* Visiteur : « Se connecter » léger, « Créer un compte » plein (le seul de
   l'en-tête). Sur sa propre page, le formulaire porte le bouton plein. */
.topbar .button.nav-register-light { font-weight: 700; }

/* Solde du client sur téléphone : pastille vers la recharge. */
.nav-wallet {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.nav-wallet:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .18); }
.nav-wallet:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.nav-wallet-coin {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-left: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff4c2, #fbbf24 55%, #d97706);
    color: #7c2d12;
}
.nav-wallet-coin .icon { width: 13px; height: 13px; }
.nav-wallet:has(.is-low) .nav-wallet-coin,
.nav-wallet.is-low .nav-wallet-coin { background: radial-gradient(circle at 32% 28%, #ffe4e6, #fb7185 60%, #e11d48); color: #ffffff; }
.nav-wallet.is-low,
.nav-wallet:has(.is-low) { border-color: rgba(252, 165, 165, .55); background: rgba(185, 28, 28, .28); }
.nav-wallet-amount { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
    .topbar-inner { min-height: 60px; }
    .nav-actions { gap: 6px; }
    .nav-wallet { display: inline-flex; max-width: 46vw; }
    /* Visiteur : l'action utile reste visible, l'inscription passe au tiroir. */
    .nav-actions .button.ghost-light {
        display: inline-flex;
        min-height: 40px;
        padding: 0 13px;
        font-size: 13px;
        white-space: nowrap;
    }
    .nav-actions .button.ghost-light .icon { display: none; }
    .nav-burger { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
}
@media (max-width: 374px) {
    .topbar-inner { width: calc(100% - 20px); gap: 6px; }
    picture.brand-logo img { height: 26px; }
    .nav-wallet { padding: 0 10px; font-size: 12.5px; }
    .nav-wallet-coin { display: none; }
}

/* Page sans cadre (accueil « Commander ») : la page gère ses marges. */
.page.page-flush { width: 100%; max-width: none; margin: 0; padding: 0; }

/* Pied de page : présentation et réseaux de l'ancien site. */
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand-logo { width: fit-content; line-height: 0; border-radius: 8px; }
.footer-logo img,
img.footer-logo { display: block; width: auto; height: 36px; max-width: 200px; object-fit: contain; }
.footer-about { max-width: 44ch; margin: 0; color: rgba(255, 255, 255, .74); font-size: 13.5px; line-height: 1.6; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.footer .footer-social {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.footer .footer-social:hover { color: #fff; transform: translateY(-2px); }
.footer .footer-social.is-facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer .footer-social.is-youtube:hover { background: #e62117; border-color: #e62117; }
.footer .footer-social.is-tiktok:hover { background: #111418; border-color: rgba(255, 255, 255, .4); }
.footer .footer-social.is-instagram:hover { background: #d62f6b; border-color: #d62f6b; }
.footer-contact-icon.is-whatsapp { color: #4ade80; background: rgba(74, 222, 128, .12); }
.site-footer-columns { grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr)); }
@media (max-width: 980px) {
    .site-footer-columns { grid-template-columns: 1fr 1fr; }
    .site-footer-columns .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer-columns { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .footer .footer-social { transition: none; }
    .footer .footer-social:hover { transform: none; }
}

/* Tiroir des visiteurs : « Créer un compte » ne se coupe pas en deux lignes ;
   sur téléphone étroit, les deux boutons passent l'un sous l'autre. */
.drawer-auth a { white-space: nowrap; }
.drawer-auth { grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); }
.drawer-auth .drawer-auth-register { order: -1; }

/* Zones tactiles d'au moins 44 px sur ecran tactile ou etroit (verification
   visiteur et client du 23/11/2026) : bouton du theme, menu, boutons de
   l'en-tete, pastille du solde, reseaux sociaux et liens du pied de page. */
@media (max-width: 1080px), (pointer: coarse) {
    .topbar .button,
    .topbar .button.secondary,
    .topbar .theme-toggle,
    .nav-burger,
    .nav-wallet { min-height: 44px; }
    .topbar .theme-toggle,
    .nav-burger { min-width: 44px; }
    .footer .footer-social { min-width: 44px; min-height: 44px; }
    .footer-brand-logo { display: inline-flex; align-items: center; min-height: 44px; }
    .footer-nav { gap: 0; }
    .footer-nav a { min-height: 44px; }
}

/* Espace client (verification du 23/11/2026) : petits liens et boutons des
   lignes (n° de commande, mouvement, source, facture) gardent leur dessin mais
   recoivent une zone tactile d'au moins 44 px ; puces de filtre, contact du
   pied et bouton du bandeau a 44 px ; reference de facture lisible en entier. */
@media (max-width: 1080px), (pointer: coarse) {
    .order-id-button,
    .finance-row-link,
    .finance-row-source,
    .order-service-name { position: relative; }
    .order-id-button::after,
    .finance-row-link::after,
    .finance-row-source::after {
        content: "";
        position: absolute;
        inset: -14px -4px;
    }
    .acct-band--journal .order-chip { height: auto; min-height: 44px; }
    .acct-band-btn,
    .acct-band--low .acct-band-head .acct-band-btn { min-height: 44px; }
    .footer-contact-item { min-height: 44px; }
    .finance-row .order-row-meta > .finance-row-ref { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; white-space: normal; }
}

/* ════════════════════════════════════════════════════════════════════════
   ToutLike — finitions « Aurore » (23/11/2026)
   Remplace le langage hérité du site de déblocage (fils, œillets, pastilles
   sur une piste) : icônes deux tons dans un carré arrondi, un seul bouton
   plein par écran avec son contour animé, courbe d'activité qui se trace.
   « Ajouter du solde » (menu, tiroir, tableau de bord) est passé de l'or aux
   couleurs ToutLike (sarcelle et menthe) directement dans ses règles.
   ══════════════════════════════════════════════════════════════════════ */
/* Menu du compte et tiroir ☰ : plus de fil, icônes en carré arrondi. */
.nav-menu { top: calc(100% + 12px); }
.menu-item-icon,
.drawer-node { border: 0; border-radius: 10px; background: rgba(var(--brand-rgb), .1); color: var(--brand); }
.menu-item:is(:hover, :focus-visible, .is-active) .menu-item-icon { background: var(--brand); color: var(--menu-on-brand, #ffffff); box-shadow: 0 4px 10px rgba(var(--brand-rgb), .3); }
.menu-item.is-active .menu-item-icon { box-shadow: 0 4px 12px rgba(var(--brand-rgb), .34); }
.drawer-link:is(:focus-visible, :active, .is-current) .drawer-node { background: var(--brand); color: var(--drawer-on-brand, #ffffff); box-shadow: 0 4px 10px rgba(var(--brand-rgb), .3); }
.drawer-link.is-current .drawer-node { box-shadow: 0 4px 12px rgba(var(--brand-rgb), .34); }
@media (hover: hover) {
    .drawer-link:hover .drawer-node,
    .drawer-link.is-current:hover .drawer-node { background: var(--brand); color: var(--drawer-on-brand, #ffffff); box-shadow: 0 4px 10px rgba(var(--brand-rgb), .3); }
}

/* Bouton « Ajouter du solde » du tableau de bord : seul bouton plein de
   l'écran, menthe, avec une lumière qui tourne sur son contour. Le bouton
   coupe ce qui dépasse ; ::before est un grand carré à dégradé conique qui
   tourne (transform seulement, sans repeindre à chaque image) ; ::after
   recouvre l'intérieur de la menthe et ne laisse voir qu'un liseré de 2 px. */
.acct-cta {
    isolation: isolate;
    overflow: hidden;
    background: rgba(255, 255, 255, .28);
}
.acct-cta::before,
.acct-cta::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.acct-cta::before {
    z-index: -2;
    top: 50%;
    left: 50%;
    width: 150%;
    aspect-ratio: 1;
    background: conic-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 16%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .7) 76%, rgba(255, 255, 255, 0));
    transform: translate(-50%, -50%);
}
.acct-cta::after {
    z-index: -1;
    inset: 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--signal-from) 0%, var(--signal) 45%, var(--signal-to) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.acct-cta .icon { transition: transform .22s var(--dash-ease); }
.acct-cta:hover .icon { transform: rotate(-8deg) scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
    .acct-cta::before { animation: acctTurn 3.6s linear infinite; }
}
@keyframes acctTurn { to { transform: translate(-50%, -50%) rotate(1turn); } }

/* Activité 14 jours : courbe lissée qui se trace, aire qui apparaît, point
   du jour qui respire. */
.acct-activity-line { stroke: #c4f7ee; stroke-width: 2.4; stroke-dasharray: 100 200; }
.acct-activity-node { fill: #07303a; stroke: rgba(255, 255, 255, .8); }
.acct-activity-halo { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
    .acct-activity-line { animation: bandDraw 1.4s var(--dash-ease) .2s backwards; }
    .acct-activity-fill { animation: acctFillIn .9s ease .7s backwards; }
    .acct-activity-halo { animation: bandGlow 3.2s ease-in-out 1.4s infinite; }
}
@keyframes acctFillIn { from { opacity: 0; } }

/* Dernières recharges : chaque ligne mène à sa facture. */
a.acct-move-tx { border-radius: 8px; color: inherit; text-decoration: none; }
a.acct-move-tx:hover .acct-move-label { color: var(--brand-strong); }
a.acct-move-tx:focus-visible { outline: none; box-shadow: var(--ring); }

/* Étapes du bandeau (profil, numéro, double authentification) : barres
   arrondies entre les étapes, point qui bat sur l'étape en cours. */
.acct-track-step + .acct-track-step::before { top: 10.5px; height: 3px; border-top: 0; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.acct-track-step:is(.is-done, .is-current)::before { background: linear-gradient(90deg, var(--signal), var(--signal-from)); }
@media (prefers-reduced-motion: no-preference) {
    .acct-track-step.is-current .acct-track-dot::after { animation: acctStepBeat 1.8s ease-in-out infinite; }
}
@keyframes acctStepBeat { 50% { transform: scale(.6); opacity: .6; } }

/* ── Commandes (24/11/2026) ─────────────────────────────────────────
   « Mes commandes », suivi rangé et page d'une commande : la tuile du
   réseau (brand-tile.css), le lien court toujours cliquable, la livraison
   (barre livré / quantité, restant), le statut et le prix. Téléphone
   d'abord : quatre lignes courtes, jamais de défilement horizontal. */
.smm-tile { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.smm-tile > svg { width: 56%; height: 56%; }

.smm-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-width: 0;
    min-height: 28px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
.smm-link .icon { flex: none; }
.smm-link-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.smm-link:hover .smm-link-text { text-decoration: underline; text-underline-offset: 3px; }
a.smm-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.smm-link.is-missing { color: var(--muted); font-weight: 500; }
:root[data-theme="dark"] .smm-link { color: var(--brand-strong); }

/* ==========================================================================
   Barre de livraison (24/11/2026) : la seule barre du site client, posee
   par partials/smm-progress.blade.php sur « Mes commandes », dans le tiroir de
   suivi et sur la fiche de la commande. smm-progress.js, customer.js et
   order-tray.js la mettent a jour sur place avec le vrai livre / quantite.
   Etats (data-smm-state) : running (en cours, bleu), waiting (en attente,
   ambre), done (reussie, vert), partial (partielle, turquoise), off (annulee
   ou rejetee, gris). Sans chiffre lu : barre indeterminee, aucun faux %.
   Trois habillages, une classe sur .smm-progress (SmmOrderView::SKIN) :
   .is-eclat (reflet qui glisse, defaut), .is-aurore (degrade vivant et halo),
   .is-pulsation (fines rayures qui defilent). Animations : transform,
   background-position et opacite seulement ; aucune sous prefers-reduced-motion.
   ========================================================================== */
.smm-progress {
    --sp-h: 7px;
    --sp-a: var(--brand, #1f6feb);
    --sp-b: #62b4ff;
    --sp-c: #7f8cff;
    --sp-glow: rgba(31, 111, 235, .5);
    --sp-ink: var(--ink-strong);
    --sp-track: var(--chip);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "count pct" "bar bar";
    align-items: baseline;
    gap: 7px 10px;
    min-width: 0;
}
.smm-progress.is-waiting { --sp-a: #d58a0c; --sp-b: #f6c869; --sp-c: #ffe0a0; --sp-glow: rgba(213, 138, 12, .4); }
.smm-progress.is-done { --sp-a: #0c9a63; --sp-b: #45d7a2; --sp-c: #8aeccb; --sp-glow: rgba(12, 154, 99, .45); }
.smm-progress.is-partial { --sp-a: #0a9aa0; --sp-b: #4fdcd2; --sp-c: #94efe6; --sp-glow: rgba(10, 154, 160, .45); }
.smm-progress.is-off { --sp-a: #7d8899; --sp-b: #b4bdc9; --sp-c: #cfd5de; --sp-glow: rgba(125, 136, 153, .3); }
.smm-progress.is-mini { display: block; --sp-h: 6px; }

.smm-count { grid-area: count; min-width: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.35; overflow-wrap: anywhere; }
.smm-pct {
    grid-area: pct;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sp-ink);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    white-space: nowrap;
}
.smm-pct[hidden] { display: none; }
.smm-pct b { font-weight: 750; }
.smm-check { display: none; flex: none; width: 13px; height: 13px; color: var(--sp-a); }
.smm-progress.is-done .smm-check { display: block; }
.smm-progress.is-just-done .smm-check { animation: smmCheckPop .5s cubic-bezier(.34, 1.56, .64, 1) both; }

.smm-bar {
    grid-area: bar;
    position: relative;
    display: block;
    height: var(--sp-h);
    border-radius: 999px;
    background: var(--sp-track);
}
.smm-bar > i {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: var(--smm-p, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sp-a), var(--sp-b));
    transition: width .9s cubic-bezier(.22, 1, .36, 1);
}
.smm-sheen { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; pointer-events: none; }
.smm-sheen::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; opacity: 0; transform: translateX(-100%); }
/* Tete lumineuse au bout du remplissage (en cours, chiffre lu). */
.smm-bar > i::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: calc(var(--sp-h) + 3px);
    height: calc(var(--sp-h) + 3px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 0 10px 3px var(--sp-glow);
    transform: translate(38%, -50%);
    opacity: 0;
    pointer-events: none;
}
.smm-progress.is-live.is-running:not(.is-unknown) .smm-bar > i::after { opacity: 1; }

/* A : Eclat, un reflet doux glisse sur le remplissage. */
.smm-progress.is-eclat.is-live.is-running:not(.is-unknown) .smm-sheen::before {
    opacity: 1;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .62), transparent);
    animation: smmSheen 2.4s ease-in-out infinite;
}

/* B : Aurore, un degrade a trois teintes, une vague de couleur et un halo sous la barre. */
.smm-progress.is-aurore .smm-bar > i { background: linear-gradient(90deg, var(--sp-a), var(--sp-b), var(--sp-c)); }
.smm-progress.is-aurore.is-live.is-running:not(.is-unknown) .smm-bar > i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 3px 12px -2px var(--sp-glow); }
.smm-progress.is-aurore.is-live.is-running:not(.is-unknown) .smm-sheen::before {
    opacity: .9;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--sp-c), transparent);
    animation: smmWave 2.8s ease-in-out infinite;
}
.smm-progress.is-aurore.is-done .smm-bar > i, .smm-progress.is-aurore.is-partial .smm-bar > i { box-shadow: 0 3px 10px -3px var(--sp-glow); }

/* C : Pulsation, de fines rayures qui defilent et une tete qui bat. */
.smm-progress.is-pulsation.is-live.is-running:not(.is-unknown) .smm-sheen::before {
    opacity: 1;
    left: -14px;
    right: 0;
    width: auto;
    background: linear-gradient(-45deg, rgba(255, 255, 255, .3) 25%, transparent 25% 50%, rgba(255, 255, 255, .3) 50% 75%, transparent 75%);
    background-size: 14px 14px;
    transform: none;
    animation: smmStripes .9s linear infinite;
}
.smm-progress.is-pulsation.is-live.is-running:not(.is-unknown) .smm-bar > i::after { animation: smmBeat 1.4s ease-in-out infinite; }

/* Indeterminee : pas de chiffre lu du panel, donc aucun pourcentage invente. */
.smm-progress.is-unknown .smm-bar { overflow: hidden; }
.smm-progress.is-unknown .smm-bar > i { width: 38%; transition: none; }
.smm-progress.is-unknown .smm-bar > i::after { display: none; }
.smm-progress.is-unknown.is-live .smm-bar > i { animation: smmWait 1.8s cubic-bezier(.45, .05, .35, 1) infinite; }
.smm-progress.is-unknown.is-waiting.is-live .smm-bar > i { animation-duration: 2.8s; opacity: .8; }
.smm-progress.is-unknown:not(.is-live) .smm-bar > i { width: 0; }

/* Reussie : pleine, verte, avec un eclat une seule fois quand elle se termine. */
.smm-progress.is-just-done .smm-sheen::before {
    opacity: 1;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .75), transparent);
    animation: smmSheen 1.2s ease-out 1 both;
}

@keyframes smmSheen { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes smmWave { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes smmStripes { from { transform: translateX(0); } to { transform: translateX(14px); } }
@keyframes smmBeat { 0%, 100% { transform: translate(38%, -50%) scale(1); } 50% { transform: translate(38%, -50%) scale(1.35); } }
@keyframes smmWait { from { transform: translateX(-100%); } to { transform: translateX(263%); } }
@keyframes smmCheckPop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .smm-bar > i { transition: none; }
    .smm-sheen::before,
    .smm-bar > i,
    .smm-bar > i::after,
    .smm-check { animation: none !important; }
    .smm-progress.is-unknown.is-live .smm-bar > i { width: 100%; opacity: .45; transform: none; }
    .smm-progress.is-unknown.is-live .smm-bar { background-image: repeating-linear-gradient(90deg, transparent 0 8px, rgba(127, 140, 160, .22) 8px 10px); }
}

/* Teintes : color-mix seulement sous @supports (les anciens navigateurs gardent les replis). */
@supports (color: color-mix(in srgb, red, blue)) {
    .smm-progress {
        --sp-b: color-mix(in srgb, var(--sp-a) 55%, #8fd3ff);
        --sp-ink: color-mix(in srgb, var(--sp-a) 74%, #0b1424);
        --sp-track: color-mix(in srgb, var(--sp-a) 13%, var(--chip));
    }
    .smm-progress.is-waiting { --sp-b: #f6c869; }
    .smm-progress.is-done { --sp-b: #45d7a2; }
    .smm-progress.is-partial { --sp-b: #4fdcd2; }
    .smm-progress.is-off { --sp-b: #b4bdc9; }
    :root[data-theme="dark"] .smm-progress { --sp-ink: color-mix(in srgb, var(--sp-a) 45%, #ffffff); --sp-track: color-mix(in srgb, #ffffff 11%, var(--chip)); }
    :root[data-theme="dark"] .smm-progress.is-running { --sp-a: color-mix(in srgb, var(--brand) 78%, #ffffff); }
}

/* Ligne de « Mes commandes ». */
.smm-order {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
        "tile main main"
        "deliv deliv deliv"
        "status status price"
        "meta meta again";
    align-items: center;
    gap: 10px 12px;
    padding: 14px 16px;
    border-top: 1px solid transparent;
    transition: background-color .16s var(--dash-ease);
}
.smm-order + .smm-order,
.smm-order + .order-history-row,
.order-history-row + .smm-order { border-image: linear-gradient(90deg, transparent, var(--brand-action, var(--brand)), transparent) 1 / 1px 0 0 0; }
.smm-order-tile { grid-area: tile; align-self: start; }
.smm-order-main { grid-area: main; display: grid; gap: 2px; min-width: 0; }
.smm-order-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.smm-order-name:hover { color: var(--brand); }
.smm-order-name:focus-visible, .smm-order-meta a:focus-visible, .smm-order-again:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.smm-order-delivery { grid-area: deliv; min-width: 0; }
.smm-order-status { grid-area: status; min-width: 0; }
.smm-order-price { grid-area: price; display: grid; justify-items: end; gap: 1px; text-align: right; }
.smm-order-price b { color: var(--ink-strong); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.smm-order-foot { display: contents; }
.smm-order-meta { grid-area: meta; min-width: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.smm-order-meta a { color: inherit; font-weight: 650; text-decoration: none; }
.smm-order-meta a:hover { color: var(--brand); text-decoration: underline; }
.smm-order-again {
    grid-area: again;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-strong);
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s var(--dash-ease), color .16s var(--dash-ease), background-color .16s var(--dash-ease);
}
.smm-order-again:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.smm-order:hover { background: rgba(var(--brand-rgb), .05); }
@media (min-width: 900px) {
    .smm-order {
        grid-template-columns: 44px minmax(0, 1.5fr) minmax(170px, 1fr) minmax(118px, max-content) minmax(104px, max-content);
        grid-template-areas:
            "tile main deliv status price"
            "tile meta deliv status again";
        gap: 4px 20px;
        padding: 14px 20px;
    }
    .smm-order-tile { width: 44px; height: 44px; align-self: center; }
    .smm-order-main { align-self: end; }
    .smm-order-meta { align-self: start; }
    .smm-order-price { align-self: end; }
    .smm-order-again { align-self: start; min-height: 28px; padding: 0 10px; font-size: 12px; }
}

/* Suivi rangé : la tuile du réseau à la place de la vignette. */
.order-tray-thumb.is-brand, .order-tray-logo.is-brand { border: 0; color: var(--tlc-encre, #ffffff); }
.order-tray-thumb.is-brand { width: 36px; height: 36px; border-radius: 11px; }
.order-tray-logo.is-brand { width: 44px; height: 44px; }
.order-tray-row-input.is-smm { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--ink); font-weight: 600; }
.order-tray-row-input.is-smm .icon { flex: none; color: var(--brand); }
.order-tray-row-input.is-smm > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Page, tiroir et fenêtre d'une commande. */
.acct-order-id .acct-order-tile { width: 48px; height: 48px; border-radius: 14px; }
.smm-detail { display: grid; gap: 16px; padding: 18px; }
.order-detail-page-panel .smm-detail { padding: var(--acct-y, 18px) var(--acct-x, 20px) var(--acct-x, 20px); }
/* Tiroir de suivi : la fiche défile dans le corps du tiroir, comme la fiche GSM. */
.order-tray-body > .smm-detail { flex: 1 1 auto; min-height: 0; align-content: start; grid-auto-rows: max-content; gap: 12px; padding: 16px 18px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 1023.98px) {
    .order-tray-body > .smm-detail { padding: 14px 16px 18px; }
}
.smm-detail-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.smm-detail-tile { width: 44px; height: 44px; }
.smm-detail-title { min-width: 0; }
.smm-detail-name { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.smm-detail-sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.smm-detail-block { display: grid; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.smm-detail-label { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.smm-detail-linkline .smm-link { font-size: 15px; min-height: 32px; }
.smm-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.smm-figures div { display: grid; gap: 2px; min-width: 0; }
.smm-figures dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.smm-figures dd { margin: 0; color: var(--ink-strong); font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; }
.smm-figures .is-done dd { color: var(--status-color, var(--ink-strong)); }
.smm-detail-message p { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
/* Custom Comments : aperçu replié des commentaires envoyés ; la liste défile
   au-delà de 240 px pour ne pas allonger la fiche. */
.smm-comments { gap: 0; }
.smm-comments summary { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: -6px 0; list-style: none; cursor: pointer; }
.smm-comments summary::-webkit-details-marker { display: none; }
.smm-comments summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.smm-comments summary .smm-detail-label { white-space: nowrap; }
.smm-comments-toggle { min-width: 0; margin-left: auto; color: var(--brand-strong, var(--brand)); font-size: 13px; font-weight: 650; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smm-comments-chevron { flex: none; color: var(--muted); transition: transform 160ms ease-out; }
.smm-comments[open] .smm-comments-chevron { transform: rotate(180deg); }
.smm-comments-list { display: grid; gap: 6px; max-height: 240px; margin: 12px 0 0; padding: 0 4px 0 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.smm-comments-list li { padding-left: 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.smm-comments-list li::marker { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .smm-comments-chevron { transition: none; }
}
.smm-facts { display: grid; margin: 0; }
.smm-facts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.smm-facts div:last-child { border-bottom: 0; }
.smm-facts dt { color: var(--muted); font-size: 13px; }
.smm-facts dd { margin: 0; color: var(--ink-strong); font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.smm-facts .is-ok dt { color: var(--ok); font-weight: 600; }
.smm-facts .is-ok dd { display: inline-flex; color: var(--ok); }
.smm-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.smm-detail-actions .button { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 420px) {
    .smm-detail { padding: 14px; gap: 14px; }
    .smm-detail-actions .button { flex: 1 1 100%; justify-content: center; }
    .smm-figures dd { font-size: 19px; }
}
/* Teintes du statut : color-mix seulement sous @supports (Chrome 109 garde les replis). */
@supports (color: color-mix(in srgb, red, blue)) {
    .smm-order:hover { background: color-mix(in srgb, var(--status-color, var(--brand)) 6%, var(--panel)); }
    :root[data-theme="dark"] .smm-figures .is-done dd { color: color-mix(in srgb, var(--status-color, var(--brand)) 70%, #ffffff); }
}

/* ==========================================================================
   Tiroir de suivi, version suivi en direct (24/11/2026) : une carte par commande en cours,
   la tuile du reseau, le service, le lien court, la barre de livraison commune
   (.smm-progress) et « depuis 7:43 ». Plus de fond qui se remplit au temps.
   ========================================================================== */
.order-tray-row.is-smm:not(.is-journal) {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 12px;
    padding: 13px 13px 12px;
}
@supports (color: color-mix(in srgb, red, blue)) {
    .order-tray-row.is-smm:not(.is-journal) {
        border-color: color-mix(in srgb, var(--status-color) 20%, var(--line));
        background:
            radial-gradient(130% 100% at 0 0, color-mix(in srgb, var(--status-color) 8%, transparent), transparent 62%),
            var(--panel);
    }
    .order-tray-row.is-smm:not(.is-journal):hover { border-color: color-mix(in srgb, var(--status-color) 42%, var(--line)); }
}
.order-tray-row.is-smm:not(.is-journal) .order-tray-thumb { width: 44px; height: 44px; border-radius: 13px; margin-top: 1px; }
.order-tray-row.is-smm:not(.is-journal) .order-tray-row-main { gap: 3px; }
.order-tray-row.is-smm:not(.is-journal) .order-tray-row-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}
.order-tray-row.is-smm:not(.is-journal) .order-tray-row-pill { align-self: start; }
.order-tray-row.is-smm .smm-progress { margin: 6px 0 4px; }
.order-tray-row.is-smm:not(.is-journal) .order-tray-row-sub { font-size: 11.5px; }
@media (max-width: 1023px) {
    .order-tray-row.is-smm:not(.is-journal) { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .order-tray-row.is-smm:not(.is-journal) .order-tray-thumb { width: 42px; height: 42px; }
    .order-tray-row.is-smm:not(.is-journal) .order-tray-row-sub { white-space: normal; }
}

/* Fiche ouverte dans le tiroir : le bandeau d'etat n'a ni pourcentage ni remplissage. */
.order-tray-live.is-smm { min-height: 0; padding: 9px 14px; }
.order-tray-live.is-smm .order-live-fx,
.order-tray-live.is-smm .order-live-meta { display: none; }

/* Telephone : la barre du bas porte la barre commune au lieu du fond qui se remplit. */
.order-tray-bar.is-smm .order-live-fx { display: none; }
.order-tray-bar-text .smm-progress,
.order-tray-bar-text .smm-bar { overflow: visible; }
.order-tray-bar-text .smm-progress.is-mini { display: block; margin-top: 5px; }
.order-tray-bar-text .smm-progress.is-unknown .smm-bar { overflow: hidden; }
.order-tray-bar-text .smm-progress[hidden] { display: none; }
