/* =========================================================================
   XenSupport — Design System v3 "Aurora"
   Premium, distinctive, animated.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

/* ---- Light theme ---- */
:root {
    color-scheme: light;

    --bg:           #fafaff;
    --bg-tint:      #f1f0fb;
    --surface:      #ffffff;
    --surface-2:    #f7f6fc;
    --surface-glow: rgba(124, 108, 255, 0.06);
    --elevated:     #ffffff;

    --border:       rgba(11, 11, 36, 0.07);
    --border-2:     rgba(11, 11, 36, 0.14);
    --border-glow:  rgba(124, 108, 255, 0.35);

    --text:         #08081e;
    --text-muted:   #4a4f63;
    --text-soft:    #7a8094;

    /* Brand : indigo profond + accent cyan */
    --brand:        #4a3aff;
    --brand-hi:     #6357ff;
    --brand-lo:     #3422c2;
    --brand-soft:   #ecebff;
    --brand-soft-2: #d4d0ff;

    --accent:       #00d4ff;
    --accent-2:     #ff5cb6;
    --accent-soft:  #d2f7ff;

    --success:      #00a76f;
    --success-soft: #d1fae5;
    --warning:      #d97706;
    --warning-soft: #fef3c7;
    --danger:       #e11d48;
    --danger-2:     #be123c;
    --danger-soft:  #ffe4e6;
    --star:         #ffb800;

    --shadow-1: 0 1px 2px rgba(11, 11, 36, 0.05), 0 1px 1px rgba(11, 11, 36, 0.02);
    --shadow-2: 0 8px 22px -10px rgba(11, 11, 36, 0.14), 0 2px 8px -2px rgba(11, 11, 36, 0.06);
    --shadow-3: 0 24px 50px -18px rgba(11, 11, 36, 0.22), 0 8px 20px -8px rgba(11, 11, 36, 0.12);
    --shadow-brand: 0 14px 36px -10px rgba(74, 58, 255, 0.5);
    --shadow-glow: 0 0 0 1px rgba(124, 108, 255, 0.15), 0 18px 50px -12px rgba(124, 108, 255, 0.35);

    --grad-brand:  linear-gradient(135deg, var(--brand-hi), var(--brand-lo));
    --grad-aurora: conic-gradient(from 180deg at 50% 50%, #6357ff 0%, #00d4ff 22%, #ff5cb6 44%, #6357ff 70%, #00d4ff 100%);
    --grad-text:   linear-gradient(135deg, #6357ff 0%, #00d4ff 60%, #ff5cb6 100%);
    --grad-mesh:
        radial-gradient(60% 50% at 15% 0%,  rgba(99, 87, 255, 0.20),  transparent 60%),
        radial-gradient(50% 50% at 90% 10%, rgba(0, 212, 255, 0.16),  transparent 65%),
        radial-gradient(45% 60% at 50% 100%, rgba(255, 92, 182, 0.10), transparent 60%);

    --hero-bg-1: #08081e;
    --hero-bg-2: #1b1149;
    --hero-bg-3: #2d1d8f;
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
    color-scheme: dark;

    --bg:           #06061a;
    --bg-tint:      #08092a;
    --surface:      #0f1124;
    --surface-2:    #131634;
    --surface-glow: rgba(99, 87, 255, 0.14);
    --elevated:     #161a3c;

    --border:       rgba(255, 255, 255, 0.06);
    --border-2:     rgba(255, 255, 255, 0.14);
    --border-glow:  rgba(124, 108, 255, 0.45);

    --text:         #f0f1ff;
    --text-muted:   #a5acc8;
    --text-soft:    #6a6f8c;

    --brand:        #8b85ff;
    --brand-hi:     #a89eff;
    --brand-lo:     #6357ff;
    --brand-soft:   rgba(139, 133, 255, 0.14);
    --brand-soft-2: rgba(139, 133, 255, 0.30);

    --accent:       #22d3ee;
    --accent-2:     #f472b6;
    --accent-soft:  rgba(34, 211, 238, 0.14);

    --success:      #34d399;
    --success-soft: rgba(52, 211, 153, 0.14);
    --warning:      #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.14);
    --danger:       #fb7185;
    --danger-2:     #f43f5e;
    --danger-soft:  rgba(251, 113, 133, 0.14);
    --star:         #ffd93d;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 8px 22px -10px rgba(0, 0, 0, 0.7), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 24px 50px -18px rgba(0, 0, 0, 0.8), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 14px 40px -10px rgba(139, 133, 255, 0.55);
    --shadow-glow: 0 0 0 1px rgba(139, 133, 255, 0.20), 0 22px 60px -12px rgba(139, 133, 255, 0.45);

    --grad-brand:  linear-gradient(135deg, #a89eff, #6357ff);
    --grad-aurora: conic-gradient(from 180deg at 50% 50%, #6357ff 0%, #22d3ee 22%, #f472b6 44%, #6357ff 70%, #22d3ee 100%);
    --grad-text:   linear-gradient(135deg, #a89eff 0%, #22d3ee 60%, #f472b6 100%);
    --grad-mesh:
        radial-gradient(60% 50% at 15% 0%,  rgba(139, 133, 255, 0.22), transparent 60%),
        radial-gradient(50% 50% at 90% 10%, rgba(34, 211, 238, 0.18),  transparent 65%),
        radial-gradient(45% 60% at 50% 100%, rgba(244, 114, 182, 0.10), transparent 60%);

    --hero-bg-1: #04041a;
    --hero-bg-2: #0a0930;
    --hero-bg-3: #1a1066;
}

* { box-sizing: border-box; }
*::selection { background: var(--brand-soft-2); color: var(--text); }

html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-feature-settings: "ss01" on, "cv11" on, "cv05" on;
    transition: background 320ms ease, color 320ms ease;
}

body {
    min-height: 100vh;
    background: var(--grad-mesh), var(--bg);
    background-attachment: fixed;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 140ms ease;
}
a:hover { color: var(--brand-hi); }

/* Liens "see all" dans les section-head : underline animé + flèche qui glisse */
.section-head > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    position: relative;
    padding-bottom: 2px;
}
.section-head > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}
.section-head > a:hover {
    color: var(--brand);
    text-decoration: none;
}
.section-head > a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.section-head > a .ic svg { transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.section-head > a:hover .ic svg { transform: translateX(4px); }

img { max-width: 100%; display: block; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

h1, h2, h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--text);
    margin: 0;
}
h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 17px; line-height: 1.35; }
p  { margin: 0 0 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.narrow { max-width: 760px; margin: 0 auto; }
.main { min-height: calc(100vh - 96px - 110px); }

.text-muted { color: var(--text-muted); }
.text-soft  { color: var(--text-soft); }
.text-grad  { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small      { font-size: 12.5px; }
.ra         { text-align: right; }
.center     { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.p-3  { padding: 24px; }
.inline { display: inline; }
.va-top td { vertical-align: top; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mb-2 { margin-bottom: 16px; }
.max-w-3xl { max-width: 760px; }

/* =========================================================================
   Navigation — flat attachée en haut, devient capsule flottante au scroll
   ========================================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    padding: 0;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--border);
    transition: padding 340ms cubic-bezier(0.16, 1, 0.3, 1),
                background 280ms ease,
                border-color 280ms ease;
}
[data-theme="dark"] .nav { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 14px 0 22px;
    gap: 14px;
    max-width: 1340px;
    margin: 0 auto;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: padding 340ms cubic-bezier(0.16, 1, 0.3, 1),
                background 280ms ease,
                border-color 280ms ease,
                border-radius 340ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 340ms ease,
                max-width 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger : caché en desktop, visible < 900px */
.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    width: 38px; height: 38px;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    place-items: center;
    transition: background 140ms ease, color 140ms ease;
}
.menu-toggle:hover { color: var(--text); background: var(--surface); }
.menu-toggle .ic svg { width: 20px; height: 20px; }

/* État flottant : déclenché par JS via .is-floating quand window.scrollY > 4 */
.nav.is-floating {
    padding: 14px 24px 0;
    background: transparent;
    border-bottom-color: transparent;
}
.nav.is-floating .nav-inner {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-3);
    padding: 0 8px 0 18px;
    position: relative;
}
/* ✨ Gradient border conique animé — visible uniquement quand la capsule flotte */
.nav.is-floating .nav-inner::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1.5px;
    background: conic-gradient(from var(--nav-angle, 0deg),
        var(--brand) 0%, var(--accent) 25%,
        transparent 40%, transparent 60%,
        var(--accent-2) 75%, var(--brand) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: navBorderRotate 9s linear infinite;
    pointer-events: none;
    z-index: -1;
}
@property --nav-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes navBorderRotate {
    from { --nav-angle: 0deg; }
    to   { --nav-angle: 360deg; }
}
[data-theme="dark"] .nav.is-floating { background: transparent; }
[data-theme="dark"] .nav.is-floating .nav-inner { background: color-mix(in srgb, var(--surface) 72%, transparent); }

/* =========================================================================
   Mobile (< 900px) : hamburger + menu en panneau dropdown
   ========================================================================= */
@media (max-width: 900px) {
    .menu-toggle { display: inline-grid; }

    /* Overlay sombre derrière le menu — bloque clic + isole visuellement */
    .nav::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(8, 8, 30, 0);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        pointer-events: none;
        opacity: 0;
        transition: opacity 220ms ease, background 220ms ease, backdrop-filter 220ms ease;
        z-index: 40;
    }
    .nav.is-open::before {
        background: rgba(8, 8, 30, 0.5);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 1;
        pointer-events: auto;
    }

    /* Specificity 0,2,0 to beat the generic desktop rules below. */
    .nav .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 14px;
        margin: 0 14px;
        background: var(--surface);
        border: 1px solid var(--border-2);
        border-radius: 16px;
        box-shadow: var(--shadow-3);
        z-index: 60;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    .nav.is-open .nav-links {
        display: flex;
        animation: menuSlide 220ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes menuSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* L'indicateur animé est inutile sur mobile (menu vertical) */
    .nav-indicator { display: none; }

    .nav-link {
        padding: 12px 14px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
        font-size: 14.5px;
        color: var(--text);
    }
    .nav-link:hover { background: var(--surface-2); }
    .nav-link.is-active { background: var(--brand-soft); color: var(--brand); }

    /* Utils visible en row (compact) en mobile */
    .nav-utils { gap: 6px; }
    .nav-user-name { display: none; }
    .nav-user-btn { padding: 4px; }
}

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text) !important;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700; letter-spacing: -0.014em;
    font-size: 17px;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    position: relative;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif; font-weight: 700;
    box-shadow: var(--shadow-brand);
    font-size: 15px;
    overflow: hidden;
    /* 3D transform au hover : rotation + scale + glow ampli */
    transition:
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}
.brand:hover .brand-mark {
    transform: rotateY(180deg) scale(1.1);
    box-shadow:
        var(--shadow-brand),
        0 0 24px color-mix(in srgb, var(--brand) 60%, transparent),
        0 0 48px color-mix(in srgb, var(--accent) 40%, transparent);
}
.brand-mark::after {
    content: "";
    position: absolute; inset: -3px;
    border-radius: 13px;
    background: var(--grad-aurora);
    opacity: 0.65;
    z-index: -1;
    filter: blur(8px);
    animation: spin 6s linear infinite;
}
.brand:hover .brand-mark::after {
    opacity: 1;
    filter: blur(12px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   Main nav links — avec indicateur animé qui glisse
   ============================================================================ */
.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: center;
    margin: 0 12px;
}
.nav-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 160ms ease;
    z-index: 1;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.is-active { color: var(--brand); }
.nav-link .ic svg { width: 15px; height: 15px; }
.nav-link .pill {
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
}

/* Indicateur animé (pill qui glisse) */
.nav-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0;
    height: 36px;
    background: var(--brand-soft);
    border-radius: 10px;
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
                width 360ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 240ms ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.nav-indicator.is-visible { opacity: 1; }
.nav-indicator.is-hover {
    background: var(--surface-2);
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
}

/* ============================================================================
   Utilities (cluster droite) — jamais wrappent
   ============================================================================ */
.nav-utils {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
   🛒 Cart : bouton + preview hover
   ---------------------------------------------------------------------------- */
.nav-cart-wrap { position: relative; }
.nav-cart-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.nav-cart-btn:hover {
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
    transform: translateY(-1px);
    border-color: var(--border-2);
}
.nav-cart-btn .ic svg { width: 18px; height: 18px; }
.nav-cart-btn .pill {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--surface);
    line-height: 1.4;
}
.nav-cart-preview {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-3);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms;
    z-index: 70;
}
.nav-cart-preview::before {
    /* Bridge invisible pour qu'on puisse glisser la souris du bouton vers le menu */
    content: "";
    position: absolute;
    top: -12px; left: 0; right: 0; height: 12px;
}
.nav-cart-wrap:hover .nav-cart-preview,
.nav-cart-wrap:focus-within .nav-cart-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cart-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.cart-preview-head strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.cart-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.cart-preview-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 10px;
    transition: background 140ms ease;
}
.cart-preview-list li:hover { background: var(--surface-2); }
.cart-preview-thumb {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700; font-size: 13px;
    overflow: hidden;
}
.cart-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-preview-info { min-width: 0; flex: 1; }
.cart-preview-info p {
    margin: 0;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-preview-info small {
    color: var(--text-muted);
    font-size: 11.5px;
}
.cart-preview-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    gap: 10px;
}
.cart-preview-foot div { display: flex; flex-direction: column; line-height: 1.3; }
.cart-preview-foot strong { font-size: 15px; color: var(--text); }

/* ----------------------------------------------------------------------------
   👤 User dropdown : avatar + nom + menu
   ---------------------------------------------------------------------------- */
.nav-user-wrap { position: relative; }
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    font-family: inherit;
}
.nav-user-btn:hover {
    background: var(--surface);
    border-color: var(--border-2);
    transform: translateY(-1px);
}
.nav-user-btn[aria-expanded="true"] {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.nav-user-avatar {
    width: 28px; height: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700; font-size: 12.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px -2px rgba(58, 44, 216, 0.4);
}
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-user-chevron {
    color: var(--text-muted);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-user-btn[aria-expanded="true"] .nav-user-chevron {
    transform: rotate(180deg);
    color: var(--brand);
}
.nav-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 248px;
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-3);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 70;
    animation: userMenuPop 240ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}
.nav-user-menu[hidden] { display: none; }
@keyframes userMenuPop {
    from { opacity: 0; transform: scale(0.96) translateY(-6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.user-menu-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.user-menu-head strong {
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-user-menu > a,
.nav-user-menu .user-menu-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease, padding-left 220ms cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.nav-user-menu > a:hover,
.nav-user-menu .user-menu-logout:hover {
    background: var(--surface-2);
    color: var(--text);
    padding-left: 14px;
}
.nav-user-menu > a .ic svg,
.nav-user-menu .user-menu-logout .ic svg {
    width: 15px; height: 15px;
    color: var(--text-muted);
}
.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}
.user-menu-logout {
    color: var(--danger) !important;
}
.user-menu-logout:hover {
    background: color-mix(in srgb, var(--danger) 10%, transparent) !important;
    color: var(--danger) !important;
}
.user-menu-logout .ic svg { color: var(--danger) !important; }

/* Cache le nom de l'utilisateur en dessous de 1100px (juste l'avatar reste) */
@media (max-width: 1100px) {
    .nav-user-name { display: none; }
    .nav-user-btn { padding: 4px; }
}

.nav-toggle-grp {
    display: inline-flex; align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.nav-toggle-grp a {
    padding: 5px 9px; font-size: 12.5px; font-weight: 600;
    color: var(--text-muted);
    border-radius: 7px;
    background: transparent;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease;
}
.nav-toggle-grp a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-toggle-grp a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: grid; place-items: center;
    padding: 0;
    transition: background 140ms ease, color 140ms ease, transform 200ms ease;
}
.theme-toggle:hover { color: var(--text); transform: rotate(15deg); }
.theme-toggle .ic-sun  { display: none; }
.theme-toggle .ic-moon { display: inline-flex; }
[data-theme="dark"] .theme-toggle .ic-sun  { display: inline-flex; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

.link-btn { background: transparent; border: 0; cursor: pointer; color: var(--text-muted); padding: 8px 12px; border-radius: 8px; font: inherit; }
.link-btn:hover { color: var(--danger); background: var(--danger-soft); }
.link-btn.danger { color: var(--danger); padding: 4px 8px; }

/* =========================================================================
   Buttons — hover premium : cursor spotlight + halo glow + shimmer + ripple
   ========================================================================= */
.btn {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1;
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg) !important;
    cursor: pointer; text-decoration: none;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
                background 220ms ease,
                color 160ms ease,
                border-color 160ms ease;
    will-change: transform; white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
}
.btn > * { position: relative; z-index: 2; }
/* Curseur-follow spotlight (visible sur tous les .btn au survol) */
.btn::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(160px circle at var(--mx) var(--my),
                rgba(255, 255, 255, 0.28), transparent 60%);
    opacity: 0;
    transition: opacity 320ms ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
    mix-blend-mode: overlay;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Ripple au clic (injecté par JS — span.btn-ripple-dot) */
.btn-ripple-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 1;
    animation: btnRipple 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes btnRipple {
    to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* === PRIMARY : gradient brand + shimmer + glow brand-tinted multi-couches === */
.btn-primary {
    background: var(--grad-brand);
    box-shadow:
        var(--shadow-brand),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
    transform: translateX(-110%);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:hover {
    box-shadow:
        0 22px 60px -12px color-mix(in srgb, var(--brand) 70%, transparent),
        0 8px 18px -4px color-mix(in srgb, var(--brand) 50%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: translateY(-2px) scale(1.015);
}

/* === SECONDARY : ring qui se colore au hover + glow subtil === */
.btn-secondary {
    --btn-bg: var(--surface);
    color: var(--text) !important;
    border-color: var(--border-2);
    box-shadow: var(--shadow-1);
}
.btn-secondary::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, var(--brand), var(--accent), var(--accent-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
    z-index: 1;
}
.btn-secondary:hover {
    background: var(--surface);
    border-color: transparent;
    box-shadow:
        0 12px 32px -10px color-mix(in srgb, var(--brand) 25%, transparent),
        var(--shadow-2);
}
.btn-secondary:hover::before { opacity: 1; }

/* === GHOST (sur hero) : reste lisible avec spotlight === */
.btn-ghost {
    --btn-bg: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.35);
}

/* === WHITE (sur hero) === */
.btn-white {
    --btn-bg: #ffffff;
    color: var(--brand-lo) !important;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.18);
}
.btn-white:hover {
    background: var(--brand-soft);
    box-shadow:
        0 22px 60px -12px rgba(58, 44, 216, 0.4),
        0 6px 14px -4px rgba(58, 44, 216, 0.3);
}

/* === DANGER === */
.btn-danger {
    background: var(--danger-2);
    box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn-danger:hover {
    background: var(--danger);
    box-shadow:
        0 22px 50px -12px color-mix(in srgb, var(--danger) 60%, transparent),
        0 6px 14px -4px color-mix(in srgb, var(--danger) 40%, transparent);
}

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn.full { width: 100%; }

/* Respecte les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .btn { transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
    .btn:hover { transform: none; }
    .btn::after, .btn-primary::before, .btn-secondary::before { display: none; }
}

/* =========================================================================
   Cards — avec effet spotlight au survol
   ========================================================================= */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-1);
    transition: box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 320ms ease;
    isolation: isolate;
}
.card.empty { padding: 56px 24px; text-align: center; color: var(--text-muted); }
.card.empty .btn { margin-top: 14px; }
.card.center { padding: 56px 24px; text-align: center; }

/* =========================================================================
   Hero — mesh animé + cartes décoratives flottantes
   ========================================================================= */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #f3f4ff;
    padding: 96px 0 100px;
    background: linear-gradient(180deg, var(--hero-bg-2) 0%, var(--hero-bg-1) 100%);
    margin: 18px 0 0;
}
/* Aurora animée derrière */
.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: var(--grad-aurora);
    filter: blur(80px);
    opacity: 0.42;
    z-index: -2;
    animation: auroraSpin 28s linear infinite;
}
@keyframes auroraSpin { to { transform: rotate(360deg); } }
/* Grille */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 80%);
    pointer-events: none; z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-deco { display: none; }
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #38e1a8;
    box-shadow: 0 0 14px #38e1a8;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    margin: 0 0 22px;
    letter-spacing: -0.035em;
    color: #fff;
    max-width: 820px;
    font-weight: 800;
    /* Subtle text-shadow pour profondeur (très visible en dark) */
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #fff 0%, #b8b1ff 30%, #6357ff 60%, #ff5d8f 90%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* background-size + animation définis plus bas (gradientShift, sweep doux 0→100%) */
    /* Glow lumineux qui pulse en sync */
    filter: drop-shadow(0 0 24px color-mix(in srgb, var(--brand) 60%, transparent));
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    max-width: 540px;
    margin: 0 0 32px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 40px;
    margin-top: 52px;
    color: rgba(255, 255, 255, 0.78);
    flex-wrap: wrap;
}
.hero-stat {
    position: relative;
    padding-left: 16px;
}
.hero-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
.hero-stat .v {
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}
.hero-stat .l {
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* Cartes décoratives flottantes à droite du hero */
.hero-deco {
    position: relative;
    height: 380px;
}
.deco-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    will-change: transform;
}
.deco-card.dc-1 {
    top: 0; right: 60px;
    width: 220px;
    animation: float1 6s ease-in-out infinite;
}
.deco-card.dc-2 {
    bottom: 20px; right: 0;
    width: 240px;
    animation: float2 7s ease-in-out infinite;
}
.deco-card.dc-3 {
    top: 110px; right: 180px;
    width: 200px;
    animation: float3 8s ease-in-out infinite;
}
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(4deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}
.deco-card .deco-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--grad-text);
    display: grid; place-items: center;
    margin-bottom: 10px;
    color: #fff;
}
.deco-card .deco-title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.deco-card .deco-meta  { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); }
.deco-card .deco-price {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-top: 8px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================================================
   Marquee / trust strip
   ========================================================================= */
.trust-strip {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}
.trust-strip-inner {
    display: flex;
    gap: 56px;
    align-items: center;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    animation: scroll 30s linear infinite;
    width: max-content;
}
.trust-strip-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip-inner span .ic { color: var(--brand); }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================================
   Section heads
   ========================================================================= */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: clamp(26px, 2.8vw, 34px);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}
/* Underline gradient qui se "dessine" sous le titre quand la section devient visible */
.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 200ms;
}
.section-head.center { text-align: center; justify-content: center; }
.section-head.center h2::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.section-head.center.is-visible h2::after,
.section-head.is-visible h2::after { transform: scaleX(1); }
.section-head.center.is-visible h2::after { transform: translateX(-50%) scaleX(1); }
.section-head p  { color: var(--text-muted); margin: 8px 0 0; font-size: 15px; }

.page-head { margin-bottom: 32px; }
.page-head h1 {
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}
.page-head h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 240ms;
}
.page-head.is-visible h1::after,
.page-head:not(.reveal) h1::after { transform: scaleX(1); }

/* =========================================================================
   Grids
   ========================================================================= */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* =========================================================================
   Extension cards — clean lift + Ken Burns image + animated border halo
   ========================================================================= */
.ext-card {
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 280ms ease;
    border-radius: 18px;
}
/* Halo brand-tinted derrière la carte au hover */
.ext-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: conic-gradient(from 0deg,
        transparent 0%, var(--brand) 25%,
        var(--accent) 50%, var(--accent-2) 75%,
        transparent 100%);
    opacity: 0;
    transition: opacity 500ms ease;
    z-index: -1;
    filter: blur(18px);
    animation: extCardHaloRotate 12s linear infinite;
}
.ext-card:hover::before { opacity: 0.45; }
.ext-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 28px 60px -20px color-mix(in srgb, var(--brand) 35%, transparent),
        0 12px 24px -10px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border-2));
}
@keyframes extCardHaloRotate {
    to { transform: rotate(360deg); }
}

/* Cover : Ken Burns zoom + overlay gradient + shine sweep au hover */
.ext-cover {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-soft), var(--surface));
    position: relative;
    overflow: hidden;
}
.ext-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 30, 0.18));
    transition: opacity 320ms ease;
    pointer-events: none;
    z-index: 1;
}
[data-theme="dark"] .ext-cover::after {
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5));
}
/* Shine sweep diagonal sur l'image au hover */
.ext-cover::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}
.ext-card:hover .ext-cover::before { transform: translateX(110%); }
.ext-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
                filter 320ms ease;
}
.ext-card:hover .ext-cover img {
    transform: scale(1.08);
    filter: saturate(1.1);
}
.ext-initials {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: var(--brand);
    font-family: "Space Grotesk", sans-serif;
    font-size: 48px; font-weight: 700;
    background: linear-gradient(135deg, var(--brand-soft), var(--surface));
    letter-spacing: -0.02em;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ext-card:hover .ext-initials { transform: scale(1.1); }
.ext-initials.big { font-size: 72px; }

.ext-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ext-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ext-name {
    color: var(--text);
    font-weight: 600;
    font-size: 16.5px;
    letter-spacing: -0.005em;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1.5px;
    transition: background-size 380ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}
.ext-name:hover {
    color: var(--brand);
    text-decoration: none;
    background-size: 100% 1.5px;
}
.ext-short {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
    min-height: 42px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ext-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    gap: 8px;
    border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.ext-price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================================================
   Detail page
   ========================================================================= */
.detail-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-cover { overflow: hidden; padding: 0; }
.detail-cover img, .detail-cover .ext-initials { aspect-ratio: 16 / 8; }
.detail-body { padding: 30px; margin-top: 20px; }
.detail-body h1 { margin: 0 0 8px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.rich-text { white-space: pre-wrap; font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-top: 22px; }
.price-box {
    padding: 28px;
    position: sticky; top: 96px;
    background: var(--surface);
    overflow: hidden;
    isolation: isolate;
}
.price-box::before {
    content: "";
    position: absolute; top: -50%; right: -30%;
    width: 280px; height: 280px;
    background: var(--grad-aurora);
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.15;
    z-index: -1;
}
.price-big {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(36px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 6px 0;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bullets { list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--text-muted); }
.bullets li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bullets li .ic { color: var(--brand); flex-shrink: 0; }

/* =========================================================================
   Badges
   ========================================================================= */
.badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    border: 1px solid transparent;
}
.badge.gray   { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.badge.green  { background: var(--success-soft); color: var(--success); }
.badge.amber  { background: var(--warning-soft); color: var(--warning); }
.badge.blue   { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft-2); }
.badge.red    { background: var(--danger-soft); color: var(--danger-2); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* =========================================================================
   Forms
   ========================================================================= */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-tight { list-style: none; padding: 0; margin: 0; }
.stack-tight li { margin-bottom: 4px; }
.stack label, .form-label { display: block; font-weight: 600; font-size: 13.5px; color: var(--text); }
.stack input, .stack select, .stack textarea, .input-field {
    display: block; width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit; font-size: 14.5px;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.stack input:focus, .stack select:focus, .stack textarea:focus, .input-field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.stack input[type="file"] { padding: 8px; background: var(--surface-2); cursor: pointer; }
.stack textarea { min-height: 160px; resize: vertical; }
.stack small { color: var(--text-muted); font-weight: 400; }
.stack .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.stack .check input { width: auto; margin-top: 0; }
.cover-preview { max-height: 180px; border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   Alerts
   ========================================================================= */
.alert {
    background: var(--danger-soft);
    color: var(--danger);
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent);
    border-radius: 12px;
    font-size: 14px;
}
.alert.warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }
.alert.info    { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft-2); }

/* =========================================================================
   Auth
   ========================================================================= */
.auth-wrap { max-width: 460px; margin: 72px auto; padding: 0 16px; }
.auth-card { padding: 36px; }
.auth-card h1 { margin: 0 0 6px; font-size: 28px; }

/* =========================================================================
   Tables
   ========================================================================= */
.table-wrap { overflow: hidden; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
    background: var(--surface-2);
    color: var(--text-muted);
    text-align: left;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 14px 18px;
}
.table tbody td { padding: 14px 18px; border-top: 1px solid var(--border); }
.table tbody tr:hover td { background: var(--surface-2); }
.empty-cell { text-align: center; color: var(--text-muted); padding: 32px !important; }

/* =========================================================================
   Stats
   ========================================================================= */
.stat { padding: 24px; }
.stat-value { font-family: "Space Grotesk", sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.stat-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    margin-bottom: 10px;
}

/* =========================================================================
   Cart
   ========================================================================= */
.cart-grid { display: grid; gap: 22px; grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-row { padding: 16px 18px; display: flex; align-items: center; gap: 16px; }
.cart-thumb {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-soft), var(--surface));
    color: var(--brand);
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif; font-weight: 700;
    overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; }
.cart-summary { padding: 26px; height: fit-content; position: sticky; top: 96px; }

/* =========================================================================
   Success
   ========================================================================= */
.success-card { padding: 40px; }
.check-circle {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    border-radius: 999px;
    display: grid; place-items: center;
    font-size: 24px; margin-bottom: 14px;
    box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.5);
}
.sub-card { padding: 20px; }
.license-key {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 4px 12px;
    border: 1px dashed var(--brand-soft-2);
    border-radius: 8px;
    font-weight: 600;
}

/* =========================================================================
   Benefits
   ========================================================================= */
.benefits { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 64px 0; position: relative; overflow: hidden; }
.benefits::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--grad-mesh);
    opacity: 0.5;
    pointer-events: none;
}
.benefits > .container { position: relative; z-index: 1; }
.benefit-card {
    padding: 28px;
    height: 100%;
    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 280ms ease;
    position: relative;
    overflow: hidden;
}
.benefit-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 22px 50px -18px color-mix(in srgb, var(--brand) 32%, transparent),
        0 8px 20px -8px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--border-2));
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-card:hover .benefit-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow:
        var(--shadow-brand),
        0 8px 22px -6px color-mix(in srgb, var(--brand) 50%, transparent);
}
.benefit-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-brand);
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 380ms ease;
}
.benefit-icon .ic svg { width: 22px; height: 22px; }
.benefit-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.benefit-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 32px 24px;
    font-size: 14px;
    color: var(--text-muted);
}
@media (max-width: 600px) { .footer-inner { flex-direction: column; gap: 8px; text-align: center; } }

/* =========================================================================
   Misc
   ========================================================================= */
.lic-card { padding: 20px; transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease; }
.lic-card:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--shadow-2); }
.ic { display: inline-flex; vertical-align: middle; }
.ic svg { width: 16px; height: 16px; }
.ic.lg svg { width: 22px; height: 22px; }
.text-warning { color: var(--warning); }

/* =========================================================================
   Account layout
   ========================================================================= */
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-grid > * { min-width: 0; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.account-nav-card { padding: 20px; position: sticky; top: 96px; }
.account-greeting { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.account-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}
.account-tabs { display: flex; flex-direction: column; gap: 2px; }
.account-tabs a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px; font-weight: 500;
    transition: background 140ms ease, color 140ms ease;
}
.account-tabs a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.account-tabs a.is-active { background: var(--brand-soft); color: var(--brand); }
.account-tabs a.is-active .ic { color: var(--brand); }
.account-tabs a .pill { margin-left: auto; background: var(--brand); }

/* =========================================================================
   Tickets — fil de discussion
   ========================================================================= */
.thread { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { padding: 18px 20px; }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.msg-head strong { display: inline-flex; align-items: center; gap: 6px; }
.msg-body { color: var(--text-muted); line-height: 1.65; font-size: 14.5px; white-space: pre-wrap; }
.msg-staff { border-color: var(--brand-soft-2); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.msg-staff .msg-head strong { color: var(--brand); }
.msg-internal { border-color: color-mix(in srgb, var(--warning) 30%, transparent); background: color-mix(in srgb, var(--warning) 6%, var(--surface)); }
.msg-internal .msg-head strong { color: var(--warning); }

/* =========================================================================
   Screenshots gallery
   ========================================================================= */
.screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.screenshot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    transition: transform 240ms ease, box-shadow 240ms ease;
}
.screenshot:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.screenshot img { width: 100%; height: auto; display: block; }
.screenshot figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-muted); }
.screenshot-admin img { aspect-ratio: 16 / 9; object-fit: cover; }
.screenshot-admin .ra { padding: 0 14px 14px; }

/* =========================================================================
   Changelog
   ========================================================================= */
.changelog { margin-top: 18px; }
.changelog h2 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.changelog-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.changelog-list li { padding-left: 16px; border-left: 2px solid var(--brand-soft-2); }
.changelog-head { display: flex; align-items: center; gap: 10px; }
.changelog-body { color: var(--text-muted); font-size: 14px; white-space: pre-wrap; margin-top: 6px; line-height: 1.6; }

/* =========================================================================
   Reviews (premium)
   ========================================================================= */
.reviews-block { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.reviews-header { display: flex; align-items: center; gap: 12px; }
.reviews-header h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.reviews-count { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

.rating-stars { letter-spacing: 2px; display: inline-flex; gap: 1px; }
.rating-stars .star { color: var(--border-2); font-size: 16px; line-height: 1; }
.rating-stars.lg .star { font-size: 26px; }
.rating-stars .star.filled { color: var(--star); text-shadow: 0 0 14px color-mix(in srgb, var(--star) 35%, transparent); }

.reviews-summary {
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.reviews-summary::before {
    content: "";
    position: absolute; top: -30%; left: -10%;
    width: 260px; height: 260px;
    background: radial-gradient(circle, color-mix(in srgb, var(--star) 30%, transparent), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}
.reviews-summary > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .reviews-summary { grid-template-columns: 1fr; gap: 18px; } }
.reviews-score { text-align: center; padding: 16px; border-right: 1px solid var(--border); }
@media (max-width: 700px) { .reviews-score { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 18px; } }
.score-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--star), color-mix(in srgb, var(--star) 70%, var(--brand)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.score-max { font-size: 24px; color: var(--text-soft); font-weight: 600; margin-left: 2px; -webkit-text-fill-color: var(--text-soft); }

.reviews-distribution { display: flex; flex-direction: column; gap: 8px; }
.dist-row {
    display: grid; grid-template-columns: 28px 1fr 36px; gap: 10px; align-items: center;
    text-decoration: none; color: var(--text-muted); padding: 2px 4px; border-radius: 8px;
    transition: background 140ms ease;
}
.dist-row:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.dist-label { font-weight: 600; font-size: 13px; color: var(--text); }
.dist-bar {
    height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
    border: 1px solid var(--border);
}
.dist-bar-fill {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--star), color-mix(in srgb, var(--star) 60%, var(--accent-2)));
    border-radius: 999px;
    transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dist-count { text-align: right; font-variant-numeric: tabular-nums; }

.review-form-card { padding: 24px; }
.review-cta { padding: 24px; text-align: center; }
.reviews-subtitle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.rating-input-block { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rating-input-block .form-label { margin-bottom: 2px; }

.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rating-input input[type="radio"] {
    position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.rating-input .star-label {
    color: var(--border-2); font-size: 36px; line-height: 1;
    cursor: pointer; transition: color 120ms ease, transform 140ms ease;
}
.rating-input .star-label:hover { transform: scale(1.15); }
.rating-input input[type="radio"]:checked ~ .star-label,
.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label {
    color: var(--star);
}

.reviews-list-wrap { margin-top: 4px; }
.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.reviews-toolbar .reviews-subtitle { margin: 0; }

.reviews-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review {
    display: grid; grid-template-columns: 44px 1fr; gap: 14px;
    padding: 20px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface);
    transition: border-color 220ms ease, box-shadow 220ms ease;
}
.review:hover { border-color: var(--border-2); box-shadow: var(--shadow-1); }
.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-1);
}
.review-body { display: flex; flex-direction: column; gap: 6px; }
.review-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-author { font-size: 15px; }
.review-date { margin-left: auto; }
.review-text { color: var(--text); white-space: pre-wrap; margin: 4px 0 0; line-height: 1.65; }

/* =========================================================================
   Forum / community redirect (placeholder cards possibles)
   ========================================================================= */
.forum-cat { padding: 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.forum-cat:hover { text-decoration: none; }
.forum-feed { list-style: none; padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.forum-feed li:not(:last-child) { padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* =========================================================================
   Invoice (printable)
   ========================================================================= */
.invoice-page .invoice { padding: 40px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.invoice-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.invoice-table { margin-top: 12px; }
.invoice-table tfoot th { background: var(--surface-2); font-weight: 700; padding: 14px 18px; border-top: 2px solid var(--border-2); }
.invoice-table .danger { color: var(--danger); }

@media print {
    .no-print, .nav, .footer { display: none !important; }
    body { background: white !important; }
    .invoice { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
    .container { padding: 0 !important; }
}

/* =========================================================================
   License test result block
   ========================================================================= */
.license-test-result { padding: 14px 0 0; border-top: 1px solid var(--border); margin-top: 14px; }
.api-raw {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--text);
    overflow-x: auto;
    margin: 8px 0 0;
}
details summary { cursor: pointer; user-select: none; }

/* =========================================================================
   Auth modals (overlay)
   ========================================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(8, 8, 30, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 220ms ease;
}
.modal-backdrop:not([hidden]) { opacity: 1; }
.modal-backdrop[hidden] { display: none !important; }
.modal {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    box-shadow: var(--shadow-3);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    animation: modalIn 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h2 { margin: 0 0 4px; font-size: 24px; }
.modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    display: grid; place-items: center;
    transition: background 140ms ease, color 140ms ease;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal [data-modal-error] { margin-top: 14px; }
body.modal-open { overflow: hidden; }

/* =========================================================================
   Profile page (avatar + bio)
   ========================================================================= */
.profile-page {
    /* Pas de display:contents — sinon les enfants flow dans .account-grid (2-col)
       et profile-grid atterrit dans la sidebar (260px). */
    min-width: 0;
}

/* ============== Hero header card (gradient bg + avatar + stats) ============== */
.profile-hero-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2);
}
.profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 35%, transparent) 0%, transparent 45%),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 50%),
        linear-gradient(135deg, var(--brand-soft), transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}
[data-theme="dark"] .profile-hero-bg {
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 50%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 55%),
        linear-gradient(135deg, rgba(58, 44, 216, 0.18), transparent 60%);
    opacity: 1;
}
.profile-hero-content {
    position: relative;
    padding: 36px 32px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.profile-avatar-block { flex-shrink: 0; }
.profile-avatar-ring {
    width: 130px; height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad-brand);
    box-shadow:
        0 18px 50px -16px color-mix(in srgb, var(--brand) 60%, transparent),
        0 8px 18px -6px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-avatar-ring::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--brand), var(--accent), var(--accent-2), var(--brand));
    filter: blur(16px);
    opacity: 0.45;
    z-index: -1;
    animation: profileAvatarGlow 8s linear infinite;
}
@keyframes profileAvatarGlow { to { transform: rotate(360deg); } }
.profile-avatar-ring:hover { transform: scale(1.04); }
.profile-avatar-img,
.profile-avatar-fallback {
    width: 100%; height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface);
}
.profile-avatar-fallback {
    display: grid; place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.profile-hero-meta { flex: 1; min-width: 0; }
.profile-hero-name {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.profile-hero-email {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.profile-hero-email .ic svg { width: 14px; height: 14px; }
.profile-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
}
.profile-badge .ic svg { width: 13px; height: 13px; }
.profile-badge-role {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

/* Stats inline en bas du hero */
.profile-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.profile-stat {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: background 200ms ease;
}
.profile-stat + .profile-stat { border-left: 1px solid var(--border); }
.profile-stat:hover {
    background: color-mix(in srgb, var(--brand) 5%, transparent);
    text-decoration: none;
}
.profile-stat-v {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.profile-stat-l {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 700px) {
    .profile-hero-content { padding: 24px 20px 18px; gap: 18px; justify-content: center; text-align: center; }
    .profile-hero-meta { text-align: center; }
    .profile-hero-badges { justify-content: center; }
    .profile-avatar-ring { width: 110px; height: 110px; }
    .profile-stats { grid-template-columns: repeat(3, 1fr); }
    .profile-stat { padding: 14px 8px; align-items: center; text-align: center; }
}

/* ============== Two-column grid : Avatar | Identity ============== */
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.profile-grid > * { min-width: 0; }
@media (max-width: 980px) {
    .profile-grid { grid-template-columns: 1fr; }
}

.profile-card-avatar,
.profile-card-form {
    padding: 24px;
    min-width: 0;
}
.profile-card-form .grid.grid-2 { min-width: 0; }
.profile-card-form .grid.grid-2 > * { min-width: 0; }
.profile-card-form input,
.profile-card-form textarea,
.profile-card-form select {
    width: 100%;
    box-sizing: border-box;
}
.profile-card-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.profile-card-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}
.profile-card-head h2 .ic svg {
    width: 17px; height: 17px;
    color: var(--brand);
}
.profile-card-head p { margin: 0; }

/* ============== Avatar dropzone (drag-and-drop + click) ============== */
.avatar-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px dashed var(--border-2);
    border-radius: 16px;
    background: var(--surface-2);
    cursor: pointer;
    transition:
        border-color 240ms ease,
        background 240ms ease,
        transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.avatar-dropzone:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
    transform: translateY(-1px);
}
.avatar-dropzone.is-dragover {
    border-color: var(--brand);
    background: var(--brand-soft);
    transform: scale(1.01);
}
.avatar-dropzone-preview {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 50%, transparent);
}
.avatar-dropzone-preview img { width: 100%; height: 100%; object-fit: cover; }
.dropzone-preview-fb {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
}
.avatar-dropzone-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.avatar-dropzone-body strong {
    font-size: 14px;
    color: var(--text);
    line-height: 1.3;
}
.avatar-dropzone-body small { font-size: 12.5px; line-height: 1.4; }
.avatar-dropzone-filename {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--brand);
    font-weight: 600;
    display: none;
}
.avatar-dropzone-filename.is-visible { display: block; }

/* Bouton "Supprimer l'avatar" en texte rouge subtil */
.btn-text-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    color: var(--danger);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 160ms ease;
}
.btn-text-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-text-danger .ic svg { width: 14px; height: 14px; }

/* ============== Form inputs : groupes label/input élégants ============== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-group .input-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.005em;
}
.input-group input,
.input-group textarea,
.input-group select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    transition:
        border-color 200ms ease,
        background 200ms ease,
        box-shadow 220ms ease;
}
.input-group input:hover,
.input-group textarea:hover,
.input-group select:hover {
    border-color: var(--border-2);
}
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.input-group small { font-size: 12.5px; }

.profile-bio {
    background: var(--surface-2);
    border-left: 3px solid var(--brand);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Avatar in navbar / cards (compat) */
.user-avatar-mini {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
/* Legacy compat fallbacks (au cas où d'autres vues utilisent encore les anciens noms) */
.profile-card { padding: 28px; }
.profile-hero { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.profile-avatar-wrap { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-brand); position: relative; }
.profile-meta h2 { margin: 0 0 4px; font-size: 24px; }

/* Avatar in navbar / cards */
.user-avatar-mini {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

/* =========================================================================
   Hero compact (utilisé sur custom-development)
   ========================================================================= */
.hero.hero-compact { padding: 72px 0 56px; }
.hero.hero-compact .hero-title { font-size: clamp(32px, 4.5vw, 48px); max-width: 760px; }

/* =========================================================================
   Scroll reveal — animation au scroll (avec stagger cascade via --reveal-i)
   ========================================================================= */
.reveal {
    --reveal-i: 0;
    --reveal-step: 80ms;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-i) * var(--reveal-step));
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Cap le stagger à 8 enfants pour éviter une attente longue sur de grosses listes */
.reveal { --reveal-step: 70ms; }
.reveal:nth-child(n + 9) { --reveal-i: 8; }

/* =========================================================================
   Tickets — chat bubbles
   ========================================================================= */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 18px;
}
.ticket-id {
    font-family: "JetBrains Mono", monospace;
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ticket-subject {
    margin: 4px 0 12px;
    font-size: clamp(20px, 2.4vw, 28px);
}
.ticket-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}
.meta-pill strong { color: var(--text); }
.meta-pill.priority-low    { background: var(--surface-2); }
.meta-pill.priority-normal { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft-2); }
.meta-pill.priority-high   { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 24%, transparent); }
.meta-pill.priority-urgent {
    background: var(--danger-soft); color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 30%, transparent);
    animation: pulseUrgent 2s ease-in-out infinite;
}
@keyframes pulseUrgent {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 35%, transparent); }
    50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 0%, transparent); }
}
.ticket-status { font-size: 13px; padding: 6px 14px; }

.ticket-thread {
    display: flex; flex-direction: column;
    gap: 16px;
    padding: 6px 0;
}
.bubble-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-row > .bubble-avatar { flex-shrink: 0; }
.bubble-row > .bubble {
    flex: 1 1 auto;
    min-width: 0;          /* indispensable pour que le text-wrap fonctionne dans un flex item */
    max-width: 720px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.bubble-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: var(--shadow-1);
}
.bubble-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bubble-avatar.is-staff { background: var(--grad-brand); }

.bubble {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-1);
    max-width: 100%;
    position: relative;
}
.bubble-row.mine .bubble {
    background: var(--brand-soft);
    border-color: var(--brand-soft-2);
}
.bubble.is-staff {
    border-color: var(--brand-soft-2);
    background: linear-gradient(135deg, var(--brand-soft), var(--surface));
}
.bubble.is-internal {
    background: color-mix(in srgb, var(--warning) 8%, var(--surface));
    border-color: color-mix(in srgb, var(--warning) 30%, transparent);
    border-style: dashed;
}
.bubble-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.bubble-head strong { color: var(--text); }
.bubble-time { margin-left: auto; color: var(--text-soft); font-size: 12px; }
.bubble-body {
    color: var(--text);
    line-height: 1.65;
    font-size: 14.5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.badge.mini { font-size: 10.5px; padding: 2px 7px; }

.bubble-attachments {
    display: flex; flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.attachment-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.attachment-chip:hover {
    background: var(--brand-soft);
    border-color: var(--brand-soft-2);
    transform: translateY(-1px);
    text-decoration: none;
}
.att-name { font-weight: 500; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { white-space: nowrap; }

/* Zone de réponse */
.reply-box { padding: 22px; }
.reply-box textarea { min-height: 130px; }
.attachment-upload {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface-2);
    border: 1px dashed var(--border-2);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text-muted);
    transition: background 140ms ease, border-color 140ms ease;
}
.attachment-upload:hover {
    background: var(--brand-soft);
    border-color: var(--brand-soft-2);
    color: var(--brand);
}
.attachment-upload input[type=file] {
    margin-top: 4px;
    background: transparent;
    border: 0;
    padding: 0;
}

@media (max-width: 700px) {
    .ticket-header { flex-direction: column; }
    .bubble-row, .bubble-row.mine { flex-direction: row; }
    .bubble-avatar { width: 36px; height: 36px; font-size: 13px; }
    .bubble-row > .bubble { max-width: none; }
}

/* =========================================================================
   ✨ Premium micro-interactions
   ========================================================================= */

/* Fade-in de la page à l'arrivée */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
body { animation: pageFadeIn 400ms cubic-bezier(0.16, 1, 0.3, 1); }

/* Custom scrollbar branded */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-lo) 100%);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--brand-hi); }

/* Focus rings refinés (accessibilité + polish) — double ring : outline + soft glow */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent);
    transition: box-shadow 200ms ease;
}
/* Inputs : focus plus immersif (l'outline outline-offset crée un anneau autour) */
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline-offset: 1px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
/* Boutons : pas de double outline (déjà géré via .btn:focus-visible) */
.btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* --- Spotlight au curseur sur les cartes --- */
.card-spotlight { position: relative; isolation: isolate; }
.card-spotlight::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--sx, 50%) var(--sy, 50%),
        color-mix(in srgb, var(--brand) 22%, transparent),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    z-index: 0;
}
.card-spotlight:hover::before { opacity: 1; }
.card-spotlight > * { position: relative; z-index: 1; }

/* --- 3D tilt sur cartes (data-tilt) --- */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
[data-tilt].is-tilting { transition: transform 60ms linear; }
[data-tilt] .tilt-layer { transform: translateZ(20px); transition: transform 220ms; }

/* --- Hero title : gradient animé (slow color shift) --- */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.hero-title em {
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

/* --- Compteur stat : style monospace tabular --- */
[data-count], [data-vote-count] { font-variant-numeric: tabular-nums; }

/* =========================================================================
   ✨ "Comment ça marche" — étapes connectées
   ========================================================================= */
.how-it-works {
    padding: 80px 0;
    position: relative;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-soft-2), var(--brand), var(--accent));
    border-radius: 999px;
    z-index: 0;
    opacity: 0.5;
}
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .steps::before { display: none; }
}
.step {
    position: relative;
    text-align: center;
    z-index: 1;
}
.step-bullet {
    width: 76px; height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-2);
    display: grid; place-items: center;
    color: var(--brand);
    box-shadow: var(--shadow-2);
    position: relative;
    z-index: 2;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), border-color 320ms;
}
.step:hover .step-bullet {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--brand);
}
.step-bullet::after {
    content: attr(data-step);
    position: absolute;
    top: -8px; right: -8px;
    width: 28px; height: 28px;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-brand);
}
.step-bullet svg { width: 32px; height: 32px; }
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* =========================================================================
   ✨ Témoignages marquee
   ========================================================================= */
.testimonials {
    padding: 64px 0;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, var(--surface) 30%, var(--surface) 70%, transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 50s linear infinite;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.testimonials:hover .testimonials-track { animation-play-state: paused; }
.testimonial {
    width: 360px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-1);
}
.testimonial-quote {
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 14px;
    font-style: italic;
}
.testimonial-quote::before { content: "“"; color: var(--brand); font-size: 32px; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 12.5px; color: var(--text-muted); }
.testimonial-stars { color: var(--star); letter-spacing: 1px; font-size: 13px; margin-bottom: 8px; }

/* =========================================================================
   ✨ Newsletter banner
   ========================================================================= */
.newsletter {
    padding: 60px 0;
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(123, 102, 255, 0.18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(34, 211, 238, 0.10), transparent 60%),
        linear-gradient(135deg, #11132a, #1a1066);
    color: #fff;
    border-radius: 24px;
    margin: 40px 24px;
}
.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}
@media (max-width: 900px) { .newsletter-inner { grid-template-columns: 1fr; } }
.newsletter h2 {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 8px;
}
.newsletter p { color: rgba(255, 255, 255, 0.78); margin: 0 0 4px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type=email] {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font: inherit;
}
.newsletter input[type=email]::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter input[type=email]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
}

/* =========================================================================
   ✨ Confetti canvas
   ========================================================================= */
.confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Liens : underline animation */
a.fancy-link {
    position: relative;
    text-decoration: none;
}
a.fancy-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
a.fancy-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================================
   ⌘K Command palette
   ========================================================================= */
.cmdk {
    position: fixed; inset: 0;
    z-index: 100;
    background: rgba(8, 8, 30, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    align-items: start;
    justify-items: center;
    padding: 12vh 20px 20px;
    opacity: 0;
    transition: opacity 200ms ease;
}
.cmdk[hidden] { display: none !important; }
.cmdk:not([hidden]) { opacity: 1; }
.cmdk-modal {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: cmdkIn 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cmdkIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cmdk-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.cmdk-header .ic { color: var(--text-soft); }
.cmdk-header input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: 0;
    padding: 4px 0;
}
.cmdk-header input::placeholder { color: var(--text-soft); }
.cmdk-header kbd {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-muted);
}
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.cmdk-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    padding: 10px 12px 6px;
    font-weight: 600;
}
.cmdk-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    transition: background 120ms ease;
}
.cmdk-item:hover { text-decoration: none; }
.cmdk-item.is-active, .cmdk-item:hover {
    background: var(--brand-soft);
    color: var(--brand);
}
.cmdk-item.is-active .cmdk-ico,
.cmdk-item:hover .cmdk-ico { color: var(--brand); }
.cmdk-ico {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text-muted);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.cmdk-text { flex: 1; min-width: 0; }
.cmdk-text strong { display: block; font-size: 14px; }
.cmdk-text small { font-size: 12px; color: var(--text-muted); display: block; }
.cmdk-kbd {
    font-size: 11px;
    color: var(--text-soft);
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-2);
}
.cmdk-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}
.cmdk-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-soft);
}
.cmdk-footer kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: inherit;
    font-size: 11px;
    color: var(--text);
    margin-right: 4px;
}

/* Nav: badge ⌘K */
.nav-cmdk-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 12px 7px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
    line-height: 1;
}
.nav-cmdk-btn:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-2);
    transform: translateY(-1px);
}
.nav-cmdk-btn .ic svg { width: 15px; height: 15px; }
.nav-cmdk-btn .nav-cmdk-label {
    font-weight: 500;
    margin-right: 4px;
}
.nav-cmdk-btn kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* Compact ≤1280px : on cache juste le label et le kbd, l'icône reste */
@media (max-width: 1280px) {
    .nav-cmdk-btn .nav-cmdk-label,
    .nav-cmdk-btn kbd { display: none; }
    .nav-cmdk-btn {
        width: 38px; height: 38px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .nav-cmdk-btn .ic svg { width: 16px; height: 16px; }
}
@media (max-width: 900px) { .nav-cmdk-btn { display: none; } }

/* =========================================================================
   📌 Sticky CTA bar (fiche extension)
   ========================================================================= */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.sticky-cta-info { flex: 1; min-width: 0; }
.sticky-cta-name { font-weight: 600; font-size: 15px; }
.sticky-cta-price {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 18px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================================================
   📈 Stagger reveal (cartes en grille)
   ========================================================================= */
.grid > .reveal { transition-delay: 0ms; }
.grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2) { transition-delay: 80ms; }
.grid > .reveal:nth-child(3) { transition-delay: 160ms; }
.grid > .reveal:nth-child(4) { transition-delay: 240ms; }
.grid > .reveal:nth-child(5) { transition-delay: 320ms; }
.grid > .reveal:nth-child(6) { transition-delay: 400ms; }

/* =========================================================================
   📏 Reading progress bar
   ========================================================================= */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 200;
    pointer-events: none;
}
.progress-bar-fill {
    height: 100%;
    background: var(--grad-text);
    width: 0%;
    transition: width 80ms linear;
    box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 60%, transparent);
}

/* =========================================================================
   📊 Sparkline (mini chart admin)
   ========================================================================= */
.sparkline {
    width: 100%;
    height: 60px;
    display: block;
    /* `color: brand` permet à currentColor dans le gradient SVG de résoudre correctement
       (les CSS custom properties ne marchent pas toujours dans stop-color SVG selon les
       navigateurs — currentColor est le pattern fiable). */
    color: var(--brand);
    overflow: visible;
}
.sparkline polyline.line,
.sparkline path.line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--brand) 35%, transparent));
}
.sparkline path.area {
    fill: url(#sparkline-grad);
}
.sparkline circle.last {
    fill: var(--brand);
    stroke: var(--surface);
    stroke-width: 2;
    animation: sparklinePulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand) 60%, transparent));
}

/* État vide : aucune vente sur 30j */
.sparkline-empty {
    padding: 32px 16px;
    text-align: center;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sparkline-empty .ic svg {
    width: 28px;
    height: 28px;
    color: var(--brand);
    opacity: 0.6;
    margin-bottom: 4px;
}
.sparkline-empty p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.sparkline-empty small {
    font-size: 12.5px;
    line-height: 1.4;
}
@keyframes sparklinePulse {
    0%, 100% { r: 4; }
    50%      { r: 6; }
}

/* =========================================================================
   ✅ Animated success check
   ========================================================================= */
.success-check-svg {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    padding: 14px;
    box-shadow: 0 14px 32px -8px rgba(16, 185, 129, 0.55);
    margin-bottom: 16px;
}
.success-check-svg circle {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawCircle 700ms ease-out 200ms forwards;
}
.success-check-svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    animation: drawCheck 380ms ease-out 800ms forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

/* =========================================================================
   🎨 Theme transition fluide
   ========================================================================= */
html, body, .card, .nav-inner, .surface, .table thead th, .meta-pill, .badge {
    transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease;
}

/* View Transitions API (Chromium 111+) */
::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 280ms;
}

/* =========================================================================
   ✓ Extension cards : état "Acheté" (license active de l'user courant)
   ========================================================================= */
.ext-card.is-owned {
    /* Bordure verte subtile pour différencier visuellement */
    border-color: color-mix(in srgb, #48d178 35%, var(--border-2));
}
.ext-card.is-owned:hover {
    border-color: color-mix(in srgb, #48d178 60%, var(--border-2));
    box-shadow:
        0 28px 60px -20px color-mix(in srgb, #48d178 35%, transparent),
        0 12px 24px -10px rgba(0, 0, 0, 0.08);
}
.ext-card.is-owned::before {
    /* Halo vert au hover (override le halo brand par défaut) */
    background: conic-gradient(from 0deg,
        transparent 0%, #48d178 25%,
        #2db35c 50%, #6fdb95 75%,
        transparent 100%);
}

/* Badge "Acheté" en overlay sur la cover (top-right) */
.ext-owned-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 7px;
    background: linear-gradient(135deg, #48d178, #2db35c);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow:
        0 4px 14px -4px color-mix(in srgb, #2db35c 60%, transparent),
        0 0 0 2px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    animation: ownedBadgePulse 2.4s ease-in-out infinite;
}
.ext-owned-badge .ic svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}
@keyframes ownedBadgePulse {
    0%, 100% { box-shadow: 0 4px 14px -4px color-mix(in srgb, #2db35c 60%, transparent), 0 0 0 2px rgba(255, 255, 255, 0.12); }
    50%      { box-shadow: 0 4px 18px -4px color-mix(in srgb, #2db35c 80%, transparent), 0 0 0 4px rgba(72, 209, 120, 0.18); }
}

/* CTA "Voir ma licence" : style cohérent avec la card */
.ext-owned-cta {
    background: color-mix(in srgb, #48d178 10%, var(--surface)) !important;
    color: #2db35c !important;
    border-color: color-mix(in srgb, #48d178 30%, var(--border)) !important;
}
.ext-owned-cta:hover {
    background: color-mix(in srgb, #48d178 18%, var(--surface)) !important;
    color: #2db35c !important;
    border-color: color-mix(in srgb, #48d178 55%, var(--border)) !important;
}
[data-theme="dark"] .ext-owned-cta {
    color: #6fdb95 !important;
}

/* =========================================================================
   🏷️ Tags sur cards d'extension
   ========================================================================= */
.ext-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.ext-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    transition: all 160ms ease;
}
.ext-tag:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
    text-decoration: none;
}
.ext-tag-more {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* =========================================================================
   🔍 Catalog filters — sidebar + chips actives + grid
   ========================================================================= */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.catalog-layout > * { min-width: 0; }
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
}

.catalog-sidebar {
    position: sticky;
    top: 88px;
}
.catalog-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.filter-block { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.filter-label .ic svg { width: 13px; height: 13px; color: var(--brand); }

.filter-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.filter-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.filter-input-sm { padding: 7px 10px; font-size: 13px; flex: 1; min-width: 0; }
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-rating-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.filter-rating-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 160ms ease;
}
.filter-rating-btn:hover {
    background: var(--surface);
    color: var(--text);
}
.filter-rating-btn.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 50%, transparent);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}
.filter-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 160ms ease;
}
.filter-tag-chip:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.filter-tag-chip.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.filter-tag-count {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10.5px;
}
.filter-tag-chip:not(.is-active) .filter-tag-count {
    background: var(--surface);
    color: var(--text-muted);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* Active filters chips above the grid */
.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--brand-soft);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}
.catalog-chip .ic svg { width: 12px; height: 12px; color: var(--brand); }

/* Helper for grid-2-span (used in extension form) */
.grid-2-span { grid-column: 1 / -1; }

/* =========================================================================
   🎟️ Coupons : champ cart + display rabais
   ========================================================================= */
.cart-coupon {
    padding: 16px;
}
.cart-coupon-form .filter-label {
    margin-bottom: 8px;
    display: flex;
}
.cart-coupon-row {
    display: flex;
    gap: 8px;
}
.cart-coupon-row .filter-input {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.cart-coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: color-mix(in srgb, #48d178 12%, transparent);
    border: 1px solid color-mix(in srgb, #48d178 35%, transparent);
    border-radius: 12px;
    flex-wrap: wrap;
}
.cart-coupon-applied strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2db35c;
}
[data-theme="dark"] .cart-coupon-applied strong { color: #6fdb95; }
.cart-coupon-applied strong .ic svg { width: 14px; height: 14px; }

.cart-summary-discount {
    color: #2db35c !important;
    font-weight: 600 !important;
}
[data-theme="dark"] .cart-summary-discount { color: #6fdb95 !important; }
.cart-summary-discount .ic svg { width: 13px; height: 13px; }

/* =========================================================================
   ✨✨✨ SIGNATURE PREMIUM EDITION ✨✨✨
   Refonte visuelle next-level inspirée Linear/Resend/Stripe.
   5 signatures :
     1. Custom cursor (sphère + ring qui suit avec lerp)
     2. Mesh gradient hero (4 blobs colorés orbitants)
     3. Dot spectrum interactif (grid qui réagit au curseur)
     4. Magnetic 3D cards (perspective + spotlight cursor-follow)
     5. Split-text reveal (mot par mot au scroll)
   ========================================================================= */

/* ----- 1. Floating orbs (cercles colorés flottants en fond hero) ------------- */
.xs-orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.xs-orb {
    position: absolute;
    left: var(--orb-x, 50%);
    top: var(--orb-y, 50%);
    width: var(--orb-size, 100px);
    height: var(--orb-size, 100px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color, var(--brand)) 0%, transparent 70%);
    filter: blur(28px) saturate(180%);
    opacity: 0.55;
    animation: orbFloat var(--orb-dur, 18s) ease-in-out infinite;
    animation-delay: calc(var(--orb-i, 0) * -2.5s);
    mix-blend-mode: screen;
}
[data-theme="dark"] .xs-orb {
    opacity: 0.7;
    filter: blur(32px) saturate(200%);
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(40px, -30px) scale(1.15); }
    50%      { transform: translate(-30px, 40px) scale(0.9); }
    75%      { transform: translate(20px, 50px) scale(1.05); }
}

/* ----- 2. Mesh gradient hero (4 blobs colorés qui orbitent, BIEN visible) ---- */
.hero, .roadmap-hero, .hero-compact {
    position: relative;
    isolation: isolate;
}
.hero::before {
    /* Override l'aurora rotative existante par une mesh-gradient multi-blob */
    content: "";
    position: absolute;
    inset: -15%;
    z-index: -2;
    background:
        radial-gradient(45% 55% at 18% 32%, color-mix(in srgb, var(--brand) 95%, transparent) 0%, transparent 60%),
        radial-gradient(40% 45% at 78% 22%, color-mix(in srgb, var(--accent) 85%, transparent) 0%, transparent 65%),
        radial-gradient(50% 60% at 28% 78%, color-mix(in srgb, var(--accent-2) 80%, transparent) 0%, transparent 60%),
        radial-gradient(35% 40% at 82% 72%, color-mix(in srgb, #ff5d8f 70%, transparent) 0%, transparent 60%);
    filter: blur(80px) saturate(160%);
    opacity: 0.8;
    animation: meshOrbit 18s ease-in-out infinite;
}
[data-theme="dark"] .hero::before {
    opacity: 0.95;
    filter: blur(90px) saturate(180%);
}
@keyframes meshOrbit {
    0%, 100% { transform: scale(1) translate(0, 0) rotate(0deg); }
    25%      { transform: scale(1.12) translate(-3%, 2%) rotate(15deg); }
    50%      { transform: scale(1.05) translate(2%, -2%) rotate(-10deg); }
    75%      { transform: scale(1.18) translate(-2%, 3%) rotate(20deg); }
}

/* ----- 3. Dot spectrum canvas (placé sous le contenu hero) -------------------- */
.xs-dot-spectrum {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}
[data-theme="light"] .xs-dot-spectrum { opacity: 0.55; }

/* Le hero a aussi un dot spectrum, qu'on garde au-dessus du mesh gradient */
.hero .xs-dot-spectrum { z-index: -1; }
.roadmap-hero .xs-dot-spectrum,
.hero-compact .xs-dot-spectrum,
.benefits .xs-dot-spectrum { z-index: 0; }

/* ----- 4. Magnetic 3D cards (perspective + spotlight cursor-follow) ----------- */
/* ⚠️ ext-card EXCLU du transform-style: preserve-3d : pas de rotation,
   juste un hover lift + glow premium (voir section dédiée plus bas). */
.benefit-card,
.card.review-cta,
.roadmap-card {
    --card-mx: 50%;
    --card-my: 50%;
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 280ms ease;
    will-change: transform;
}
/* ext-card : préparation des CSS vars (utilisées dans le hover effect) */
.ext-card {
    --card-mx: 50%;
    --card-my: 50%;
    position: relative;
    isolation: isolate;
}
/* Spotlight cursor-follow (overlay sur le card, mix-blend pour effet subtil).
   On utilise ::before en supplément du halo conic existant pour les ext-card,
   et on crée un ::after wrapper pour les autres types qui n'ont pas ::after. */
.benefit-card::after,
.roadmap-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 3;
    background: radial-gradient(
        320px circle at var(--card-mx) var(--card-my),
        color-mix(in srgb, var(--brand) 20%, transparent),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 320ms ease;
    mix-blend-mode: overlay;
}
.benefit-card:hover::after,
.roadmap-card:hover::after {
    opacity: 1;
}
/* =========================================================================
   ✨ EXT-CARD HOVER PREMIUM (sans rotation 3D)
   - Lift translateY -8px + scale 1.01
   - Multi-layer shadow brand-tinted
   - Spotlight cursor-follow ÉLÉGANT (interne au card)
   - Cover image scale 1.08 (Ken Burns)
   - Border brand subtil
   - Gradient mesh interne qui suit le curseur
   ========================================================================= */
.ext-card {
    transition:
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 340ms ease;
}
.ext-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
    box-shadow:
        0 32px 64px -16px color-mix(in srgb, var(--brand) 40%, transparent),
        0 14px 28px -8px color-mix(in srgb, var(--brand) 25%, transparent),
        0 4px 12px -4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 color-mix(in srgb, var(--brand) 15%, transparent);
}

/* Spotlight cursor-follow interne (élégant, suit la souris dans la card) */
.ext-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 3;
    background: radial-gradient(
        350px circle at var(--card-mx) var(--card-my),
        color-mix(in srgb, var(--brand) 16%, transparent) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: soft-light;
}
.ext-card:hover::after {
    opacity: 1;
}

/* Ken Burns zoom sur la cover au hover */
.ext-card:hover .ext-cover img {
    transform: scale(1.08);
    filter: saturate(1.15) brightness(1.05);
}
.ext-card .ext-cover img {
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
                filter 480ms ease;
}
.ext-card:hover .ext-initials {
    transform: scale(1.1);
}
.ext-card .ext-initials {
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Le titre et le prix montent légèrement au hover (parallax subtil) */
.ext-card .ext-name,
.ext-card .ext-price {
    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), color 240ms ease;
}
.ext-card:hover .ext-name {
    color: var(--brand);
    transform: translateY(-1px);
}
.ext-card:hover .ext-price {
    transform: translateY(-1px);
}

/* CTA "Ajouter au panier" : plus lumineux au hover de la card */
.ext-card:hover .btn-primary {
    box-shadow:
        0 12px 32px -8px color-mix(in srgb, var(--brand) 60%, transparent),
        0 4px 12px -2px color-mix(in srgb, var(--brand) 40%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animated gradient border qui apparaît au hover (élégant, pas tape-à-l'œil) */
.ext-card::before {
    /* Override l'ancien halo conic (qui était parfois trop fort) par un border gradient subtil */
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    background: conic-gradient(
        from var(--ext-card-angle, 0deg),
        var(--brand),
        var(--accent),
        var(--accent-2),
        var(--brand)
    );
    opacity: 0;
    filter: blur(8px);
    transition: opacity 480ms cubic-bezier(0.16, 1, 0.3, 1);
    animation: extCardBorderSpin 6s linear infinite;
    animation-play-state: paused;
}
.ext-card:hover::before {
    opacity: 0.6;
    animation-play-state: running;
}
@property --ext-card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes extCardBorderSpin {
    from { --ext-card-angle: 0deg; }
    to   { --ext-card-angle: 360deg; }
}

/* ----- BONUS : Hover lift premium global sur toutes les .card ---------------- */
.card {
    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 280ms ease;
}
/* Lift général : tous les .card hover obtiennent un soulèvement visible.
   Les cards plus spécifiques (ext-card, benefit-card, etc.) écrasent avec leurs propres styles. */
.card:not(.cart-row):not(.profile-card-avatar):not(.profile-card-form):not(.empty):not(.account-nav-card):not(.cart-summary):not(.cart-coupon):not(.legal-content):not(.newsletter-preview):hover {
    transform: translateY(-4px);
    box-shadow:
        0 24px 50px -20px color-mix(in srgb, var(--brand) 25%, transparent),
        0 8px 16px -6px rgba(0, 0, 0, 0.06);
}

/* ----- BONUS : Animation entry des cards (cascade fade-up au load) ----------- */
@media (prefers-reduced-motion: no-preference) {
    .grid > .reveal,
    .roadmap-col-list > .reveal {
        /* Les .reveal ont déjà un fade-up + stagger via initScrollReveal,
           mais on amplifie le translateY initial pour plus de drama */
    }
}

/* ----- 5. Split-text reveal (mot par mot avec stagger cascadé) --------------- */
.xs-split-text {
    /* Le container conserve sa typographie */
}
.xs-word {
    --word-i: 0;
    --word-step: 40ms;
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(3px);
    /* will-change : aide le compositor à finaliser proprement la transition,
       évite les cas rares de "stuck opacity" avec background-clip:text parent. */
    will-change: opacity, transform, filter;
    transition:
        opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 520ms ease;
    transition-delay: calc(var(--word-i) * var(--word-step));
}
.xs-split-text.is-revealed .xs-word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
/* Fallback ultime : si jamais .is-revealed n'arrive pas (cas exotique),
   le texte reste lisible après 3.5s grâce à cette anim de secours. */
@keyframes xsWordSafetyFadeIn {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.xs-split-text:not(.is-revealed) .xs-word {
    animation: xsWordSafetyFadeIn 0.6s ease 3.5s forwards;
}

/* ----- Bonus visual : section dividers animés -------------------------------- */
.section + .section,
.container.section + .container.section {
    position: relative;
}
.container.section::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
    animation: dividerDraw 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-play-state: paused;
}
.container.section.is-visible::before {
    animation-play-state: running;
}
@keyframes dividerDraw {
    to { width: 320px; }
}

/* =========================================================================
   ✨ ::selection custom : highlight texte avec la couleur brand (détail pro)
   ========================================================================= */
::selection {
    background: color-mix(in srgb, var(--brand) 40%, transparent);
    color: var(--text);
    text-shadow: none;
}
::-moz-selection {
    background: color-mix(in srgb, var(--brand) 40%, transparent);
    color: var(--text);
    text-shadow: none;
}
[data-theme="dark"] ::selection {
    background: color-mix(in srgb, var(--brand) 55%, transparent);
    color: #fff;
}

/* =========================================================================
   🌌 Hero cursor aurora : radial glow brand qui suit la souris (Linear-style)
   Utilise un élément DOM `.hero-aurora-cursor` injecté par JS, pour ne PAS
   écraser les ::before/::after existants (grille + aurora animée du hero).
   ========================================================================= */
.hero, .roadmap-hero, .hero-compact {
    --aurora-x: 50%;
    --aurora-y: 50%;
}
.hero-aurora-cursor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        680px circle at var(--aurora-x) var(--aurora-y),
        color-mix(in srgb, var(--brand) 30%, transparent) 0%,
        color-mix(in srgb, var(--accent) 18%, transparent) 25%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: screen;
}
.hero.aurora-active .hero-aurora-cursor,
.roadmap-hero.aurora-active .hero-aurora-cursor,
.hero-compact.aurora-active .hero-aurora-cursor {
    opacity: 1;
}
[data-theme="dark"] .hero-aurora-cursor {
    background: radial-gradient(
        680px circle at var(--aurora-x) var(--aurora-y),
        color-mix(in srgb, var(--brand) 55%, transparent) 0%,
        color-mix(in srgb, var(--accent) 35%, transparent) 25%,
        transparent 60%
    );
}
/* S'assurer que le contenu reste au-dessus de l'aurora */
.hero .container,
.roadmap-hero .container,
.hero-compact .container { position: relative; z-index: 2; }

/* =========================================================================
   ⚡ Top loading bar (style NProgress/YouTube)
   ========================================================================= */
.xs-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 9999;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-2), var(--brand));
    background-size: 300% 100%;
    animation: xsTopBarShimmer 2s linear infinite;
    box-shadow:
        0 0 12px 0 var(--brand),
        0 0 6px 0 var(--accent);
    opacity: 0;
    transition: width 220ms ease-out, opacity 240ms ease;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}
@keyframes xsTopBarShimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* =========================================================================
   🔐 Password field premium : input + œil toggle + strength meter
   ========================================================================= */
.password-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Override le `display:block` du .stack label parent pour préserver le flex */
}
.password-field .password-field-label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    letter-spacing: 0.005em;
}
.password-field-wrap {
    position: relative;
    display: block;
}
.password-field-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 48px 11px 14px;   /* extra right padding pour l'œil */
    border: 1px solid var(--border-2);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14.5px;
    transition:
        border-color 200ms ease,
        background 200ms ease,
        box-shadow 240ms ease;
}
.password-field-wrap input:hover {
    border-color: color-mix(in srgb, var(--brand) 30%, var(--border-2));
}
.password-field-wrap input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* Bouton œil (toggle show/hide) */
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: background 180ms ease, color 180ms ease;
}
.password-toggle:hover {
    background: var(--surface-2);
    color: var(--brand);
}
.password-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.password-toggle-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.password-toggle-show {
    opacity: 1;
    transform: scale(1);
}
.password-toggle-hide {
    opacity: 0;
    transform: scale(0.7);
}
.password-toggle.is-showing .password-toggle-show {
    opacity: 0;
    transform: scale(0.7);
}
.password-toggle.is-showing .password-toggle-hide {
    opacity: 1;
    transform: scale(1);
}

/* Strength meter : barre animée + label */
.password-strength {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.password-strength-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
    position: relative;
}
.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition:
        width 320ms cubic-bezier(0.16, 1, 0.3, 1),
        background 240ms ease,
        box-shadow 240ms ease;
    background: var(--text-muted);
}
.password-strength-fill.is-level-1 { background: linear-gradient(90deg, #ff5d3d, #e84e2e); box-shadow: 0 0 8px -2px rgba(232, 78, 46, 0.5); }
.password-strength-fill.is-level-2 { background: linear-gradient(90deg, #ff9b3d, #ff7a1a); box-shadow: 0 0 8px -2px rgba(255, 122, 26, 0.5); }
.password-strength-fill.is-level-3 { background: linear-gradient(90deg, #ffd166, #ffba2e); box-shadow: 0 0 8px -2px rgba(255, 186, 46, 0.5); }
.password-strength-fill.is-level-4 { background: linear-gradient(90deg, #48d178, #2db35c); box-shadow: 0 0 8px -2px rgba(72, 209, 120, 0.5); }
.password-strength-fill.is-level-5 {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    box-shadow: 0 0 10px -2px color-mix(in srgb, var(--brand) 50%, transparent);
}

.password-strength-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    align-items: center;
}
.password-strength-label > [data-strength-text] { font-weight: 600; }
.password-strength-label > [data-strength-text].is-level-1 { color: #e84e2e; }
.password-strength-label > [data-strength-text].is-level-2 { color: #ff7a1a; }
.password-strength-label > [data-strength-text].is-level-3 { color: #d97915; }
.password-strength-label > [data-strength-text].is-level-4 { color: #2db35c; }
.password-strength-label > [data-strength-text].is-level-5 {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
[data-theme="dark"] .password-strength-label > [data-strength-text].is-level-3 { color: #ffd166; }
[data-theme="dark"] .password-strength-label > [data-strength-text].is-level-4 { color: #6fdb95; }

.password-strength-label > [data-strength-hint] {
    font-size: 11.5px;
    text-align: right;
}

.password-field-hint {
    font-size: 12.5px;
    margin-top: 2px;
}

/* Match feedback (confirm password) */
.password-match {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
    animation: matchFadeIn 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.password-match.is-match {
    color: #2db35c;
    background: color-mix(in srgb, #48d178 12%, transparent);
    border: 1px solid color-mix(in srgb, #48d178 30%, transparent);
}
.password-match.is-mismatch {
    color: #d97915;
    background: color-mix(in srgb, #ff9b3d 12%, transparent);
    border: 1px solid color-mix(in srgb, #ff9b3d 30%, transparent);
}
[data-theme="dark"] .password-match.is-match { color: #6fdb95; }
[data-theme="dark"] .password-match.is-mismatch { color: #ffb86b; }
.password-match-icon {
    display: none;
    place-items: center;
    width: 14px;
    height: 14px;
}
.password-match.is-match .password-match-icon-ok    { display: inline-grid; }
.password-match.is-mismatch .password-match-icon-ko { display: inline-grid; }
@keyframes matchFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Visual feedback sur le input lui-même (subtle border color) */
.password-field-wrap input.is-match {
    border-color: color-mix(in srgb, #48d178 50%, var(--border-2));
    box-shadow: 0 0 0 3px color-mix(in srgb, #48d178 12%, transparent);
}
.password-field-wrap input.is-mismatch {
    border-color: color-mix(in srgb, #ff9b3d 60%, var(--border-2));
    box-shadow: 0 0 0 3px color-mix(in srgb, #ff9b3d 14%, transparent);
}

/* =========================================================================
   ⏳ Loading state pour les buttons submit
   ========================================================================= */
.btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}
.btn.is-loading::before { content: none; }  /* Désactive le shimmer pendant le loading */
.btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnLoadingSpin 700ms linear infinite;
    opacity: 1;
    z-index: 3;
    /* Override le filter du ::after spotlight */
    background: transparent;
    mix-blend-mode: normal;
}
.btn-secondary.is-loading::after,
.btn-ghost.is-loading::after,
.btn-white.is-loading::after {
    border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
    border-top-color: var(--brand);
}
@keyframes btnLoadingSpin {
    to { transform: rotate(360deg); }
}

/* =========================================================================
   ⚖️ Pages légales : contenu HTML enrichi (h2, ul, tables...)
   ========================================================================= */
.legal-content {
    line-height: 1.7;
    font-size: 14.5px;
    padding: 32px;
}
.legal-content h2 {
    font-size: 18px;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 15.5px;
    margin: 20px 0 8px;
    color: var(--text);
}
.legal-content p { margin: 0 0 14px; color: var(--text); }
.legal-content ul, .legal-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
    line-height: 1.8;
}
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: var(--brand); text-decoration: underline; }
.legal-content a:hover { color: var(--brand-hi); }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--brand);
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13.5px;
}
.legal-content table th,
.legal-content table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.legal-content table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--text);
}
.legal-content table tr:last-child td { border-bottom: 0; }

/* =========================================================================
   🍪 Cookie consent banner
   ========================================================================= */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
    pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-3);
}
.cookie-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: cookieBob 3s ease-in-out infinite;
}
@keyframes cookieBob {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
    display: block;
    font-size: 14.5px;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.005em;
}
.cookie-banner-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.cookie-banner-text a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
}
.cookie-banner-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }
    .cookie-banner-icon { font-size: 28px; }
    .cookie-banner-actions { justify-content: center; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* =========================================================================
   🔗 Footer enrichi (liens légaux)
   ========================================================================= */
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 0;
    align-items: center;
    text-align: center;
}
.footer-main p { margin: 0; }
.footer-main p:first-child { font-weight: 600; }
.footer-links {
    display: flex;
    flex-wrap: nowrap;            /* tout sur une ligne */
    justify-content: center;
    align-items: center;
    gap: 14px;                    /* gap horizontal serré */
    padding-top: 12px;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 1100px;             /* élargi pour accommoder 7 items */
    overflow-x: auto;              /* scroll horizontal silencieux sur petit écran */
    scrollbar-width: thin;
}
.footer-links a,
.footer-link-btn {
    white-space: nowrap;           /* chaque item ne se casse pas en plusieurs lignes */
    flex-shrink: 0;
}
/* Sur très petit écran (mobile), on revient à wrap pour ne pas créer
   un scroll horizontal cauchemardesque sur le footer */
@media (max-width: 720px) {
    .footer-links {
        flex-wrap: wrap;
        gap: 4px 14px;
    }
}
.footer-links a,
.footer-link-btn {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
    transition: color 160ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover,
.footer-link-btn:hover { color: var(--brand); }
/* Icônes inline du footer : taille discrète, alignées à mi-hauteur du texte */
.footer-links a svg,
.footer-link-btn svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 160ms ease;
}
.footer-links a:hover svg,
.footer-link-btn:hover svg { opacity: 1; }

/* =========================================================================
   📧 Newsletter : pages publiques (confirmed / unsubscribed) + preview admin
   ========================================================================= */
.newsletter-confirmed-icon,
.newsletter-unsub-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    color: #fff;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.18);
}
.newsletter-confirmed-icon {
    background: linear-gradient(135deg, #48d178, #2db35c);
    box-shadow: 0 12px 32px -10px color-mix(in srgb, #48d178 60%, transparent);
    animation: confirmedPop 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.newsletter-unsub-icon {
    background: linear-gradient(135deg, var(--text-muted), var(--text-soft));
}
.newsletter-confirmed-icon .ic svg,
.newsletter-unsub-icon .ic svg {
    width: 36px; height: 36px;
    stroke-width: 2.5;
}
@keyframes confirmedPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* Admin : aperçu d'une broadcast */
.newsletter-preview {
    background: #fbfbfd;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin-top: 14px;
    color: #1a1f2e;
    line-height: 1.6;
}
[data-theme="dark"] .newsletter-preview {
    background: #f4f5f9;
    color: #1a1f2e;
}
.newsletter-preview p { margin: 0 0 12px; }
.newsletter-preview a { color: var(--brand); }

/* Code coupon en admin table */
.coupon-code {
    background: var(--brand-soft);
    color: var(--brand);
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px;
    letter-spacing: 0.04em;
}

/* =========================================================================
   🚀 Roadmap — kanban 3 colonnes + cartes votables
   ========================================================================= */
.roadmap-hero {
    padding: 64px 0 32px;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 50%),
        radial-gradient(circle at 80% 60%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
        var(--surface);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.roadmap-hero .hero-eyebrow,
.roadmap-hero .hero-title,
.roadmap-hero .hero-subtitle { color: var(--text); }
.roadmap-hero .hero-title {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    max-width: 720px;
    margin: 12px auto 16px;
    font-size: clamp(28px, 4vw, 42px);
}
.roadmap-hero .hero-subtitle {
    max-width: 580px; margin: 0 auto;
    color: var(--text-muted);
}
.roadmap-hero .row-actions { justify-content: center; }

/* Board layout */
.roadmap-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
@media (max-width: 980px) {
    .roadmap-board { grid-template-columns: 1fr; }
}

.roadmap-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.roadmap-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: sticky;
    top: 84px;
    z-index: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.roadmap-col-head h2 {
    margin: 0;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.005em;
}
.roadmap-col-head h2 .ic svg { width: 16px; height: 16px; color: var(--text-muted); }
.roadmap-col-count {
    background: var(--surface);
    color: var(--text-muted);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
}
.roadmap-col[data-col="in_progress"] .roadmap-col-head h2 .ic svg { color: #ff9b3d; }
.roadmap-col[data-col="done"] .roadmap-col-head h2 .ic svg { color: #48d178; }

.roadmap-col-empty {
    padding: 22px 16px;
    text-align: center;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: 14px;
    margin: 0;
}
.roadmap-col-list { display: flex; flex-direction: column; gap: 12px; }

/* Carte d'item */
.roadmap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    transition:
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 220ms ease;
}
.roadmap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--brand) 28%, transparent);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--border-2));
}
.roadmap-card[data-status="in_progress"] {
    border-color: color-mix(in srgb, #ff9b3d 35%, var(--border));
}
.roadmap-card[data-status="in_progress"]::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #ff9b3d, #ff5d3d);
}
.roadmap-card[data-status="done"] {
    opacity: 0.88;
}
.roadmap-card[data-status="done"]::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #48d178, #2db35c);
}

.roadmap-cat {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.roadmap-cat-feature   { background: color-mix(in srgb, var(--brand) 14%, transparent);   color: var(--brand);   border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.roadmap-cat-extension { background: color-mix(in srgb, var(--accent) 14%, transparent);  color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.roadmap-cat-fix       { background: color-mix(in srgb, #ff9b3d 14%, transparent);        color: #d97915;        border-color: color-mix(in srgb, #ff9b3d 30%, transparent); }
.roadmap-cat-docs      { background: color-mix(in srgb, #48d178 14%, transparent);        color: #2db35c;        border-color: color-mix(in srgb, #48d178 30%, transparent); }
[data-theme="dark"] .roadmap-cat-fix  { color: #ffb86b; }
[data-theme="dark"] .roadmap-cat-docs { color: #6fdb95; }

.roadmap-card-title {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.roadmap-card-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.roadmap-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.roadmap-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}
.roadmap-meta-chip .ic svg { width: 11px; height: 11px; }

.roadmap-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.roadmap-vote-form { display: inline; }
.roadmap-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.roadmap-vote-btn:hover {
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    text-decoration: none;
    transform: translateY(-1px);
}
.roadmap-vote-btn svg { transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1); }
.roadmap-vote-btn:hover svg { transform: translateY(-2px); }
.roadmap-vote-btn.is-voted {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 60%, transparent);
}
.roadmap-vote-btn.is-voted:hover {
    background: var(--brand-hi);
    color: #fff;
}
.roadmap-vote-btn.is-voted svg { transform: translateY(-2px); }
.roadmap-vote-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.roadmap-vote-btn.is-bumping {
    animation: roadmapVoteBump 460ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes roadmapVoteBump {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.roadmap-vote-count { line-height: 1; }
.roadmap-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: color-mix(in srgb, #48d178 15%, transparent);
    color: #2db35c;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}
[data-theme="dark"] .roadmap-done-badge { color: #6fdb95; }
.roadmap-done-badge .ic svg { width: 13px; height: 13px; }
.roadmap-suggested-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 50%;
    overflow: hidden;
}
.roadmap-suggester-avatar {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--grad-brand);
    color: #fff;
    display: grid; place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
}
.roadmap-suggester-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.roadmap-suggester-name {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ============== Modale suggestion (namespacée pour éviter le conflit avec
   .modal des auth modals existantes — login/register, line 1968) ============== */
.xs-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}
.xs-modal[hidden] { display: none; }
.xs-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: xsModalFadeIn 240ms ease;
}
.xs-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-3);
    padding: 28px;
    animation: xsModalPop 320ms cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.xs-modal-content h2 {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    letter-spacing: -0.015em;
}
.xs-modal-content h2 .ic svg { color: var(--brand); }
.xs-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: grid; place-items: center;
    transition: background 160ms ease, color 160ms ease;
}
.xs-modal-close:hover { background: var(--surface); color: var(--text); }
@keyframes xsModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes xsModalPop    { from { opacity: 0; transform: scale(0.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Select inline (utilisé dans admin/roadmap_index) */
.select-inline {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
}
.select-inline:hover { background: var(--surface); }
.select-inline:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* =========================================================================
   🎨 Error pages (404 / 403 / 500 / maintenance) — animées on-brand
   ========================================================================= */
.error-page {
    position: relative;
    min-height: calc(100vh - 64px - 80px); /* nav + footer height approx */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
    background:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 50%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
        var(--surface);
}
[data-theme="dark"] .error-page {
    background:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 50%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        var(--surface);
}
.error-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.error-illustration {
    margin: 0 auto 24px;
    width: 100%;
    max-width: 360px;
    color: var(--brand);
}
.error-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--brand) 30%, transparent));
}

/* Code (404 / 403 / 500) — gros chiffres gradient */
.error-code {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    margin: 0 0 12px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}
/* Glitch double-text effect sur le 404 */
.error-code-glitch {
    position: relative;
}
.error-code-glitch::before,
.error-code-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: none;
}
.error-code-glitch::before {
    color: rgba(255, 80, 60, 0.6);
    -webkit-text-fill-color: rgba(255, 80, 60, 0.6);
    animation: errGlitchA 3.6s steps(1) infinite;
}
.error-code-glitch::after {
    color: rgba(80, 200, 255, 0.55);
    -webkit-text-fill-color: rgba(80, 200, 255, 0.55);
    animation: errGlitchB 3.6s steps(1) infinite;
}
@keyframes errGlitchA {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    8%       { transform: translate(-2px, 1px); opacity: 0.8; }
    10%      { transform: translate(0, 0); opacity: 0; }
    52%      { transform: translate(-3px, -1px); opacity: 0.7; }
    54%      { transform: translate(0, 0); opacity: 0; }
}
@keyframes errGlitchB {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    20%      { transform: translate(2px, -1px); opacity: 0.7; }
    22%      { transform: translate(0, 0); opacity: 0; }
    70%      { transform: translate(3px, 1px); opacity: 0.6; }
    72%      { transform: translate(0, 0); opacity: 0; }
}

.error-title {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0 0 12px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.error-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 28px;
    line-height: 1.55;
}
.error-actions {
    justify-content: center;
    margin-bottom: 18px;
}
.error-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.error-hint .ic svg { width: 13px; height: 13px; }

.error-debug {
    margin-top: 24px;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    font-size: 12.5px;
}
.error-debug summary { cursor: pointer; color: var(--text-muted); font-weight: 600; }
.error-debug pre {
    margin: 10px 0 0;
    color: var(--danger);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
}

/* ✨ Étoiles décoratives en fond */
.error-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.error-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.18;
    animation: errStarTwinkle var(--d) ease-in-out infinite alternate;
    animation-delay: calc(var(--d) * -0.6);
    box-shadow: 0 0 4px currentColor;
}
[data-theme="dark"] .error-star { opacity: 0.6; }
@keyframes errStarTwinkle {
    from { opacity: 0.15; transform: scale(0.8); }
    to   { opacity: 0.75; transform: scale(1.2); }
}

/* === 404 : astronaute qui flotte === */
.error-illustration-404 .error-astro {
    transform-origin: 180px 150px;
    animation: errAstroFloat 6s ease-in-out infinite;
}
@keyframes errAstroFloat {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    50%      { transform: translate(8px, -16px) rotate(3deg); }
}
.error-illustration-404 .error-planet {
    animation: errPlanetFloat 8s ease-in-out infinite;
}
@keyframes errPlanetFloat {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-4px, 6px); }
}
.error-illustration-404 .error-orbit {
    animation: errOrbitSpin 18s linear infinite;
    transform-origin: 180px 200px;
}
@keyframes errOrbitSpin { to { transform: rotate(360deg); } }

/* === 403 : cadenas qui pulse + rings === */
.error-illustration-403 .error-shield {
    transform-origin: 120px 120px;
    animation: errShieldShake 4s ease-in-out infinite;
}
@keyframes errShieldShake {
    0%, 8%, 100%   { transform: rotate(0deg); }
    2%             { transform: rotate(-3deg); }
    4%             { transform: rotate(3deg); }
    6%             { transform: rotate(-2deg); }
}
.error-illustration-403 .error-pulse-ring {
    transform-origin: 120px 120px;
    opacity: 0;
    animation: errPulseRing 2.4s ease-out infinite;
}
.error-illustration-403 .error-pulse-ring-2 { animation-delay: 0.8s; }
.error-illustration-403 .error-pulse-ring-3 { animation-delay: 1.6s; }
@keyframes errPulseRing {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* === 500 : engrenages qui tournent + étincelles === */
.error-illustration-500 .error-gear-rotor {
    transform-origin: 0 0;
    animation: errGearSpin 6s linear infinite;
}
.error-illustration-500 .error-gear-rotor-small {
    transform-origin: 0 0;
    animation: errGearSpinFast 3.6s linear infinite reverse;
    /* Tremblote toutes les 3s (engrenage cassé) */
    animation-name: errGearStutter;
    animation-duration: 4s;
    animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1);
}
@keyframes errGearSpin { to { transform: rotate(360deg); } }
@keyframes errGearSpinFast { to { transform: rotate(-360deg); } }
@keyframes errGearStutter {
    0%   { transform: rotate(0deg); }
    40%  { transform: rotate(-200deg); }
    44%  { transform: rotate(-200deg); }
    50%  { transform: rotate(-200deg); }
    52%  { transform: rotate(-180deg); }
    100% { transform: rotate(-360deg); }
}
.error-illustration-500 .error-spark {
    opacity: 0;
    animation: errSparkPop 1.8s ease-out infinite;
    transform-origin: center;
}
.error-illustration-500 .error-spark-1 { animation-delay: 0s;   }
.error-illustration-500 .error-spark-2 { animation-delay: 0.4s; }
.error-illustration-500 .error-spark-3 { animation-delay: 0.8s; }
.error-illustration-500 .error-spark-4 { animation-delay: 1.2s; }
@keyframes errSparkPop {
    0%, 100% { opacity: 0; transform: scale(0.3); }
    20%      { opacity: 1; transform: scale(1.4); }
    50%      { opacity: 0.4; transform: scale(0.8); }
}

/* === Maintenance : server qui dort + Z animés === */
.error-illustration-maintenance .error-server {
    animation: errServerBreathe 3.6s ease-in-out infinite;
    transform-origin: 140px 150px;
}
@keyframes errServerBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.025); }
}
.error-illustration-maintenance .error-led-1 {
    animation: errLedBlink 1.8s ease-in-out infinite;
}
.error-illustration-maintenance .error-led-2 {
    animation: errLedBlink 1.8s ease-in-out infinite 0.9s;
}
@keyframes errLedBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.error-illustration-maintenance .error-z {
    opacity: 0;
    animation: errZFloat 3s ease-out infinite;
}
.error-illustration-maintenance .error-z-1 { animation-delay: 0s; }
.error-illustration-maintenance .error-z-2 { animation-delay: 1s; }
.error-illustration-maintenance .error-z-3 { animation-delay: 2s; }
@keyframes errZFloat {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translate(20px, -40px) scale(1.2); }
}
.error-eta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
}
.error-eta-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 var(--brand);
    animation: errEtaPulse 1.8s ease-out infinite;
}
@keyframes errEtaPulse {
    0%   { box-shadow: 0 0 0 0   color-mix(in srgb, var(--brand) 60%, transparent); }
    70%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 0%, transparent); }
    100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--brand) 0%, transparent); }
}

/* Réduit toutes les animations pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    .error-page * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================================
   🍞 Toast notifications (cart add, etc.)
   ========================================================================= */
.toast-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-3);
    color: var(--text);
    font-size: 13.5px;
    animation: toastIn 360ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right center;
}
.toast.is-leaving {
    animation: toastOut 280ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}
.toast-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
}
.toast-icon .ic svg { width: 18px; height: 18px; }
.toast.toast-error .toast-icon { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.toast.toast-info  .toast-icon { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.toast-body { flex: 1; min-width: 0; }
.toast-title {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}
.toast-sub {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.toast-action {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff !important;
    font-weight: 600;
    font-size: 12.5px;
    text-decoration: none;
    transition: background 140ms ease, transform 140ms ease;
}
.toast-action:hover { background: var(--brand-lo); transform: translateY(-1px); text-decoration: none; }
.toast-close {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 140ms ease, color 140ms ease;
}
.toast-close:hover { background: var(--surface-2); color: var(--text); }

/* Animation du badge panier quand on ajoute */
.nav-cart-btn .pill.is-bumping {
    animation: cartBump 460ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cartBump {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* =========================================================================
   ⬆️ Scroll-to-top FAB (apparait après 600px de scroll)
   ========================================================================= */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--grad-brand);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow:
        0 10px 30px -8px color-mix(in srgb, var(--brand) 55%, transparent),
        0 4px 10px -4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 320ms ease,
        box-shadow 320ms ease;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
}
.scroll-top[hidden] { display: grid !important; }
.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scroll-top:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        0 20px 50px -10px color-mix(in srgb, var(--brand) 70%, transparent),
        0 8px 18px -4px color-mix(in srgb, var(--brand) 50%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.scroll-top:active { transform: translateY(0) scale(0.95); }
/* Pulse ring autour du FAB pour attirer l'œil */
.scroll-top::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid var(--brand);
    opacity: 0;
    animation: scrollTopPulse 2.4s ease-out infinite;
    animation-play-state: paused;
}
.scroll-top.is-visible::before { animation-play-state: running; }
@keyframes scrollTopPulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.35); }
}
/* Sur sticky-cta-bar visible (fiche extension), remonte le FAB pour ne pas chevaucher */
.has-sticky-cta .scroll-top { bottom: 80px; }

@media (max-width: 768px) {
    .scroll-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* =========================================================================
   ✨ Admin Dashboard · Outils (grille catégorisée, remplace la barre surchargée)
   ========================================================================= */
.admin-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 24px;
}
@media (max-width: 1100px) { .admin-tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .admin-tools { grid-template-columns: 1fr; } }

.admin-tool-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 14px 8px;
    transition: border-color 200ms ease, box-shadow 220ms ease;
}
.admin-tool-group:hover {
    border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
    box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--brand) 22%, transparent);
}
.admin-tool-group-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 0 10px;
    padding: 0 4px;
}
.admin-tool-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 140ms ease, color 140ms ease, transform 160ms ease;
    margin-bottom: 2px;
}
.admin-tool-link:hover {
    background: color-mix(in srgb, var(--brand-soft) 60%, transparent);
    color: var(--brand);
    transform: translateX(2px);
}
.admin-tool-link svg {
    width: 16px; height: 16px;
    color: var(--text-muted);
    flex: 0 0 auto;
    transition: color 140ms ease;
}
.admin-tool-link:hover svg { color: var(--brand); }
.admin-tool-link.is-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 600;
}
.admin-tool-link.is-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 50%, transparent);
    color: #fff;
}
.admin-tool-link.is-primary svg { color: #fff; }
.admin-tool-link.is-primary:hover svg { color: #fff; }

/* =========================================================================
   ✨ Recommendations ("Souvent acheté avec...")
   ========================================================================= */
.recommendations-section .page-head h2 {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.recommendation-card {
    text-decoration: none;
    color: inherit;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 240ms ease, border-color 200ms ease;
}
.recommendation-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--brand) 30%, transparent);
}
.recommendation-card .ext-card-body { padding: 14px 14px 16px; }
.recommendation-card h3 {
    margin: 0 0 6px; font-size: 15px; font-weight: 600;
}
.recommendation-card .ext-price {
    margin: 8px 0 0; font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grid.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 980px) { .grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.grid-4 { grid-template-columns: 1fr; } }

/* =========================================================================
   📚 AutoFAQ widget — recherche en live des articles d'aide
   ========================================================================= */
.autofaq {
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.autofaq .input-field {
    width: 100%;
    margin-top: 4px;
}
.autofaq-results {
    margin-top: 10px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: fadeIn 200ms ease;
}
.autofaq-results-title { margin: 10px 12px 4px; }
.autofaq-result {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    transition: background 140ms ease;
    border-top: 1px solid var(--border);
}
.autofaq-result:hover { background: var(--brand-soft); color: var(--brand); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* FAQ list (page /faq) */
.faq-list-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 140ms ease, padding 200ms ease;
}
.faq-list-item:last-child { border-bottom: none; }
.faq-list-item:hover { background: var(--brand-soft); color: var(--brand); padding-left: 22px; }

/* =========================================================================
   ☕ Tip jar — widget sur les extensions gratuites
   ========================================================================= */
.tip-jar {
    padding: 16px 18px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--brand) 6%, var(--surface)),
        color-mix(in srgb, var(--accent) 6%, var(--surface)));
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
}
.tip-jar h3 {
    margin: 0 0 6px;
    font-size: 16px;
    display: flex; align-items: center; gap: 8px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tip-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 6px 0;
}
.tip-preset {
    position: relative;
    cursor: pointer;
}
.tip-preset input { position: absolute; opacity: 0; pointer-events: none; }
.tip-preset span {
    display: block; padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 160ms ease;
    user-select: none;
}
.tip-preset:hover span {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    color: var(--brand);
}
.tip-preset input:checked + span {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 50%, transparent);
}
.tip-preset--custom { grid-column: span 3; }
.tip-custom-input input {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 16px;
    text-align: center;
}

/* =========================================================================
   ✨ OAuth (social login) — boutons Google / GitHub
   ========================================================================= */
.oauth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0 12px;
    color: var(--text-muted);
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.oauth-divider::before,
.oauth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}
.oauth-buttons { display: flex; flex-direction: column; gap: 8px; }
.oauth-btn {
    display: inline-flex !important; align-items: center; gap: 10px;
    justify-content: center;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 200ms ease;
}
.oauth-btn:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border)) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 30%, transparent);
}
.oauth-btn svg { flex-shrink: 0; }
.oauth-btn--github svg { color: var(--text); }

/* =========================================================================
   ✨ Account · Référence licence (collapsible, low-key)
   ========================================================================= */
.lic-key-details {
    border-top: 1px dashed var(--border);
    padding-top: 8px;
}
.lic-key-details summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color 140ms ease;
}
.lic-key-details summary::-webkit-details-marker { display: none; }
.lic-key-details summary:hover { color: var(--brand); }
.lic-key-details[open] summary { color: var(--brand); }
.lic-key-details .license-key {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px;
    background: var(--surface-2);
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-block;
    user-select: all; /* Triple-click sélectionne toute la clé */
}

/* =========================================================================
   ✨ Account · Domaine de licence (self-managed, pattern XenForo officiel)
   ========================================================================= */
.lic-domain-block {
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.lic-domain-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    margin-bottom: 6px;
}
.lic-domain-value {
    margin: 4px 0 0;
}
.lic-domain-value code {
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
}
.lic-domain-edit summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.lic-domain-edit summary::-webkit-details-marker { display: none; }
.lic-domain-edit[open] summary {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}
.lic-domain-form {
    display: flex; gap: 8px; margin-top: 8px;
}
.lic-domain-form .input-field {
    flex: 1; min-width: 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-family: ui-monospace, Consolas, monospace;
}
.lic-domain-form .input-field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* =========================================================================
   ✨ Admin · Licences (page /admin/licenses)
   Stats compactes en ligne, filtres groupés en pill, tableau dense polished.
   ========================================================================= */
.lic-admin-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.lic-admin-head h1 {
    margin: 0; font-size: clamp(28px, 3.2vw, 38px);
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Stats : 4 cartes en ligne, format compact */
.lic-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}
@media (max-width: 980px) { .lic-admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lic-admin-stats { grid-template-columns: 1fr; } }

.lic-stat {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 200ms ease;
    overflow: hidden;
    isolation: isolate;
}
.lic-stat::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
    opacity: 0; transition: opacity 280ms ease; z-index: -1;
}
.lic-stat:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--brand) 28%, transparent);
}
.lic-stat:hover::before { opacity: 1; }

.lic-stat-icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}
.lic-stat--active .lic-stat-icon  { background: linear-gradient(135deg, var(--success), color-mix(in srgb, var(--success) 60%, var(--accent))); }
.lic-stat--expired .lic-stat-icon { background: linear-gradient(135deg, var(--warning), color-mix(in srgb, var(--warning) 60%, #ff8a3c)); }
.lic-stat--revoked .lic-stat-icon { background: linear-gradient(135deg, var(--danger), var(--danger-2)); }
.lic-stat--bound .lic-stat-icon   { background: linear-gradient(135deg, var(--brand), var(--accent)); }

.lic-stat-value {
    font-size: 28px; font-weight: 800;
    line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.lic-stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Filtres : pill toolbar */
.lic-admin-filters {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 16px;
}
.lic-admin-filters .lic-search {
    flex: 1 1 280px; min-width: 220px;
}
.lic-admin-filters select,
.lic-admin-filters input[type="text"] {
    height: 38px; padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lic-admin-filters input[type="text"]:focus,
.lic-admin-filters select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.lic-admin-filters select { min-width: 150px; cursor: pointer; }
.lic-admin-filters button[type="submit"] {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 200ms ease;
}
.lic-admin-filters button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 50%, transparent);
}

/* Tableau dense + clé monospace polished */
.lic-admin-table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}
.lic-admin-table table { width: 100%; border-collapse: collapse; }
.lic-admin-table thead th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.lic-admin-table tbody td {
    padding: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    vertical-align: middle;
    font-size: 13.5px;
}
.lic-admin-table tbody tr:last-child td { border-bottom: none; }
.lic-admin-table tbody tr {
    transition: background 140ms ease;
}
.lic-admin-table tbody tr:hover {
    background: color-mix(in srgb, var(--brand-soft) 40%, transparent);
}

.lic-key {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 12px; font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    padding: 5px 9px;
    border-radius: 7px;
    border: 1px solid var(--border);
    display: inline-block;
    letter-spacing: 0.02em;
}
.lic-customer-email { font-weight: 600; }
.lic-customer-name  { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.lic-ext-version    { color: var(--text-muted); font-size: 12px; font-weight: 500; margin-left: 4px; }
.lic-domain {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px;
    background: var(--surface-2);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text);
}
.lic-no-domain { color: var(--text-muted); font-size: 12.5px; font-style: italic; }
.lic-verifies-count {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.lic-verifies-count.is-zero { color: var(--text-muted); font-weight: 400; }
.lic-last-check  { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.lic-action-unbind {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 160ms ease;
}
.lic-action-unbind:hover {
    background: var(--danger-soft);
    border-color: color-mix(in srgb, var(--danger) 40%, transparent);
    color: var(--danger-2);
}

.lic-admin-empty {
    padding: 60px 20px; text-align: center;
    color: var(--text-muted);
}

/* =========================================================================
   Reduce motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
