/* ═══════════════════════════════════════════════════════════════════════
   Palladium Account — Shared styles for /account/* pages
   Design: Mon Compte (Paul, avril 2026) — Inter + Instrument Serif
   Fonts: self-hosted via fonts-account.css (loaded by AccountShell) — the
   former fonts.googleapis.com @import was a blockable cross-origin request.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Design tokens ─── */
/* .pal-account-block = root of a decomposed « Mon compte » block (PageBuilder): same tokens,
   layout neutralised below so a block can sit anywhere in a CMS page. */
.pal-account-wrap, .pal-account-block {
    --accent-h: 258;
    --accent: oklch(0.55 0.16 var(--accent-h));
    --accent-hover: oklch(0.48 0.17 var(--accent-h));
    --accent-soft: oklch(0.97 0.02 var(--accent-h));
    --accent-softer: oklch(0.985 0.012 var(--accent-h));
    --accent-border: oklch(0.9 0.04 var(--accent-h));
    --accent-fg: oklch(0.38 0.14 var(--accent-h));

    --bg: oklch(0.985 0.003 270);
    --surface: #ffffff;
    --surface-2: oklch(0.975 0.004 270);
    --border: oklch(0.92 0.005 270);
    --border-strong: oklch(0.86 0.006 270);

    --fg: oklch(0.22 0.01 270);
    --fg-muted: oklch(0.52 0.01 270);
    --fg-subtle: oklch(0.65 0.01 270);

    --success: oklch(0.62 0.14 160);
    --success-soft: oklch(0.96 0.03 160);
    --warn: oklch(0.72 0.13 75);
    --warn-soft: oklch(0.97 0.04 75);
    --danger: oklch(0.58 0.19 25);
    --danger-soft: oklch(0.97 0.04 25);
    --danger-border: oklch(0.88 0.06 25);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .06), 0 2px 4px -2px rgba(16, 24, 40, .04);
    --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .04);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.003em;
    min-height: 100vh;

    /* Break out of theme's Bootstrap .container wrapper to fill viewport */
    width: 100vw;
    max-width: 100vw;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
}

/* width:100vw above includes the scrollbar, so the wrap always overhangs the
   viewport by the scrollbar width (~8px) and creates a horizontal scroll.
   Clip at the root only when an account page is present. */
html:has(.pal-account-wrap) { overflow-x: clip; }

/* Rendu embarqué (widget compte/wishlist dans une page CMS) : neutralise le
   breakout pleine largeur — le conteneur de la page rogne l'excédent et
   masque le contenu ; on reste dans la largeur du conteneur. */
.pal-account-wrap.pal-account-embedded {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
}

/* ─── Decomposed account blocks (PageBuilder « Mon compte (blocs) », « Mes commandes (blocs) ») ─── */
.pal-account-block { width: auto; max-width: none; margin-left: 0; margin-right: 0; min-height: 0; background: transparent; overflow-x: visible; position: static; }
.pal-account-composed [class*="col-"] > .pal-account-block + .pal-account-block,
.pal-account-composed [class*="col-"] > .pal-account-block + .row,
.pal-account-composed [class*="col-"] > .row + .pal-account-block { margin-top: 24px; }
.pal-account-composed { background: var(--bg); padding-top: 24px; padding-bottom: 32px; }
.pal-account-nav-block .pal-account-sidebar-eyebrow { margin-top: 0; }
.pal-account-nav--horizontal > div { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.pal-account-nav--horizontal .pal-account-sidebar-eyebrow, .pal-account-nav--horizontal .pal-account-sidebar-divider { display: none; }
.pal-account-nav--horizontal .pal-account-navitem { width: auto; }
.pal-account-nav--horizontal .pal-account-logout-form { margin-left: auto; }
.pal-account-logout-btn { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.pal-account-anon-register { margin-top: 12px; font-size: 13px; }
.pal-account-profile-block { display: flex; flex-direction: column; gap: 20px; }
.pal-account-profile-title { margin-bottom: 0; }
.pal-account-profile-identity { display: flex; align-items: center; gap: 14px; }
.pal-account-profile-text { min-width: 0; }
.pal-account-profile-name { font-size: 15px; font-weight: 600; }
.pal-account-profile-email { font-size: 13px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; }
.pal-account-profile-edit { justify-content: center; }
.pal-account-seeall { color: var(--accent-fg); padding: 4px 0; }
.pal-account-recent-empty { padding: 24px 0; }
.pal-account-history-eyebrow { margin-top: 12px; }
.pal-orders-history { padding: 0; overflow: hidden; }
.pal-history-row-title { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.pal-history-row-sub { font-size: 12px; color: var(--fg-muted); }
.pal-history-row-total { font-size: 14px; font-weight: 600; }
.pal-history-row-invoice { padding: 7px 12px; font-size: 12px; }
.pal-history-row-chevron { color: var(--fg-subtle); }
.pal-orders-history .pal-history-row--stretched { position: relative; }
.pal-history-row-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pal-history-row--stretched .pal-history-row-invoice { position: relative; z-index: 2; width: auto; white-space: nowrap; }
/* Réglages ▸ Style of the account blocks — shared Commerce traits mapped onto the account tokens */
.pal-account-block[style*="--commerce-primary:"] { --accent: var(--commerce-primary); --accent-hover: var(--commerce-primary-hover); --accent-fg: var(--commerce-primary); --accent-soft: color-mix(in srgb, var(--commerce-primary) 8%, white); --accent-border: color-mix(in srgb, var(--commerce-primary) 25%, white); }
.pal-account-block[style*="--commerce-radius:"] { --radius-sm: var(--commerce-radius); --radius: var(--commerce-radius); --radius-lg: var(--commerce-radius); --radius-xl: var(--commerce-radius); }
.pal-account-block[style*="--commerce-bg:"] .pal-card, .pal-account-block[style*="--commerce-bg:"].pal-card, .pal-account-block[style*="--commerce-bg:"] .pal-stat, .pal-account-block[style*="--commerce-bg:"] .pal-shortcut { background: var(--commerce-bg); }
.pal-account-block[style*="--cx-color:"] .pal-account-greeting-title, .pal-account-block[style*="--cx-color:"] .pal-account-greeting-title em, .pal-account-block[style*="--cx-color:"] .pal-account-page-title, .pal-account-block[style*="--cx-color:"] .pal-section-title h2, .pal-account-block[style*="--cx-color:"] .pal-account-sidebar-eyebrow { color: var(--cx-color) !important; }
.pal-account-block[style*="--cx-font-size:"] .pal-account-greeting-title, .pal-account-block[style*="--cx-font-size:"] .pal-account-page-title { font-size: var(--cx-font-size) !important; }
.pal-account-block[style*="--cx-font-weight:"] .pal-account-greeting-title, .pal-account-block[style*="--cx-font-weight:"] .pal-account-page-title { font-weight: var(--cx-font-weight) !important; }
.pal-account-block[style*="--cx-align:"] { text-align: var(--cx-align); }
.pal-account-block[style*="--cx-btn-bg:"] .pal-btn-primary, .pal-account-block[style*="--cx-btn-bg:"] .commerce-btn-primary, .pal-account-block[style*="--cx-btn-bg:"] .pal-account-login-btn { background: var(--cx-btn-bg) !important; border-color: var(--cx-btn-bg) !important; }
.pal-account-block[style*="--cx-btn-color:"] .pal-btn-primary, .pal-account-block[style*="--cx-btn-color:"] .commerce-btn-primary, .pal-account-block[style*="--cx-btn-color:"] .pal-account-login-btn { color: var(--cx-btn-color) !important; }
.pal-account-block[style*="--cx-btn-radius:"] .pal-btn, .pal-account-block[style*="--cx-btn-radius:"] .commerce-btn, .pal-account-block[style*="--cx-btn-radius:"] .pal-account-login-btn { border-radius: var(--cx-btn-radius) !important; }
@media (max-width: 768px) {
    .pal-account-nav-block .pal-account-sidebar-sticky { position: static; }
}

.pal-account-wrap ::selection {
    background: color-mix(in oklch, var(--accent) 30%, transparent);
}

/* ─── Login required ─── */
.pal-account-anon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.pal-account-anon-icon {
    width: 56px;
    height: 56px;
    color: var(--fg-subtle);
    margin-bottom: 1.25rem;
}

.pal-account-anon h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 .5rem;
    color: var(--fg);
}

.pal-account-anon p {
    color: var(--fg-muted);
    margin: 0 0 1.75rem;
    font-size: 15px;
}

.pal-account-login-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background .15s;
}

.pal-account-login-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ─── Shell: sidebar + main ─── */
.pal-account-shell {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 32px clamp(16px, 3vw, 48px);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(20px, 2.5vw, 40px);
    align-items: start;
}

.pal-account-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

/* ─── Sidebar ─── */
.pal-account-sidebar-sticky {
    position: sticky;
    top: 90px;
}

.pal-account-sidebar-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
    padding: 0 12px 8px;
}

.pal-account-navitem {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    text-decoration: none;
    text-align: left;
    transition: background .15s, color .15s;
    cursor: pointer;
}

.pal-account-navitem:hover {
    background: var(--surface-2);
    color: var(--fg);
    text-decoration: none;
}

.pal-account-navitem.is-active {
    background: var(--accent-soft);
    color: var(--accent-fg);
    font-weight: 600;
}

.pal-account-navitem.is-active:hover {
    background: var(--accent-soft);
}

.pal-account-navitem-svg {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pal-account-navitem-svg > svg {
    width: 18px;
    height: 18px;
}

.pal-account-navitem-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pal-account-navitem-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--fg-muted);
    font-weight: 600;
}

.pal-account-navitem.is-active .pal-account-navitem-badge {
    background: #fff;
    color: var(--accent-fg);
}

.pal-account-navitem-muted {
    color: var(--fg-muted);
}

.pal-account-sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 12px;
}

/* ─── Menu du compte replié en colonne d'icônes, déplié au survol (réglage boutique, MOB 21/10/2026) ───
   Ordinateur seulement (souris) : sur tablette tactile et téléphone, le menu reste comme avant. La colonne garde 64 px ;
   au survol ou au clavier, le panneau s'élargit PAR-DESSUS le contenu (rien ne bouge dans la page) et montre les
   libellés en entier — plus d'ellipse. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .pal-account-shell--rail { grid-template-columns: 64px minmax(0, 1fr); }
    :where(.pal-account-shell--rail .pal-account-sidebar) { background: var(--surface, #fff); border-radius: 10px; }
    .pal-account-shell--rail .pal-account-sidebar {
        position: relative;
        z-index: 30;
        justify-self: start;
        width: max-content;
        max-width: 64px;
        overflow: hidden;
        transition: max-width .22s ease, box-shadow .22s ease;
    }
    .pal-account-shell--rail .pal-account-sidebar:hover,
    .pal-account-shell--rail .pal-account-sidebar:focus-within {
        max-width: 440px;
        box-shadow: 0 14px 36px rgba(16, 24, 20, .16);
    }
    .pal-account-shell--rail .pal-account-navitem-label { flex: 0 0 auto; overflow: visible; text-overflow: clip; }
    .pal-account-shell--rail .pal-account-sidebar-eyebrow { white-space: nowrap; }
    .pal-account-shell--rail .pal-account-navitem-label,
    .pal-account-shell--rail .pal-account-navitem-badge,
    .pal-account-shell--rail .pal-account-sidebar-eyebrow { opacity: 0; transition: opacity .12s ease; }
    .pal-account-shell--rail .pal-account-sidebar:hover :is(.pal-account-navitem-label, .pal-account-navitem-badge, .pal-account-sidebar-eyebrow),
    .pal-account-shell--rail .pal-account-sidebar:focus-within :is(.pal-account-navitem-label, .pal-account-navitem-badge, .pal-account-sidebar-eyebrow) {
        opacity: 1;
        transition-delay: .06s;
    }
}

/* ─── Greeting ─── */
.pal-account-greeting-title {
    margin: 0 0 6px;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-family: 'Instrument Serif', Georgia, serif;
    line-height: 1.2;
    color: var(--fg);
    /* Un pseudo sans espace (« Admin123456789… ») débordait de l'écran sur téléphone (revue mobile 21/10/2026). */
    overflow-wrap: anywhere;
}

.pal-account-greeting-title em {
    font-style: italic;
    color: var(--fg);
}

.pal-account-greeting-sub {
    margin: 0;
    color: var(--fg-muted);
    font-size: 15px;
}

/* ─── Page header (sub-pages) ─── */
.pal-account-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.pal-account-page-title {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-family: 'Instrument Serif', Georgia, serif;
    line-height: 1.2;
    color: var(--fg);
}

.pal-account-page-sub {
    margin: 0;
    color: var(--fg-muted);
    font-size: 15px;
}

/* ─── Cards ─── */
.pal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pal-card.is-link {
    cursor: pointer;
    text-decoration: none;
    color: var(--fg);
    display: block;
}

.pal-card.is-link:hover,
.pal-card.is-hoverable:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.pal-card-pad {
    padding: 24px;
}

.pal-card-pad-sm {
    padding: 18px;
}

.pal-card-pad-lg {
    padding: 28px;
}

.pal-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.pal-section-title h2,
.pal-section-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.pal-section-title h3 {
    font-size: 16px;
}

.pal-section-title .pal-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-fg);
    margin-bottom: 6px;
}

.pal-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
    margin-bottom: 12px;
}

/* ─── Profile strip ─── */
.pal-profile-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
}

.pal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), oklch(0.42 0.2 calc(var(--accent-h) + 40)));
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 8px color-mix(in oklch, var(--accent) 30%, transparent);
    letter-spacing: .5px;
}

.pal-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 26px;
}

.pal-avatar-md {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.pal-profile-strip-text {
    flex: 1;
    min-width: 0;
}

.pal-profile-strip-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pal-profile-strip-text span {
    display: block;
    font-size: 13px;
    color: var(--fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Buttons ─── */
.pal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: 0;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
    text-decoration: none;
    white-space: nowrap;
}

.pal-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.pal-btn-primary {
    background: var(--accent);
    color: #fff;
}

.pal-btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.pal-btn-secondary {
    background: var(--surface);
    color: var(--fg);
    border: 1px solid var(--border-strong);
}

.pal-btn-secondary:hover {
    background: var(--surface-2);
    color: var(--fg);
}

.pal-btn-ghost {
    background: transparent;
    color: var(--fg-muted);
}

.pal-btn-ghost:hover {
    background: var(--surface-2);
    color: var(--fg);
}

.pal-btn-danger {
    background: var(--surface);
    color: var(--danger);
    border: 1px solid var(--border);
}

.pal-btn-danger:hover {
    background: var(--danger-soft);
    border-color: var(--danger-border);
    color: var(--danger);
}

.pal-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* ─── Pills / badges ─── */
.pal-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.pal-pill.is-sm {
    padding: 2px 8px;
    font-size: 11px;
}

.pal-pill.tone-neutral {
    background: var(--surface-2);
    color: var(--fg-muted);
}

.pal-pill.tone-success {
    background: var(--success-soft);
    color: var(--success);
}

.pal-pill.tone-warn {
    background: var(--warn-soft);
    color: var(--warn);
}

.pal-pill.tone-accent {
    background: var(--accent-soft);
    color: var(--accent-fg);
}

/* ─── Toggle ─── */
.pal-toggle {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--border-strong);
    border: 0;
    position: relative;
    transition: background .2s;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.pal-toggle.is-on {
    background: var(--accent);
}

.pal-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: left .2s;
}

.pal-toggle.is-on::after {
    left: 20px;
}

/* ─── Form fields ─── */
.pal-field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-muted);
    margin-bottom: 6px;
}

.pal-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pal-field-icon {
    position: absolute;
    left: 12px;
    color: var(--fg-subtle);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.pal-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--fg);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.pal-input.has-icon {
    padding-left: 36px;
}

.pal-input.has-suffix {
    padding-right: 42px;
}

.pal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 15%, transparent);
}

.pal-field-suffix {
    position: absolute;
    right: 6px;
}

.pal-field-hint {
    font-size: 11px;
    color: var(--fg-subtle);
    margin-top: 6px;
}

.pal-field-hint.is-danger {
    color: var(--danger);
}

textarea.pal-input {
    resize: vertical;
    min-height: 80px;
    padding: 10px 12px;
    line-height: 1.5;
}

.pal-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pal-form-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.pal-form-footer-spacer {
    flex: 1;
    font-size: 12px;
    color: var(--fg-subtle);
}

/* ─── Stat card ─── */
.pal-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
    padding: 20px;
}

.pal-stat-label {
    font-size: 12px;
    color: var(--fg-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.pal-stat-value {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.pal-stat-value.is-accent {
    color: var(--accent-fg);
}

.pal-stat-trend {
    font-size: 12px;
    color: var(--fg-subtle);
    margin-top: 4px;
}

/* ─── Shortcut card (dashboard grid) ─── */
.pal-shortcut {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 140px;
    text-decoration: none;
    color: var(--fg);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pal-shortcut:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: var(--fg);
    text-decoration: none;
}

.pal-icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-fg);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pal-icon-tile.is-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.pal-icon-tile-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pal-icon-tile-xl {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.pal-shortcut-body {
    flex: 1;
    min-width: 0;
}

.pal-shortcut-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--fg);
}

.pal-shortcut-sub {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.45;
}

.pal-shortcut-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--fg-subtle);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ─── Active order hero ─── */
.pal-active-order {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-softer) 0%, var(--surface) 55%);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
}

.pal-active-order-top {
    padding: 24px 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pal-active-order-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pal-active-order-eyebrow-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pal-active-order-eyebrow-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-fg);
}

.pal-active-order-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.pal-active-order-title .is-accent {
    color: var(--accent-fg);
}

.pal-active-order-meta {
    font-size: 13px;
    color: var(--fg-muted);
}

.pal-active-order-cta {
    flex-shrink: 0;
    align-self: center;
    width: auto;
    padding: 10px 18px;
    font-size: 13px;
    white-space: nowrap;
}

.pal-tracker {
    padding: 28px 28px 4px;
    position: relative;
}

.pal-tracker-grid {
    position: relative;
    display: grid;
    gap: 0;
}

.pal-tracker-line {
    position: absolute;
    top: 12px;
    height: 2px;
    background: var(--border-strong);
}

.pal-tracker-line-progress {
    position: absolute;
    top: 12px;
    height: 2px;
    background: var(--accent);
    transition: width .3s;
}

.pal-tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pal-tracker-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--surface);
    border: 2px solid var(--border-strong);
    display: grid;
    place-items: center;
    color: #fff;
    z-index: 2;
    transition: all .3s;
}

.pal-tracker-dot.is-done,
.pal-tracker-dot.is-current {
    background: var(--accent);
    border-color: var(--accent);
}

.pal-tracker-dot.is-current {
    box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 15%, transparent);
}

.pal-tracker-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
}

.pal-tracker-step-label {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-subtle);
}

.pal-tracker-step.is-done .pal-tracker-step-label,
.pal-tracker-step.is-current .pal-tracker-step-label {
    font-weight: 600;
    color: var(--fg);
}

.pal-tracker-step-sub {
    font-size: 11px;
    color: var(--fg-subtle);
    margin-top: 2px;
}

.pal-active-order-items {
    padding: 24px 28px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    background: var(--surface);
}

.pal-item-thumbs {
    display: flex;
}

.pal-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2) repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 0, 0, .04) 8px 10px);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.pal-item-thumb:not(:first-child) {
    margin-left: -10px;
}

.pal-item-thumb-sm {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.pal-active-order-items-text {
    flex: 1;
    min-width: 0;
}

.pal-active-order-items-names {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pal-active-order-items-address {
    font-size: 12px;
    color: var(--fg-muted);
}

.pal-active-order-total {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    flex-shrink: 0;
}

/* ─── Recent orders list (dashboard) ─── */
.pal-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.pal-recent-order {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--fg);
    transition: background .15s;
}

.pal-recent-order:hover {
    background: var(--surface-2);
    color: var(--fg);
    text-decoration: none;
}

.pal-recent-order-info {
    flex: 1;
    min-width: 0;
}

.pal-recent-order-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.pal-recent-order-sub {
    font-size: 12px;
    color: var(--fg-muted);
}

.pal-recent-order-total {
    font-size: 14px;
    font-weight: 600;
    width: 80px;
    text-align: right;
}

/* ─── Key-value row ─── */
.pal-kv {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

.pal-kv:last-child {
    border-bottom: none;
}

.pal-kv-k {
    color: var(--fg-muted);
}

.pal-kv-v {
    font-weight: 500;
}

/* ─── Grids (layout) ─── */
.pal-grid {
    display: grid;
    gap: 16px;
}

.pal-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pal-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pal-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pal-grid-14-1 {
    grid-template-columns: 1.4fr 1fr;
}

/* ─── Orders page: filter pills + history table ─── */
.pal-orders-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pal-filter-pills {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    /* Tablette (≈ 900 px) : la barre se serrait et chaque libellé passait sur 2-3 lignes (« En cours / (19) ») — elle défile. */
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.pal-filter-pills::-webkit-scrollbar { display: none; }

.pal-filter-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--fg-muted);
    cursor: pointer;
    font-family: inherit;
}

.pal-filter-pill.is-active {
    background: var(--surface-2);
    color: var(--fg);
    box-shadow: var(--shadow-xs);
}

.pal-orders-history .pal-history-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 120px 110px 36px;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--fg);
    transition: background .15s;
}

.pal-orders-history .pal-history-row:first-child {
    border-top: 0;
}

.pal-orders-history .pal-history-row:hover {
    background: var(--surface-2);
    color: var(--fg);
    text-decoration: none;
}

/* ─── Address cards ─── */
.pal-address-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.pal-address-label {
    font-size: 14px;
    font-weight: 600;
}

.pal-address-body {
    font-size: 14px;
    line-height: 1.6;
}

.pal-address-body-name {
    font-weight: 500;
    color: var(--fg);
}

.pal-address-body-line {
    color: var(--fg-muted);
}

.pal-address-body-phone {
    color: var(--fg-muted);
    margin-top: 6px;
}

.pal-address-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pal-address-actions .is-spacer {
    flex: 1;
}

.pal-address-add {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-strong);
    border-radius: 14px;
    background: transparent;
    min-height: 220px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.pal-address-add:hover {
    border-color: var(--accent);
    background: var(--accent-softer);
    color: inherit;
    text-decoration: none;
}

.pal-address-add-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--fg-muted);
    margin-bottom: 12px;
}

.pal-address-add-title {
    font-size: 14px;
    font-weight: 500;
}

.pal-address-add-sub {
    font-size: 12px;
    color: var(--fg-muted);
    margin-top: 4px;
}

/* ─── Payment cards (with gradient) ─── */
.pal-payment-card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    min-height: 180px;
    background: linear-gradient(135deg, oklch(0.35 0.01 270), oklch(0.25 0.01 270));
    color: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.pal-payment-card.is-default {
    background: linear-gradient(135deg, oklch(0.3 0.08 var(--accent-h)), oklch(0.22 0.05 var(--accent-h)));
}

.pal-payment-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
}

.pal-payment-card::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -20px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}

.pal-payment-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.pal-payment-brand {
    background: rgba(255, 255, 255, .9);
    padding: 6px 10px;
    border-radius: 6px;
    color: #111;
    display: inline-flex;
    align-items: center;
}

.pal-payment-default-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, .15);
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
}

.pal-payment-number {
    margin-top: 40px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 18px;
    letter-spacing: 0.1em;
    position: relative;
}

.pal-payment-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 11px;
    position: relative;
}

.pal-payment-footer-label {
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.pal-payment-footer-val {
    font-size: 13px;
    font-weight: 500;
}

.pal-payment-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 1;
}

.pal-payment-iconbtn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.pal-payment-iconbtn:hover {
    background: rgba(255, 255, 255, .22);
}

/* ─── Data / RGPD consents ─── */
.pal-consent-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.pal-consent-row:first-of-type {
    border-top: 0;
}

.pal-consent-row-text {
    flex: 1;
}

.pal-consent-row-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.pal-consent-row-sub {
    font-size: 12px;
    color: var(--fg-muted);
}

/* ─── Profile page ─── */
.pal-profile-banner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pal-profile-banner-avatar {
    position: relative;
}

.pal-profile-banner-edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    color: var(--fg-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.pal-profile-banner-edit:hover {
    color: var(--fg);
}

.pal-profile-banner-text {
    flex: 1;
    min-width: 0;
}

.pal-profile-banner-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--fg);
}

.pal-profile-banner-meta {
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 10px;
}

.pal-profile-banner-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Section header with icon */
.pal-section-head-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pal-section-head-icon h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
}

.pal-section-head-icon .pal-section-sub {
    margin: 0 0 20px 42px;
    font-size: 13px;
    color: var(--fg-muted);
}

/* Password strength */
.pal-pwd-strength {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pal-pwd-strength-bars {
    display: flex;
    gap: 3px;
}

.pal-pwd-strength-bar {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--border-strong);
}

.pal-pwd-strength-bar.is-on {
    background: var(--accent);
}

.pal-pwd-strength-bar.tone-danger.is-on {
    background: var(--danger);
}

.pal-pwd-strength-bar.tone-warn.is-on {
    background: var(--warn);
}

.pal-pwd-strength-bar.tone-success.is-on {
    background: var(--success);
}

.pal-pwd-strength-label {
    font-weight: 500;
}

.pal-pwd-strength-label.tone-danger {
    color: var(--danger);
}

.pal-pwd-strength-label.tone-warn {
    color: var(--warn);
}

.pal-pwd-strength-label.tone-success {
    color: var(--success);
}

/* Danger zone card */
.pal-danger-zone {
    background: var(--danger-soft);
    border-color: var(--danger-border);
}

.pal-danger-zone-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pal-danger-zone-text {
    flex: 1;
}

.pal-danger-zone-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--danger);
}

.pal-danger-zone-sub {
    font-size: 13px;
    color: var(--fg-muted);
}

/* ─── Alert banner ─── */
.pal-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pal-alert.tone-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid color-mix(in oklch, var(--success) 30%, transparent);
}

.pal-alert.tone-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

/* ─── Empty states ─── */
.pal-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--fg-muted);
}

.pal-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 6px;
}

.pal-empty-sub {
    font-size: 14px;
    color: var(--fg-muted);
    margin-bottom: 16px;
}

/* ─── Search input ─── */
.pal-search {
    position: relative;
}

.pal-search-input {
    padding: 9px 14px 9px 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    width: 240px;
    color: var(--fg);
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}

.pal-search-input:focus {
    border-color: var(--accent);
}

.pal-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fg-subtle);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .pal-grid-3,
    .pal-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pal-grid-14-1 {
        grid-template-columns: 1fr;
    }

    .pal-form-grid-2 {
        grid-template-columns: 1fr;
    }

    .pal-orders-history .pal-history-row {
        grid-template-columns: 48px 1fr 90px 90px;
    }

    .pal-orders-history .pal-history-row > :nth-child(3),
    .pal-orders-history .pal-history-row > :nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .pal-account-shell {
        grid-template-columns: minmax(0, 1fr); /* « 1fr » = minmax(auto, 1fr) : la colonne suivait la largeur de la rangée de pastilles (1 700 px) et poussait tout le compte hors écran */
        padding: 16px;
        gap: 20px;
    }

    .pal-account-sidebar-sticky {
        position: static;
    }

    .pal-account-sidebar-eyebrow {
        display: none;
    }

    .pal-account-sidebar {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 6px;
    }

    .pal-account-sidebar-divider {
        display: none;
    }

    /* Ticket 11502 pt 9 : sur tablette/mobile on ne cache plus « Retour au site »
       ni « Se déconnecter » — sans eux l'espace compte était une impasse. Seule
       l'aide (lien secondaire) disparaît pour garder la barre compacte. */
    .pal-account-navitem-help {
        display: none;
    }

    .pal-account-greeting-title {
        font-size: 28px;
    }

    .pal-account-page-title {
        font-size: 26px;
    }

    .pal-grid-3,
    .pal-grid-2,
    .pal-grid-4 {
        grid-template-columns: 1fr;
    }

    .pal-profile-strip {
        flex-wrap: wrap;
    }

    .pal-active-order-top {
        flex-direction: column;
    }

    .pal-active-order-items {
        flex-wrap: wrap;
    }

    /* Noms des articles de la commande en cours : deux lignes au lieu d'une ellipse après 150 px (revue mobile 21/10/2026). */
    .pal-active-order-items-names {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .pal-orders-toolbar {
        flex-wrap: wrap;
    }

    .pal-search-input {
        width: 100%;
    }

    .pal-card-pad,
    .pal-card-pad-lg {
        padding: 18px;
    }

    .pal-active-order-top,
    .pal-active-order-items,
    .pal-tracker {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ── Téléphone (retour Babylone 14/10/2026, captures) : en-tête de page empilé (les boutons recouvraient le titre), bannière
   profil sur deux lignes (« Retirer la photo » chevauchait l'e-mail), étapes de suivi lisibles (libellés qui se touchaient). ── */
@media (max-width: 600px) {
    .pal-account-page-header { flex-direction: column; align-items: stretch; gap: 14px; }
    .pal-account-page-header > .pal-account-page-actions { width: 100%; }
    .pal-account-page-actions .commerce-btn, .pal-account-page-actions .pal-btn { width: 100%; }
    .pal-account-page-title { font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
    .pal-profile-banner { flex-wrap: wrap; }
    .pal-profile-banner .pal-profile-banner-text { flex: 1 1 55%; min-width: 0; overflow-wrap: anywhere; }
    .pal-profile-banner > .pal-btn { flex: 1 1 100%; }
    .pal-tracker-grid { gap: 2px; }
    .pal-tracker-step, .pal-tracker-step * { font-size: 11px; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
}

/* ── Téléphone : les grilles du compte ne débordent plus — la colonne unique suivait la largeur minimale du contenu des cartes
   (adresses, détail de commande, tableau de bord à 360 px) ; boutons discrets assez hauts pour le doigt. ── */
@media (max-width: 600px) {
    .pal-account-main .pal-grid { grid-template-columns: minmax(0, 1fr); }
    .pal-account-main .pal-grid > * { min-width: 0; max-width: 100%; }
    .pal-account-main .pal-card { min-width: 0; overflow-wrap: break-word; } /* pas « anywhere » : il coupait les mots au milieu (« ANTHRAC ITE », « Command e ») dès qu'une rangée était serrée */
    .pal-account-main .pal-address-head, .pal-account-main .pal-section-title { flex-wrap: wrap; }
    .pal-account-main .commerce-btn-ghost, .pal-account-main .pal-btn-ghost { min-height: 36px; }
    /* Adresses : « Livraison par défaut » / « Facturation par défaut » sur une ligne à deux, « Modifier » + corbeille sur la suivante
       (les trois boutons côte à côte se coupaient lettre par lettre). */
    .pal-address-actions { flex-wrap: wrap; }
    .pal-address-actions > .commerce-btn { white-space: nowrap; width: auto !important; } /* la feuille boutique met les boutons en pleine largeur sur téléphone */
    .pal-address-actions > [data-make-default] { flex: 1 1 calc(50% - 4px); font-size: 11px !important; padding: 8px 6px !important; letter-spacing: .02em; border: 1px solid var(--border); border-radius: 8px; }
    .pal-address-actions > .commerce-btn-secondary { flex: 1 1 auto; }
    .pal-address-actions > .is-spacer { display: none; }
    .pal-address-actions > .commerce-btn-icon { margin-left: auto; }
    /* Tableau de bord : commandes récentes — numéro sur une ligne, montant et état qui passent dessous si la place manque. */
    .pal-recent-order { flex-wrap: wrap; row-gap: 6px; }
    .pal-recent-order-info { flex: 1 1 140px; min-width: 0; }
    .pal-recent-order-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pal-recent-order-total { margin-left: auto; }
    .pal-recent-order > .pal-pill { order: 10; margin-left: 62px; } /* l'état passe sous le numéro, aligné sur lui ; le montant reste à droite du numéro */
    /* Détail de commande : vignette + désignation sur la première ligne, quantité et montant à droite sur la seconde. */
    .pal-order-line { flex-wrap: wrap; row-gap: 6px; }
    .pal-order-line-body { flex: 1 1 calc(100% - 70px) !important; }
    .pal-order-line-qty { margin-left: auto; width: auto !important; }
    .pal-order-line-total { width: auto !important; }
    /* Profil : la phrase d'aide sur sa ligne, « Annuler » / « Enregistrer » côte à côte dessous. */
    .pal-form-footer { flex-wrap: wrap; }
    .pal-form-footer-spacer { flex: 1 1 100%; }
    .pal-form-footer > .pal-btn { flex: 1 1 auto; }
    /* Mes commandes : onglets sur une ligne qui défile (ils se repliaient sur deux lignes), recherche pleine largeur,
       lignes de l'historique sur deux rangées (numéro + montant, puis « Facture ») — le bouton était coupé par la carte. */
    .pal-filter-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
    .pal-filter-pills::-webkit-scrollbar { display: none; }
    .pal-filter-pill { flex: 0 0 auto; white-space: nowrap; }
    .pal-orders-toolbar > .pal-search, .pal-orders-toolbar > form.pal-search { width: 100%; flex: 1 1 100%; }
    .pal-orders-history .pal-history-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 16px; }
    .pal-orders-history .pal-history-row > :nth-child(2) > :first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pal-orders-history .pal-history-row > :nth-child(5) { grid-column: 2 / -1; justify-self: start; }
}

/* ── Téléphone / tablette : le menu du compte devient une rangée de pastilles qui défile, la page active en tête — la liste
   verticale de douze liens repoussait le contenu sous l'écran (audit responsive Babylone 14/10/2026). ── */
@media (max-width: 768px) {
    .pal-account-sidebar { padding: 4px; min-width: 0; max-width: 100%; }
    .pal-account-sidebar-sticky { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pal-account-sidebar-sticky::-webkit-scrollbar { display: none; }
    .pal-account-sidebar-sticky .pal-account-navitem { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 8px 12px; border-radius: 999px; }
    .pal-account-sidebar-sticky .pal-account-navitem.is-active { order: -1; }
    .pal-account-sidebar-sticky .pal-account-navitem-back { order: -2; }
    .pal-account-sidebar-sticky .pal-account-logout-form { flex: 0 0 auto; }
}

/* ── Téléphone (capture MOB 15/10/2026) : composeur de réponse d'un retour sur deux lignes — le sélecteur de fichier et
   « Envoyer » sortaient de la carte ; boutons de la demande de retour empilables. ── */
@media (max-width: 600px) {
    .pal-reply-composer { flex-wrap: wrap; }
    .pal-reply-composer > textarea { flex: 1 1 100% !important; }
    .pal-reply-composer > .pal-reply-side { flex-direction: row !important; width: 100%; align-items: center; gap: 8px !important; }
    .pal-reply-side > div { flex: 1 1 auto; min-width: 0; }
    .pal-reply-side input[type="file"] { width: 100% !important; }
    .pal-reply-side > .commerce-btn { flex: 0 0 auto; width: auto !important; }
    .pal-return-actions { flex-wrap: wrap; }
    .pal-return-actions > .commerce-btn { flex: 1 1 auto !important; width: auto !important; }
}
