/* ==========================================================================
   WAR-LAND 2026 - GLOBAL DESIGN SYSTEM (PC & MOBILE RESPONSIVE)
   Style harmonise avec Espace.php (Cartes blanches, bandeaux bleus & or)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #dce7ee;
    background-image:
        linear-gradient(180deg, rgba(241, 246, 250, 0.34) 0%, rgba(235, 241, 232, 0.38) 100%),
        url("../image/Skin1/Interface/bg_army_cartoon.jpg");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #1e293b;
    font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    padding: 0 0 36px 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}
@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }
}

/* Liens globaux */
a {
    color: #005bba;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #003f87;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   CONTENEURS & CARTES 2026 (Meme style que Espace.php)
   ========================================================================== */
.wl-page-container {
    width: 100%;
    max-width: 1160px;
    margin: 7px auto 20px auto;
    padding: 0 10px;
    text-align: left;
}

.wl-page-title-bar {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff;
    border-radius: 9px;
    padding: 5px 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid #ffb533;
    box-shadow: 0 3px 10px rgba(0, 63, 135, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
}
.wl-page-title-bar h1,
.wl-page-title-bar h2 {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.15px;
}
.wl-page-title-bar .wl-page-subtitle {
    font-size: 0.75rem;
    line-height: 1.15;
    color: #dbeafe;
    font-weight: 600;
    margin: 0;
}

.wl-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    margin-bottom: 10px;
    text-align: left;
}

.wl-card-header {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff;
    padding: 5px 11px;
    font-weight: 800;
    font-size: 0.84rem;
    line-height: 1.2;
    border-bottom: 1.5px solid #ffb533;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 0;
}
.wl-card-header a {
    color: #fde047 !important;
    font-weight: 700;
}

.wl-card-body {
    padding: 10px 12px;
    color: #1e293b;
}

/* Grilles responsives */
.wl-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.wl-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.wl-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.wl-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 16px;
}

/* Badges & Pastilles */
.wl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.wl-badge-blue {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.wl-badge-green {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.wl-badge-amber {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.wl-badge-red {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.wl-badge-slate {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.wl-badge-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* ==========================================================================
   SOUS-NAVIGATION (Marche, Classements, Messagerie, etc.)
   ========================================================================== */
.wl-subnav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px auto 8px auto;
    max-width: 1160px;
    padding: 0 8px;
}
a.wl-subnav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 11px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b !important;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.22;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}
a.wl-subnav-tab:hover {
    border-color: #005bba;
    color: #005bba !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 91, 186, 0.12);
}
a.wl-subnav-tab.is-active {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    border-color: #003f87;
    border-bottom: 2px solid #ffb533;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 91, 186, 0.25);
}

/* ==========================================================================
   TABLEAUX 2026 (.wl-table ET tableaux historiques du jeu)
   ========================================================================== */
.wl-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    margin-bottom: 16px;
}

table.wl-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.88rem;
}
table.wl-table th,
table.wl-table thead td {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff !important;
    font-weight: 800;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #ffb533;
    white-space: nowrap;
}
table.wl-table th a,
table.wl-table thead td a {
    color: #fde047 !important;
}
table.wl-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    vertical-align: middle;
}
table.wl-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}
table.wl-table tbody tr:hover td {
    background-color: #eff6ff;
}
table.wl-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Modernisation automatique des tableaux historiques War-Land --- */
body table:not(.wl-espace-layout):not(.style1):not(.style2) {
    border-collapse: collapse;
    max-width: 100%;
}

body table[border="1"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[bgcolor="#000000"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[bgcolor="BLACK"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[bgcolor="#FF9966"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[bgcolor="#FFCC99"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[bgcolor="#FFFFCC"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[bgcolor="#7287a7"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[align="center"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[width="100%"]:not(.wl-espace-layout):not(.style1):not(.style2):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[width="90%"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[width="80%"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[width="350"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[width="500"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[width="600"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)),
body table[cellpadding="10"]:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)) {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 16px;
}

/* Tableaux structurels externes (ex. Espace.php) : aucune marge/bordure au-dessus de l'entete */
body table[style*="table-layout:fixed"],
body table:has(> tbody > tr > td > .wl-header-wrapper),
body table:has(.wl-header-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body table[style*="table-layout:fixed"] > tbody > tr > td,
body table:has(> tbody > tr > td > .wl-header-wrapper) > tbody > tr > td {
    padding: 0 !important;
    border: none !important;
}

/* En-tetes historiques (#FF9966, #006699, #0000FF, #3300FF, MOCCASIN, LIGHTSALMON, #00CCFF, #996633, #0066FF, #66CC00) -> Bandeau Bleu & Or 2026 */
body table:not(.wl-espace-layout) tr[bgcolor="#FF9966"] > td,
body table:not(.wl-espace-layout) tr[bgcolor="#ff9966"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#FF9966"],
body table:not(.wl-espace-layout) td[bgcolor="#ff9966"],
body table:not(.wl-espace-layout) tr[bgcolor="#006699"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#006699"],
body table:not(.wl-espace-layout) tr[bgcolor="#0000FF"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#0000FF"],
body table:not(.wl-espace-layout) tr[bgcolor="#3300FF"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#3300FF"],
body table:not(.wl-espace-layout) tr[bgcolor="MOCCASIN"] > td,
body table:not(.wl-espace-layout) td[bgcolor="MOCCASIN"],
body table:not(.wl-espace-layout) tr[bgcolor="LIGHTSALMON"] > td,
body table:not(.wl-espace-layout) td[bgcolor="LIGHTSALMON"],
body table:not(.wl-espace-layout) tr[bgcolor="#00CCFF"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#00CCFF"],
body table:not(.wl-espace-layout) td[bgcolor="#996633"],
body table:not(.wl-espace-layout) td[bgcolor="#0066FF"],
body table:not(.wl-espace-layout) td[bgcolor="#66CC00"],
body table:not(.wl-espace-layout) td[bgcolor="#CC9933"] {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    border: none !important;
    border-bottom: 2px solid #ffb533 !important;
}

body table:not(.wl-espace-layout) tr[bgcolor="#FF9966"] > td font,
body table:not(.wl-espace-layout) tr[bgcolor="#FF9966"] > td b,
body table:not(.wl-espace-layout) td[bgcolor="#FF9966"] font,
body table:not(.wl-espace-layout) td[bgcolor="#FF9966"] b,
body table:not(.wl-espace-layout) td[bgcolor="#006699"] font,
body table:not(.wl-espace-layout) td[bgcolor="#0000FF"] font,
body table:not(.wl-espace-layout) tr[bgcolor="MOCCASIN"] > td font,
body table:not(.wl-espace-layout) td[bgcolor="MOCCASIN"] font,
body table:not(.wl-espace-layout) tr[bgcolor="LIGHTSALMON"] > td font {
    color: #ffffff !important;
}
body table:not(.wl-espace-layout) tr[bgcolor="#FF9966"] > td a,
body table:not(.wl-espace-layout) td[bgcolor="#FF9966"] a,
body table:not(.wl-espace-layout) td[bgcolor="#006699"] a,
body table:not(.wl-espace-layout) td[bgcolor="MOCCASIN"] a {
    color: #fde047 !important;
    font-weight: 700;
}

/* Lignes de donnees historiques (#FFFFCC, #FFCC66, #CCFFCC, #FFCC99, WHITE) -> Lignes claires 2026 */
body table:not(.wl-espace-layout) tr[bgcolor="#FFFFCC"] > td,
body table:not(.wl-espace-layout) tr[bgcolor="#ffffcc"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#FFFFCC"],
body table:not(.wl-espace-layout) td[bgcolor="#ffffcc"],
body table:not(.wl-espace-layout) td[bgcolor="WHITE"],
body table:not(.wl-espace-layout) td[bgcolor="#FFFFFF"] {
    background-color: #ffffff !important;
    color: #1e293b !important;
    padding: 9px 12px !important;
    border: 1px solid #e2e8f0 !important;
}

body table:not(.wl-espace-layout) tr[bgcolor="#FFCC66"] > td,
body table:not(.wl-espace-layout) tr[bgcolor="#ffcc66"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#FFCC66"],
body table:not(.wl-espace-layout) td[bgcolor="#ffcc66"],
body table:not(.wl-espace-layout) tr[bgcolor="#FFCC99"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#FFCC99"],
body table:not(.wl-espace-layout) tr[bgcolor="#CCFFCC"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#CCFFCC"],
body table:not(.wl-espace-layout) tr[bgcolor="#CCCCCC"] > td,
body table:not(.wl-espace-layout) td[bgcolor="#CCCCCC"] {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    padding: 9px 12px !important;
    border: 1px solid #e2e8f0 !important;
}

body table:not(.wl-espace-layout) tr[bgcolor="#FFFFCC"]:hover > td,
body table:not(.wl-espace-layout) tr[bgcolor="#FFCC66"]:hover > td,
body table:not(.wl-espace-layout) tr[bgcolor="#CCFFCC"]:hover > td {
    background-color: #eff6ff !important;
}

/* ==========================================================================
   FORMULAIRES, BOUTONS & CHAMPS DE SAISIE 2026
   ========================================================================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
    background-color: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 11px;
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    max-width: 100%;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #005bba;
    box-shadow: 0 0 0 3px rgba(0, 91, 186, 0.15);
}

:where(input[type="submit"], input[type="button"], button:not(.wl-filter-btn)),
.wl-btn,
a.wl-btn:link,
a.wl-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff;
    border: 1px solid #003f87;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 91, 186, 0.22);
    transition: all 0.15s ease;
}
:where(input[type="submit"], input[type="button"], button:not(.wl-filter-btn)):hover,
.wl-btn:hover,
a.wl-btn:hover {
    background: linear-gradient(135deg, #0066d1 0%, #004c9e 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 91, 186, 0.3);
}

.wl-btn-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}
.wl-btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}
.wl-btn-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}
.wl-btn-outline,
button.wl-btn-outline,
a.wl-btn-outline,
.wl-btn.wl-btn-outline {
    background: #ffffff !important;
    color: #005bba !important;
    border: 1.5px solid #005bba !important;
    box-shadow: none !important;
}
.wl-btn-outline:hover,
button.wl-btn-outline:hover,
a.wl-btn-outline:hover,
.wl-btn.wl-btn-outline:hover {
    background: #eff6ff !important;
    color: #003f87 !important;
}
.wl-btn-sm {
    padding: 5px 11px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
}

/* Pagination Liste() fenetree 2026 */
.wl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 2px 0;
}
.wl-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #005bba;
    font-weight: 800;
    font-size: 0.78rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.wl-pagination a:hover {
    background: #eff6ff;
    color: #003f87;
    border-color: #005bba;
}
.wl-pagination a.is-active {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff !important;
    border-color: #003f87;
    box-shadow: 0 2px 6px rgba(0, 63, 135, 0.25);
}
.wl-pagination .wl-page-dots {
    color: #64748b;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0 2px;
}
.wl-pagination .wl-page-info {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 4px;
}

/* Barre unifiee ultra-compacte du Marche des Joueurs (Achatv2.php) */
.wl-a2-hdr-kpi {
    font-size: 0.74rem;
    font-weight: 600;
    color: #dbeafe;
    margin-left: 4px;
}
.wl-a2-ctrl-box {
    background: #f1f5f9;
    border-bottom: 1.5px solid #cbd5e1;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wl-a2-cat-rail {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wl-a2-cat-rail::-webkit-scrollbar {
    display: none;
}
.wl-a2-cat-rail a.wl-cat-pill,
.wl-a2-cat-rail a.wl-cat-pill:link,
.wl-a2-cat-rail a.wl-cat-pill:visited {
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: 0.76rem;
    gap: 4px;
}
.wl-a2-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.wl-a2-sub-info {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
}
.wl-a2-prod-rail {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wl-a2-prod-rail::-webkit-scrollbar {
    display: none;
}
a.wl-a2-pchip,
a.wl-a2-pchip:link,
a.wl-a2-pchip:visited {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.14s ease;
}
a.wl-a2-pchip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
a.wl-a2-pchip em {
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0 5px;
    border-radius: 999px;
    line-height: 1.35;
}
a.wl-a2-pchip.is-zero {
    opacity: 0.48;
}
a.wl-a2-pchip:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    opacity: 1;
}
a.wl-a2-pchip.is-active,
a.wl-a2-pchip.is-active:link,
a.wl-a2-pchip.is-active:visited {
    background: #dbeafe !important;
    border-color: #005bba !important;
    color: #003f87 !important;
    box-shadow: 0 1px 4px rgba(0, 91, 186, 0.18);
    opacity: 1;
}
a.wl-a2-pchip.is-active em {
    background: #005bba;
    color: #ffffff;
}
.wl-a2-right-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wl-a2-sort-group {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
a.wl-a2-sort-btn,
a.wl-a2-sort-btn:link,
a.wl-a2-sort-btn:visited {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 0.71rem;
    font-weight: 800;
    color: #334155 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
a.wl-a2-sort-btn.is-active,
a.wl-a2-sort-btn.is-active:link,
a.wl-a2-sort-btn.is-active:visited {
    background: #005bba;
    color: #ffffff !important;
}
button.wl-a2-mine-btn {
    -webkit-appearance: none;
    appearance: none;
    min-height: 28px !important;
    height: 28px;
    padding: 0 8px !important;
    border-radius: 8px !important;
    border: 1px solid #f59e0b !important;
    background: #fffbeb !important;
    color: #b45309 !important;
    font-size: 0.71rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    white-space: nowrap;
}
button.wl-a2-mine-btn.is-active {
    background: #f59e0b !important;
    color: #ffffff !important;
}
input.wl-inv-search.wl-a2-search {
    width: 150px;
    height: 28px !important;
    padding: 2px 9px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
}
.wl-a2-minipager {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 28px;
    padding: 0 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}
.wl-a2-minipager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 22px;
    border-radius: 5px;
    color: #005bba !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 900;
}
.wl-a2-minipager a:hover {
    background: #eff6ff;
}
@media (max-width: 720px) {
    .wl-a2-hdr-kpi {
        display: none;
    }
    .wl-a2-ctrl-box {
        padding: 5px 7px;
        gap: 5px;
    }
    .wl-a2-cat-rail a.wl-cat-pill,
    .wl-a2-cat-rail a.wl-cat-pill:link,
    .wl-a2-cat-rail a.wl-cat-pill:visited {
        padding: 3px 8px;
        font-size: 0.72rem;
    }
    .wl-a2-subbar {
        flex-wrap: wrap;
        gap: 5px;
    }
    .wl-a2-prod-rail {
        flex: 1 1 100%;
        scrollbar-width: none;
        padding-bottom: 0;
    }
    .wl-a2-prod-rail::-webkit-scrollbar {
        display: none;
    }
    a.wl-a2-pchip,
    a.wl-a2-pchip:link,
    a.wl-a2-pchip:visited {
        height: 26px;
        padding: 0 7px;
        font-size: 0.7rem;
    }
    .wl-a2-right-tools {
        flex: 1 1 100%;
        justify-content: space-between;
    }
    input.wl-inv-search.wl-a2-search {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 27px !important;
    }
}

/* Boutons historiques Messagerie (a.ovalbutton) -> Boutons 2026 */
.buttonwrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 8px 0 !important;
}
a.ovalbutton {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%) !important;
    color: #ffffff !important;
    border: 1px solid #003f87 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    height: auto !important;
    line-height: 1.3 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 0.84rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 91, 186, 0.2) !important;
}
a.ovalbutton span {
    background: none !important;
    padding: 0 !important;
    color: #ffffff !important;
}
a.ovalbutton:hover {
    background: linear-gradient(135deg, #0066d1 0%, #004c9e 100%) !important;
}

/* Alertes / Messages de retour d'action */
.wl-alert {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.55;
}
.wl-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.wl-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.wl-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.wl-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLETTE (PC + Mobile)
   ========================================================================== */
@media (max-width: 960px) {
    .wl-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wl-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wl-page-container {
        padding: 0 6px;
        margin: 3px auto 10px auto;
    }
    .wl-page-title-bar {
        padding: 4px 9px;
        border-radius: 8px;
        margin-bottom: 5px;
        border-bottom-width: 1.5px;
        gap: 5px;
    }
    .wl-page-title-bar h1,
    .wl-page-title-bar h2 {
        font-size: 0.84rem;
        line-height: 1.18;
        gap: 5px;
    }
    .wl-page-title-bar .wl-page-subtitle {
        display: none;
    }
    .wl-alert {
        padding: 5px 9px;
        font-size: 0.74rem;
        margin-bottom: 5px;
        border-radius: 8px;
        line-height: 1.25;
    }
    .wl-card {
        border-radius: 9px;
        margin-bottom: 7px;
    }
    .wl-card-header {
        padding: 4px 9px;
        font-size: 0.78rem;
        line-height: 1.18;
        gap: 5px;
    }
    .wl-card-body {
        padding: 7px 8px;
    }
    .wl-grid-2,
    .wl-grid-3,
    .wl-grid-4 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .wl-subnav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
        padding: 0 2px 1px 2px;
        margin: 1px auto 5px auto;
    }
    .wl-subnav::-webkit-scrollbar {
        display: none;
    }
    a.wl-subnav-tab,
    a.wl-subnav-tab:link,
    a.wl-subnav-tab:visited {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 28px;
        padding: 3px 9px;
        font-size: 0.72rem;
        border-radius: 7px;
        text-align: center;
        touch-action: manipulation;
    }
    .wl-btn,
    a.wl-btn:link,
    a.wl-btn:visited,
    button.wl-btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 36px;
        touch-action: manipulation;
    }
    .wl-filter-btn {
        min-height: 32px;
        padding: 4px 10px;
        touch-action: manipulation;
    }
    .wl-warrior-mini-top a.wl-mini-back,
    .wl-warrior-mini-top .wl-mini-pill {
        min-height: 28px;
        padding: 3px 9px;
        font-size: 0.72rem;
        touch-action: manipulation;
    }
    /* Tableaux historiques : adaptation mobile sans debordement */
    body table:not(.wl-espace-layout):not(.style1):not(.style2):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)) {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8rem;
    }
    body :not(#info) > table:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)) > tbody > tr > td,
    body :not(#info) > table:not(.wl-espace-layout):not([style*="table-layout:fixed"]):not(:has(.wl-header-wrapper)) > tbody > tr > th,
    table.wl-table td,
    table.wl-table th {
        padding: 7px 6px !important;
        word-break: break-word;
    }
    body table[style*="table-layout:fixed"] > tbody > tr > td,
    body table:has(> tbody > tr > td > .wl-header-wrapper) > tbody > tr > td {
        padding: 0 !important;
    }
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 15px; /* Evite le zoom automatique iOS */
        padding: 7px 9px;
    }
    /* Messagerie vue scindee responsive sur mobile */
    td[width="40%"],
    td[width="60%"] {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   11. PORTAIL PUBLIC, CONNEXION, INSCRIPTION & PRESENTATION (2026)
   ========================================================================== */
body.wl-portal-body {
    background-color: #061c47;
    background-image:
        linear-gradient(180deg, rgba(6, 24, 62, 0.56) 0%, rgba(9, 34, 84, 0.48) 50%, rgba(4, 16, 42, 0.74) 100%),
        url("../image/Skin1/Interface/bg_army_cartoon.jpg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f8fafc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
@media (max-width: 900px) {
    body.wl-portal-body {
        background-attachment: scroll;
    }
}

.wl-portal-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px 42px 16px;
    box-sizing: border-box;
}

.wl-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(8, 31, 77, 0.86);
    border: 1px solid rgba(255, 181, 51, 0.38);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.wl-portal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}

.wl-portal-brand img {
    height: 58px;
    width: 58px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

.wl-portal-brand-text h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.wl-portal-brand-text span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffb533;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wl-portal-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

a.wl-portal-nav-link,
a.wl-portal-nav-link:link,
a.wl-portal-nav-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none !important;
    transition: all 0.16s ease;
}

a.wl-portal-nav-link:hover {
    background: rgba(255, 181, 51, 0.18);
    border-color: #ffb533;
    color: #ffffff !important;
    transform: translateY(-1px);
}

a.wl-portal-nav-link.active,
a.wl-portal-nav-link.cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.wl-portal-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 91, 186, 0.42) 0%, rgba(4, 20, 52, 0.88) 100%);
    border: 1.5px solid rgba(255, 181, 51, 0.45);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.wl-portal-hero img.wl-hero-banner {
    max-width: 100%;
    height: auto;
    max-height: 175px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    margin-bottom: 10px;
}

.wl-video-showcase {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 460px);
    gap: 20px;
    align-items: center;
}

.wl-video-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    background: #020617;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.wl-video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000000;
}

.wl-portal-stats-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.wl-portal-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #f8fafc;
}

.wl-portal-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 18px;
    align-items: start;
}

.wl-portal-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.wl-portal-card {
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin-bottom: 18px;
}

.wl-portal-card.featured {
    border-color: #ffb533;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 181, 51, 0.22);
}

.wl-portal-card-header {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff;
    padding: 13px 18px;
    font-size: 1.02rem;
    font-weight: 800;
    border-bottom: 2.5px solid #ffb533;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wl-portal-card-body {
    padding: 18px 20px;
}

.wl-form-group {
    margin-bottom: 14px;
    text-align: left;
}

.wl-form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.wl-form-group input[type="text"],
.wl-form-group input[type="password"],
.wl-form-group input[type="email"],
.wl-form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.wl-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wl-pass-wrap input[type="password"],
.wl-pass-wrap input[type="text"] {
    padding-right: 42px;
}

button.wl-pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px !important;
    touch-action: manipulation;
}

button.wl-pass-toggle:hover,
button.wl-pass-toggle.is-visible {
    color: #005bba !important;
    background: rgba(239, 246, 255, 0.9) !important;
}

.wl-portal-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 960px) {
    .wl-portal-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }
    .wl-portal-topbar {
        order: 0;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .wl-portal-brand {
        min-width: 0;
        max-width: 100%;
    }
    .wl-portal-brand-text {
        min-width: 0;
    }
    .wl-portal-grid-3 {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        gap: 14px;
    }
    .wl-portal-login-card {
        order: -1;
    }
    .wl-portal-hero {
        order: 2;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin-top: 14px;
        margin-bottom: 14px;
    }
    .wl-portal-video-card {
        order: 3;
    }
    .wl-portal-footer {
        order: 4;
    }
    .wl-video-showcase,
    .wl-portal-grid-2 {
        grid-template-columns: 1fr;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }
    .wl-portal-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .wl-portal-nav {
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .wl-portal-wrap {
        padding: 8px 10px 28px 10px;
    }
    .wl-auth-wrap {
        padding-top: 14px !important;
    }
    .wl-portal-topbar {
        padding: 8px 10px;
        gap: 8px;
        margin-bottom: 10px;
        border-radius: 14px;
        align-items: stretch;
    }
    .wl-portal-brand {
        justify-content: center;
        gap: 8px;
    }
    .wl-portal-brand img {
        height: 34px;
        width: 34px;
        flex-shrink: 0;
    }
    .wl-portal-brand-text h1 {
        font-size: 1.02rem;
    }
    .wl-portal-brand-text span {
        font-size: 0.60rem;
        white-space: normal;
        line-height: 1.2;
    }
    .wl-portal-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 1px;
    }
    .wl-portal-nav::-webkit-scrollbar {
        display: none;
    }
    a.wl-portal-nav-link,
    a.wl-portal-nav-link:link,
    a.wl-portal-nav-link:visited {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 5px 10px;
        font-size: 0.78rem;
    }
    .wl-portal-card {
        margin-bottom: 0;
        border-radius: 14px;
    }
    .wl-portal-card-header {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .wl-portal-card-body {
        padding: 14px;
    }
    .wl-form-group {
        margin-bottom: 11px;
    }
    .wl-form-group input[type="text"],
    .wl-form-group input[type="password"],
    .wl-form-group input[type="email"],
    .wl-form-group select {
        font-size: 16px;
        padding: 10px 12px;
    }
    .wl-pass-wrap input[type="password"],
    .wl-pass-wrap input[type="text"] {
        padding-right: 42px;
    }
    .wl-portal-hero {
        padding: 12px;
        border-radius: 14px;
    }
    .wl-portal-hero img.wl-hero-banner {
        max-height: 125px;
    }
    .wl-portal-stats-pills {
        gap: 6px;
    }
    .wl-portal-stat-pill {
        font-size: 0.74rem;
        padding: 4px 10px;
    }
}

/* ==========================================================================
   12. TABLEAUX RESPONSIVE EN CARTES MOBILES & BOUTIQUES (2026)
   ========================================================================== */
.wl-inline-buy-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
}
.wl-inline-buy-form input[type="text"],
.wl-inline-buy-form input[type="number"] {
    width: 64px;
    text-align: center;
    font-weight: 700;
    padding: 5px 6px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
}
.wl-qty-group {
    display: inline-flex;
    align-items: stretch;
    height: 34px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wl-qty-group:focus-within {
    border-color: #005bba;
    box-shadow: 0 0 0 3px rgba(0, 91, 186, 0.14);
}
button.wl-qty-btn {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    background: #f8fafc !important;
    color: #334155 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 30px;
    min-width: 30px;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: manipulation;
    box-shadow: none !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}
button.wl-qty-btn:hover {
    background: #eff6ff !important;
    color: #005bba !important;
    transform: none !important;
    box-shadow: none !important;
}
button.wl-qty-btn:active {
    background: #dbeafe !important;
    color: #003f87 !important;
}
.wl-inline-buy-form .wl-qty-group input.wl-qty-input {
    -webkit-appearance: none;
    appearance: textfield;
    width: 42px;
    min-width: 38px;
    flex: 0 0 auto !important;
    height: 100%;
    margin: 0;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
    color: #0f172a;
    background: #ffffff;
    padding: 0 2px !important;
    box-shadow: none !important;
    box-sizing: border-box;
}
.wl-inline-buy-form .wl-qty-group input.wl-qty-input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: none !important;
}
.wl-inline-buy-form .wl-qty-group input.wl-qty-input::-webkit-outer-spin-button,
.wl-inline-buy-form .wl-qty-group input.wl-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wl-inline-buy-form .wl-buy-submit {
    height: 34px;
    padding: 0 14px !important;
    border-radius: 9px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.wl-filter-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 6px;
    text-align: left;
}
.wl-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
a.wl-cat-pill,
a.wl-cat-pill:link,
a.wl-cat-pill:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: all 0.14s ease;
    white-space: nowrap;
}
a.wl-cat-pill:hover {
    border-color: #005bba;
    background: #eff6ff;
    color: #005bba !important;
}
a.wl-cat-pill.is-active,
a.wl-cat-pill.is-active:link,
a.wl-cat-pill.is-active:visited {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%) !important;
    border-color: #003f87 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 91, 186, 0.25);
}
.wl-product-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.wl-product-chip,
a.wl-product-chip:link,
a.wl-product-chip:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.wl-product-chip:hover,
.wl-product-chip.is-active,
a.wl-product-chip.is-active:link,
a.wl-product-chip.is-active:visited {
    border-color: #005bba;
    background: #eff6ff;
    color: #005bba !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 91, 186, 0.18);
}
.wl-product-chip.is-active {
    background: #dbeafe !important;
}
.wl-product-chip img {
    display: block;
    max-height: 28px;
    width: auto;
    flex-shrink: 0;
}
.wl-market-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
@media (max-width: 680px) {
    .wl-market-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin-top: 8px;
    }
    .wl-market-kpis .wl-stat-kpi {
        padding: 4px 6px;
    }
    .wl-market-kpis .wl-stat-kpi-lbl {
        font-size: 0.62rem;
    }
    .wl-market-kpis .wl-stat-kpi-val {
        font-size: 0.76rem;
    }
    .wl-market-kpis .wl-stat-kpi-sub {
        display: none;
    }
    .wl-category-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        margin-bottom: 6px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .wl-category-bar::-webkit-scrollbar,
    .wl-product-strip::-webkit-scrollbar {
        display: none;
    }
    a.wl-cat-pill,
    a.wl-cat-pill:link,
    a.wl-cat-pill:visited {
        padding: 5px 10px;
        font-size: 0.76rem;
    }
    .wl-product-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .wl-product-chip,
    a.wl-product-chip:link,
    a.wl-product-chip:visited {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 4px 8px;
        font-size: 0.74rem;
    }
    .wl-product-chip img {
        max-height: 22px;
    }
    .wl-filter-label {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }
}

@media (max-width: 900px) {
    .wl-table-responsive:has(> table.wl-mobile-cards) {
        overflow-x: visible !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 4px !important;
    }
    table.wl-table.wl-mobile-cards,
    table.wl-table.wl-mobile-cards tbody {
        display: block;
        width: 100%;
    }
    table.wl-table.wl-mobile-cards thead {
        display: none;
    }
    table.wl-table.wl-mobile-cards tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    table.wl-table.wl-mobile-cards tbody tr {
        display: block;
        width: 100%;
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
        border-radius: 12px;
        padding: 10px 12px;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
        box-sizing: border-box;
    }
    table.wl-table.wl-mobile-cards tbody tr:nth-child(even) td,
    table.wl-table.wl-mobile-cards tbody tr:hover td {
        background-color: transparent;
    }
    table.wl-table.wl-mobile-cards td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100% !important;
        box-sizing: border-box;
        padding: 6px 0 !important;
        border-bottom: 1px dashed #e2e8f0;
        text-align: right;
    }
    table.wl-table.wl-mobile-cards td:last-child {
        border-bottom: none;
        padding-bottom: 2px !important;
    }
    table.wl-table.wl-mobile-cards td[data-label]::before {
        content: attr(data-label);
        font-weight: 800;
        font-size: 0.78rem;
        color: #475569;
        text-align: left;
        flex-shrink: 0;
    }
    table.wl-table.wl-mobile-cards td.wl-cell-title {
        justify-content: flex-start;
        text-align: left;
        background: #f1f5f9 !important;
        border-radius: 8px;
        padding: 8px 10px !important;
        margin-bottom: 4px;
        border-bottom: none;
        font-size: 0.94rem;
        gap: 10px;
    }
    table.wl-table.wl-mobile-cards td.wl-cell-title::before {
        display: none;
    }
    table.wl-table.wl-mobile-cards td.wl-cell-full {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 4px;
    }
    table.wl-table.wl-mobile-cards td.wl-cell-action {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 8px;
        padding-top: 8px !important;
    }
    table.wl-table.wl-mobile-cards td.wl-cell-action .wl-inline-buy-form,
    table.wl-table.wl-mobile-cards td.wl-cell-action .wl-btn,
    table.wl-table.wl-mobile-cards td.wl-cell-action select,
    table.wl-table.wl-mobile-cards td.wl-cell-action input[type="submit"] {
        width: 100%;
    }
    table.wl-table.wl-mobile-cards td.wl-cell-action .wl-inline-buy-form input[type="text"] {
        flex: 1;
        min-width: 0;
    }
    table.wl-table.wl-mobile-cards td[colspan] {
        display: block;
        text-align: center;
        border-bottom: none;
    }
    table.wl-table.wl-mobile-cards td[colspan]::before {
        display: none;
    }
    /* Boutiques & marches : action d'achat plus haut et alignee a gauche sur mobile */
    table.wl-table.wl-mobile-cards.wl-shop-table tbody tr {
        display: flex;
        flex-direction: column;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td {
        order: 3;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-title {
        order: 1;
        margin-bottom: 2px;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action {
        order: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 6px 0 8px 0 !important;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 2px;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action::before {
        display: none;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td:nth-last-child(2) {
        border-bottom: none;
        padding-bottom: 2px !important;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action .wl-inline-buy-form {
        display: flex;
        width: auto;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action .wl-buy-submit {
        order: -1;
        width: auto;
        height: 40px;
        min-height: 40px;
        padding: 0 18px !important;
        font-size: 0.92rem !important;
        border-radius: 10px !important;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action .wl-qty-group {
        height: 40px;
        min-height: 40px;
        border-radius: 10px;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action button.wl-qty-btn {
        width: 38px;
        min-width: 38px;
        height: 100%;
        font-size: 1.15rem !important;
    }
    table.wl-table.wl-mobile-cards.wl-shop-table td.wl-cell-action .wl-inline-buy-form .wl-qty-group input.wl-qty-input {
        flex: 0 0 auto !important;
        width: 48px !important;
        min-width: 44px;
        height: 100%;
        font-size: 16px;
        padding: 0 4px !important;
    }
    /* Desactive l'ancienne infobulle flottante sur petit ecran */
    #info {
        display: none !important;
    }
}

/* ==========================================================================
   13. CELLULE PRODUIT, BOUTON DETAILS & MODALE MOBILE-FRIENDLY (2026)
   ========================================================================== */
.wl-prod-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.wl-prod-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wl-prod-thumb {
    max-height: 36px;
    width: auto;
    flex-shrink: 0;
}
.wl-prod-name {
    color: #0f172a;
    word-break: break-word;
}
button.wl-detail-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 10px !important;
    min-height: 30px;
    border-radius: 999px !important;
    border: 1.5px solid #93c5fd !important;
    background: #ffffff !important;
    color: #005bba !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    touch-action: manipulation;
    transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}
button.wl-detail-btn:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #003f87 !important;
    transform: none !important;
}
button.wl-detail-btn:active {
    background: #dbeafe !important;
}

.wl-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.wl-modal-backdrop.is-open {
    display: flex;
    animation: wlFadeIn 0.16s ease-out;
}
@keyframes wlFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.wl-modal-card {
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid #cbd5e1;
}
.wl-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 13px;
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff;
}
.wl-modal-hdr-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.wl-modal-hdr-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.wl-modal-hdr-ico img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.wl-modal-hdr-titles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.wl-modal-hdr-sub {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
}
.wl-modal-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 35%, #eff6ff 0%, #f1f5f9 100%);
    border: 1px solid #dbeafe;
}
.wl-modal-hero-frame {
    width: 128px;
    height: 128px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 40%, #ffffff 50%, #e2e8f0 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(148, 163, 184, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}
.wl-modal-hero-frame img {
    width: 112px;
    height: 112px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.16));
}
.wl-modal-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
button.wl-modal-x {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none !important;
}
button.wl-modal-x:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    transform: none !important;
}
.wl-modal-body {
    padding: 10px 12px;
    overflow-y: auto;
    font-size: 0.82rem;
    line-height: 1.38;
    color: #334155;
}
.wl-modal-body u {
    display: inline-block;
    text-decoration: none;
    color: #005bba;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.wl-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0 3px 0;
}
.wl-modal-body tr {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.wl-modal-body td {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 3px 8px;
    font-size: 0.77rem;
    font-weight: 700;
    color: #1e293b;
}
.wl-modal-body td img {
    max-height: 16px;
    width: auto;
    border-radius: 3px;
}
.wl-modal-ftr {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}
.wl-modal-close-btn {
    min-height: 38px;
    padding: 0 20px !important;
    border-radius: 9px !important;
}

@media (hover: none) {
    #info {
        display: none !important;
    }
}
@media (max-width: 900px) {
    button.wl-detail-btn {
        min-height: 34px;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    .wl-modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }
    .wl-modal-card {
        max-height: 82vh;
        border-radius: 16px;
    }
    .wl-modal-hero {
        padding: 10px;
        margin-bottom: 10px;
    }
    .wl-modal-hero-frame {
        width: 108px;
        height: 108px;
        border-radius: 15px;
    }
    .wl-modal-hero-frame img {
        width: 94px;
        height: 94px;
    }
    .wl-modal-close-btn {
        width: 100%;
        min-height: 42px;
        font-size: 0.95rem !important;
    }
    .wl-modal-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   14. AVATAR VENDEUR & INFORMATIONS D'OFFRE DANS LA MODALE (2026)
   ========================================================================== */
.wl-seller-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.wl-seller-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.wl-seller-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    border-color: rgba(255, 255, 255, 0.7);
}
.wl-seller-name {
    color: #0f172a;
    word-break: break-word;
}
.wl-modal-offer-box {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 6px 7px;
    margin-bottom: 7px;
}
.wl-modal-offer-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #005bba;
    margin-bottom: 5px;
}
.wl-modal-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}
.wl-modal-row-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}
.wl-modal-row-item.is-full-row {
    grid-column: 1 / -1;
}
.wl-modal-row-lbl {
    font-size: 0.61rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #64748b;
    line-height: 1.2;
}
.wl-modal-row-val {
    font-size: 0.77rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    word-break: break-word;
    line-height: 1.25;
}
.wl-modal-desc-box {
    border-top: 1px dashed #cbd5e1;
    padding-top: 6px;
    font-size: 0.76rem;
}
details.wl-modal-desc-toggle {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    overflow: hidden;
}
details.wl-modal-desc-toggle > summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #005bba;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
details.wl-modal-desc-toggle > summary::-webkit-details-marker {
    display: none;
}
details.wl-modal-desc-toggle > summary::after {
    content: "\25BE";
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.15s ease;
}
details.wl-modal-desc-toggle[open] > summary::after {
    transform: rotate(180deg);
}
details.wl-modal-desc-toggle > .wl-modal-desc-box {
    padding: 6px 9px 8px 9px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

/* ==========================================================================
   15. INVENTAIRE EN GRILLE (ventev1.php - 2026)
   ========================================================================== */
.wl-inv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #e2e8f0;
    border-bottom: 1.5px solid #cbd5e1;
}
.wl-card-body > .wl-inv-toolbar {
    border: 1.5px solid #cbd5e1;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
}
.wl-card-body > .wl-inv-grid {
    border: 1.5px solid #cbd5e1;
    border-radius: 0 0 14px 14px;
}
.wl-inv-filters,
.wl-inv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
button.wl-inv-tab {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.14s ease;
}
button.wl-inv-tab:hover {
    border-color: #005bba !important;
    color: #005bba !important;
    background: #dbeafe !important;
    transform: none !important;
}
button.wl-inv-tab.is-active {
    background: #005bba !important;
    color: #ffffff !important;
    border-color: #005bba !important;
}
.wl-inv-search {
    width: 220px;
    max-width: 100%;
    padding: 6px 12px !important;
    font-size: 0.84rem !important;
    border-radius: 999px !important;
    border: 1.5px solid #94a3b8 !important;
    background: #ffffff;
}
.wl-inv-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 14px;
    gap: 10px;
    padding: 10px 12px 12px 12px;
    background: #dbe4f0;
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #e2e8f0;
}
.wl-inv-grid::-webkit-scrollbar {
    height: 8px;
}
.wl-inv-grid::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}
.wl-inv-grid::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 999px;
}
.wl-inv-card {
    flex: 0 0 268px;
    width: 268px;
    max-width: 82vw;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.wl-inv-swipe-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px;
    background: #edf2f7;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    font-size: 0.73rem;
    font-weight: 700;
    color: #475569;
}
.wl-card-body > .wl-inv-swipe-bar {
    border-left: 1.5px solid #cbd5e1;
    border-right: 1.5px solid #cbd5e1;
    border-top: none;
}
.wl-inv-swipe-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
button.wl-inv-nav-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 25px;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1.5px solid #94a3b8 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    touch-action: manipulation;
}
button.wl-inv-nav-btn:hover {
    background: #eff6ff !important;
    border-color: #005bba !important;
    color: #005bba !important;
    transform: none !important;
}
.wl-inv-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 22px rgba(0, 91, 186, 0.18);
}
.wl-inv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 70%, #f8fafc 100%);
    border-bottom: 1.5px solid #93c5fd;
}
.wl-inv-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wl-inv-slot {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 13px;
    background: #ffffff;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.16);
}
.wl-inv-slot img.wl-prod-thumb {
    width: 40px;
    height: 40px;
    max-width: 100%;
    max-height: 42px !important;
    object-fit: contain;
}
.wl-inv-qty-pill {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 2px 7px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    line-height: 1.25;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
}
.wl-inv-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    text-align: left;
}
.wl-inv-title-wrap .wl-prod-name {
    font-size: 1.04rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.wl-inv-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.wl-inv-cat-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
    border-radius: 6px;
    padding: 1px 6px;
}
.wl-inv-form {
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    flex: 1;
    text-align: left;
}
.wl-inv-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.wl-inv-field label {
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}
.wl-inv-select {
    width: 100%;
    height: 34px;
    padding: 4px 8px !important;
    font-size: 0.82rem !important;
    border-radius: 9px !important;
}
.wl-inv-fields-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    align-items: end;
}
.wl-inv-card .wl-qty-group {
    width: 100%;
    height: 34px;
    border-color: #94a3b8;
}
.wl-inv-card .wl-qty-group input.wl-qty-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0;
    height: 100%;
    border: none !important;
    border-left: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0 2px !important;
}
.wl-inv-price-wrap {
    display: flex;
    align-items: center;
    height: 34px;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}
.wl-inv-price-wrap:focus-within {
    border-color: #005bba;
    box-shadow: 0 0 0 3px rgba(0, 91, 186, 0.14);
}
.wl-inv-price-wrap input.wl-inv-price-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: right;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0 6px !important;
}
.wl-inv-price-unit {
    padding: 0 8px 0 4px;
    font-weight: 800;
    font-size: 0.84rem;
    color: #334155;
    background: #e2e8f0;
    height: 100%;
    display: inline-flex;
    align-items: center;
    border-left: 1px solid #cbd5e1;
}
.wl-inv-price-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 1px;
}
.wl-inv-price-chips::-webkit-scrollbar {
    display: none;
}
button.wl-inv-chip-btn {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    white-space: nowrap;
    background: #eef2f7 !important;
    color: #1e293b !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 7px !important;
    padding: 3px 7px !important;
    font-size: 0.71rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: none !important;
    touch-action: manipulation;
}
button.wl-inv-chip-btn:hover {
    background: #eff6ff !important;
    color: #005bba !important;
    border-color: #93c5fd !important;
    transform: none !important;
}
.wl-inv-sell-btn {
    width: 100%;
    height: 36px;
    margin-top: auto;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}
.wl-inv-empty,
.wl-inv-no-match {
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}
.wl-inv-no-match {
    display: none;
}

/* Barre compacte Stock & Marche (ventev1.php, Achat*.php) */
.wl-page-container.wl-mk-page {
    margin-top: 4px;
}
.wl-subnav.wl-subnav-market {
    margin: 3px auto 5px auto;
    padding: 0;
}
.wl-mk-tools-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 8px;
    margin-bottom: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wl-mk-tools-bar::-webkit-scrollbar {
    display: none;
}
.wl-mk-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}
.wl-mk-stock-pill .wl-badge {
    font-size: 0.75rem;
    padding: 3px 9px;
    white-space: nowrap;
}
.wl-mk-stock-bar {
    width: 56px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}
/* --- Jauge d'inventaire graphique style RPG (.wl-bag-hud) --- */
.wl-bag-hud {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1.5px solid #334155;
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(15, 23, 42, 0.14);
    flex: 0 1 auto;
    min-width: 0;
}
.wl-bag-hud.is-warn {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #1c1917 0%, #451a03 100%);
}
.wl-bag-hud.is-full,
.wl-bag-hud.is-over {
    border-color: #ef4444;
    background: linear-gradient(135deg, #2a0a10 0%, #450a0a 100%);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22), 0 2px 8px rgba(185, 28, 28, 0.25);
}
.wl-bag-hud-left {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.wl-bag-hud-ico {
    color: #38bdf8;
    flex-shrink: 0;
}
.wl-bag-hud.is-warn .wl-bag-hud-ico { color: #fbbf24; }
.wl-bag-hud.is-full .wl-bag-hud-ico,
.wl-bag-hud.is-over .wl-bag-hud-ico { color: #f87171; }
.wl-bag-hud-nums {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1px;
}
.wl-bag-cells {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    padding: 2px 4px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
}
.wl-bag-cell {
    width: 7px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}
.wl-bag-cell.is-free {
    background: rgba(148, 163, 184, 0.16);
    border: 1px dashed rgba(148, 163, 184, 0.42);
}
.wl-bag-cell.is-filled {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    border: 1px solid #6ee7b7;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.45);
}
.wl-bag-hud.is-warn .wl-bag-cell.is-filled {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    border-color: #fde68a;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}
.wl-bag-hud.is-full .wl-bag-cell.is-filled,
.wl-bag-hud.is-over .wl-bag-cell.is-filled {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    border-color: #fca5a5;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.6);
}
.wl-bag-cell.is-over-cell {
    width: auto;
    min-width: 13px;
    padding: 0 3px;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    border: 1px solid #fecaca;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    animation: wlBagPulse 1.15s ease-in-out infinite;
}
@keyframes wlBagPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.09); opacity: 0.86; }
}
.wl-bag-free-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}
.wl-bag-hud.is-warn .wl-bag-free-pill {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(251, 191, 36, 0.55);
    color: #fde68a;
}
.wl-bag-hud.is-full .wl-bag-free-pill,
.wl-bag-hud.is-over .wl-bag-free-pill {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(252, 165, 165, 0.68);
    color: #fee2e2;
    animation: wlBagPulse 1.4s ease-in-out infinite;
}
a.wl-bag-upg-btn,
a.wl-bag-upg-btn:link,
a.wl-bag-upg-btn:visited {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid #fde68a;
    color: #ffffff !important;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
}
a.wl-bag-upg-btn:hover {
    filter: brightness(1.08);
}
.wl-mk-tools-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.wl-mk-tools-actions .wl-btn,
.wl-mk-tools-bar a.wl-btn:link,
.wl-mk-tools-bar a.wl-btn:visited,
.wl-mk-tools-bar button.wl-btn {
    white-space: nowrap;
    min-height: 28px !important;
    height: 28px;
    padding: 0 9px !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .wl-page-container.wl-mk-page {
        margin-top: 3px;
    }
    .wl-subnav.wl-subnav-market {
        margin: 0 auto 4px auto;
        padding: 0;
        gap: 4px;
    }
    .wl-subnav.wl-subnav-market .wl-sub-extra {
        display: none;
    }
    .wl-subnav.wl-subnav-market a.wl-subnav-tab,
    .wl-subnav.wl-subnav-market a.wl-subnav-tab:link,
    .wl-subnav.wl-subnav-market a.wl-subnav-tab:visited {
        flex: 1 1 0;
        min-width: 0;
        min-height: 29px !important;
        padding: 4px 6px !important;
        font-size: 0.72rem !important;
        gap: 4px;
        border-radius: 8px;
    }
    .wl-mk-tools-bar {
        padding: 3px 6px;
        margin-bottom: 5px;
        border-radius: 8px;
        gap: 5px;
    }
    .wl-mk-stock-pill .wl-badge {
        font-size: 0.71rem;
        padding: 2px 7px;
    }
    .wl-mk-stock-bar {
        display: none;
    }
    .wl-bag-hud {
        gap: 4px;
        padding: 3px 6px;
        border-radius: 8px;
    }
    .wl-bag-hud-nums {
        font-size: 0.68rem;
    }
    .wl-bag-cells {
        gap: 1.5px;
        padding: 2px 3px;
    }
    .wl-bag-cell {
        width: 5px;
        height: 9px;
    }
    .wl-bag-free-pill {
        font-size: 0.63rem;
        padding: 1px 5px;
    }
    a.wl-bag-upg-btn,
    a.wl-bag-upg-btn:link,
    a.wl-bag-upg-btn:visited {
        font-size: 0.68rem;
        padding: 1px 6px;
    }
    .wl-bag-upg-lbl {
        display: none;
    }
    .wl-mk-tools-actions {
        gap: 4px;
    }
    .wl-mk-tools-actions .wl-btn,
    .wl-mk-tools-bar a.wl-btn:link,
    .wl-mk-tools-bar a.wl-btn:visited,
    .wl-mk-tools-bar button.wl-btn {
        min-height: 24px !important;
        height: 24px !important;
        padding: 0 7px !important;
        font-size: 0.71rem !important;
        border-radius: 7px;
    }
}

@media (max-width: 580px) {
    .wl-grid-scope > .wl-card-body {
        padding: 7px;
    }
    .wl-inv-toolbar {
        padding: 6px 8px;
        gap: 6px;
    }
    .wl-inv-filters,
    .wl-inv-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        padding-bottom: 1px;
        scrollbar-width: none;
    }
    .wl-inv-filters::-webkit-scrollbar,
    .wl-inv-tabs::-webkit-scrollbar {
        display: none;
    }
    button.wl-inv-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 4px 9px !important;
        font-size: 0.73rem !important;
    }
    .wl-inv-grid {
        padding: 8px 8px 10px 8px;
        gap: 8px;
        scroll-padding-left: 8px;
    }
    .wl-inv-card {
        flex: 0 0 min(262px, 80vw);
        width: min(262px, 80vw);
        max-width: 84vw;
    }
    .wl-inv-card-top {
        padding: 7px 9px;
    }
    .wl-inv-slot {
        width: 48px;
        height: 48px;
        border-radius: 11px;
        padding: 4px;
    }
    .wl-inv-slot img.wl-prod-thumb {
        width: 34px;
        height: 34px;
        max-height: 36px !important;
    }
    .wl-inv-form {
        padding: 7px 9px;
        gap: 5px;
    }
    .wl-inv-search {
        width: 100%;
        height: 30px;
        padding: 4px 10px !important;
        font-size: 0.78rem !important;
    }
    .wl-inv-sell-btn {
        height: 35px;
        font-size: 0.85rem !important;
    }
    .wl-inv-card .wl-qty-group,
    .wl-inv-price-wrap,
    .wl-inv-select {
        height: 34px;
    }
    .wl-inv-card button.wl-qty-btn {
        width: 32px;
        min-width: 32px;
    }
    .wl-stat-mini-grid {
        gap: 5px;
    }
    .wl-stat-kpi {
        padding: 4px 7px;
    }
    .wl-stat-kpi-lbl {
        font-size: 0.64rem;
    }
    .wl-stat-kpi-val {
        font-size: 0.8rem;
    }
    .wl-shop-seller-row {
        padding: 4px 7px;
        font-size: 0.76rem;
    }
    .wl-shop-effect-pill {
        padding: 4px 7px;
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ==========================================================================
   16. CATALOGUE & STATISTIQUES EN GRILLE (stock.php - 2026)
   ========================================================================== */
.wl-stat-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wl-stat-kpi {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.wl-stat-kpi-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}
.wl-stat-kpi-val {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.wl-stat-kpi-sub {
    font-size: 0.7rem;
    color: #64748b;
}
.wl-dist-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}
.wl-dist-bar {
    height: 10px;
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    border: 1px solid #cbd5e1;
}
.wl-dist-seg {
    height: 100%;
    min-width: 3px;
}
.wl-dist-used { background: #ef4444; }
.wl-dist-market { background: #3b82f6; }
.wl-dist-player { background: #10b981; }
.wl-dist-exch { background: #8b5cf6; }
.wl-dist-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.7rem;
    color: #475569;
    font-weight: 700;
}
.wl-dist-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.wl-stat-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    margin-top: auto;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.74rem;
    color: #475569;
}

/* ==========================================================================
   17. HORAIRES DU MARCHE ERGONOMIQUES & CARTES BOUTIQUE UNIFIEES (2026)
   ========================================================================== */
.wl-sched-card .wl-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wl-sched-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wl-sched-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 6px 12px;
    border-radius: 999px;
}
.wl-sched-status.is-open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.wl-sched-status.is-closed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.wl-sched-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wl-sched-status.is-open .wl-sched-dot {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.wl-sched-status.is-closed .wl-sched-dot {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.wl-sched-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 700;
}
.wl-sched-countdown {
    background: #eff6ff;
    color: #005bba;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}
.wl-sched-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.wl-sched-slot {
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
}
.wl-sched-slot.is-now {
    background: #f0fdf4;
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.14);
}
.wl-sched-slot-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.03em;
}
.wl-sched-slot.is-now .wl-sched-slot-title {
    color: #15803d;
}
.wl-sched-slot-hours {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}
.wl-sched-timeline-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wl-sched-timeline {
    position: relative;
    height: 14px;
    background: #e2e8f0;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    overflow: visible;
}
.wl-sched-window {
    position: absolute;
    top: 1px;
    bottom: 1px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 999px;
}
.wl-sched-now-pin {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: #005bba;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px #ffffff;
}
.wl-sched-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    padding: 0 2px;
}
.wl-sched-compare {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.wl-sched-cmp-item {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.76rem;
    color: #334155;
    text-align: left;
    line-height: 1.35;
}
.wl-sched-cmp-item b {
    display: block;
    color: #0f172a;
    margin-bottom: 2px;
}
details.wl-sched-mini {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
details.wl-sched-mini summary {
    list-style: none;
    cursor: pointer;
    padding: 9px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}
details.wl-sched-mini summary::-webkit-details-marker {
    display: none;
}
.wl-sched-mini-hint {
    color: #005bba;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}
.wl-sched-mini-body {
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cartes boutique unifiees (Achat / Achatv2 / Achatv3) */
.wl-shop-seller-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}
.wl-shop-effect-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.35;
}
.wl-shop-card-action {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}
.wl-shop-card-action .wl-inline-buy-form {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}
.wl-shop-card-action .wl-buy-submit {
    order: -1;
    height: 38px;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    flex: 1 1 auto;
}
.wl-shop-card-action .wl-qty-group {
    width: auto !important;
    height: 38px;
    flex-shrink: 0;
    border-color: #94a3b8;
}
.wl-shop-card-action .wl-qty-group input.wl-qty-input {
    width: 44px !important;
    flex: 0 0 auto !important;
}

@media (max-width: 720px) {
    .wl-sched-slots,
    .wl-sched-compare {
        grid-template-columns: 1fr;
    }
    details.wl-sched-mini {
        margin-bottom: 8px;
    }
    details.wl-sched-mini summary {
        padding: 6px 10px;
        font-size: 0.76rem;
        gap: 6px;
    }
    details.wl-sched-mini summary > span:nth-child(2) {
        display: none;
    }
    .wl-shop-card-action {
        padding-top: 6px;
    }
    .wl-shop-card-action .wl-buy-submit {
        height: 35px;
        font-size: 0.84rem !important;
    }
    .wl-shop-card-action .wl-qty-group {
        height: 35px;
    }
    .wl-shop-card-action button.wl-qty-btn {
        width: 32px;
        min-width: 32px;
    }
}

/* ==========================================================================
   18. FICHE GUERRIER & ACTIONS (Occuper.php / Action.php - 2026)
   ========================================================================== */
.wl-warrior-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 230px;
    gap: 16px;
    align-items: start;
}
.wl-warrior-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.wl-warrior-avatar-box img {
    width: 100%;
    max-width: 170px;
    border-radius: 14px;
    border: 2px solid #93c5fd;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    background: #ffffff;
}
.wl-warrior-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}
.wl-stat-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.wl-stat-bar-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wl-stat-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}
.wl-stat-bar-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wl-stat-bar-lbl img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.wl-stat-track {
    height: 9px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.wl-stat-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #005bba);
}
.wl-stat-fill.is-fat {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.wl-equip-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.wl-equip-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.wl-equip-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #005bba;
}
.wl-equip-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
}
.wl-equip-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wl-action-card-btn {
    width: 100%;
    height: 38px;
    margin-top: auto;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    box-sizing: border-box;
}
.wl-action-card-btn.is-disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-width: 820px) {
    .wl-warrior-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   19. TOASTS MOBILE & RETOUR SANS RECHARGEMENT (Achat / Vente AJAX)
   ========================================================================== */
.wl-toast-stack {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(92vw, 420px);
    pointer-events: none;
}
.wl-toast {
    pointer-events: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    animation: wlToastIn 0.18s ease-out;
}
.wl-toast.is-ok {
    background: #065f46;
    color: #ffffff;
    border: 1.5px solid #34d399;
}
.wl-toast.is-err {
    background: #991b1b;
    color: #ffffff;
    border: 1.5px solid #fca5a5;
}
@keyframes wlToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wl-inv-card.is-flash-ok {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 8px 20px rgba(16, 185, 129, 0.18) !important;
}
.wl-inv-card.is-removing {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

/* ==========================================================================
   20. GRILLE D'ICONES ACTIVITES (Sport, Ecole, Craft)
   ========================================================================== */
.wl-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 12px;
    padding: 14px;
    box-sizing: border-box;
}
.wl-activity-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 13px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(0, 45, 98, 0.06);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
    box-sizing: border-box;
}
.wl-activity-card:not(.is-locked):hover {
    transform: translateY(-2px);
    border-color: #60a5fa;
    box-shadow: 0 6px 16px rgba(0, 91, 186, 0.12);
}
.wl-activity-card.is-locked {
    background: #f8fafc;
    border-color: #cbd5e1;
    opacity: 0.74;
}
.wl-activity-card.is-locked .wl-actgrid-emoji,
.wl-activity-card.is-locked .wl-actgrid-icon img {
    filter: grayscale(82%);
    opacity: 0.65;
}
.wl-actgrid-icon-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2px;
}
.wl-actgrid-icon {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #93c5fd;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}
.wl-actgrid-icon.is-sport {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.14);
}
.wl-actgrid-icon.is-ecole {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #a5b4fc;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.14);
}
.wl-actgrid-icon.is-craft {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.14);
}
.wl-activity-card.is-locked .wl-actgrid-icon {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: none;
}
.wl-actgrid-emoji {
    font-size: 34px;
    line-height: 1;
}
.wl-actgrid-icon img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.wl-actgrid-corner {
    position: absolute;
    top: 0;
    right: 0;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #b45309;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.2;
}
.wl-actgrid-corner.is-ready-max {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}
.wl-actgrid-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    word-break: break-word;
}
.wl-actgrid-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #005bba;
    line-height: 1.25;
}
.wl-actgrid-base-time {
    color: #64748b;
    font-weight: 600;
    font-size: 0.88em;
}
.wl-actgrid-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: 100%;
}
.wl-actgrid-pills .wl-badge {
    font-size: 0.71rem;
    padding: 2px 6px;
}
.wl-actgrid-foot {
    margin-top: auto;
    width: 100%;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wl-actgrid-foot .wl-btn {
    width: 100%;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.8rem;
}
.wl-actgrid-foot .wl-badge {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
}
.wl-actgrid-craft-form {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wl-actgrid-craft-form input[type="number"],
.wl-actgrid-craft-form input[type="text"] {
    width: 50px;
    min-width: 0;
    padding: 5px 4px;
    text-align: center;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.82rem;
    box-sizing: border-box;
}
.wl-actgrid-craft-form input[type="submit"],
.wl-actgrid-craft-form button {
    flex: 1;
    min-width: 0;
    padding: 6px 6px !important;
    font-size: 0.78rem !important;
    justify-content: center;
}
@media (max-width: 640px) {
    .wl-activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    .wl-activity-card {
        padding: 9px 7px;
        gap: 5px;
        border-radius: 11px;
    }
    .wl-actgrid-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }
    .wl-actgrid-emoji {
        font-size: 28px;
    }
    .wl-actgrid-icon img {
        max-width: 40px;
        max-height: 40px;
    }
    .wl-actgrid-corner {
        font-size: 0.62rem;
        padding: 1px 5px;
    }
    .wl-actgrid-title {
        font-size: 0.82rem;
    }
    .wl-actgrid-meta {
        font-size: 0.72rem;
    }
    .wl-actgrid-pills .wl-badge {
        font-size: 0.64rem;
        padding: 1px 5px;
    }
    .wl-actgrid-foot .wl-btn {
        min-height: 38px;
        font-size: 0.78rem;
        padding: 6px 8px;
        touch-action: manipulation;
    }
    .wl-actgrid-craft-form input[type="number"],
    .wl-actgrid-craft-form input[type="text"] {
        width: 46px;
        min-height: 36px;
        padding: 4px 2px;
        font-size: 0.82rem;
    }
    .wl-actgrid-craft-form input[type="submit"],
    .wl-actgrid-craft-form button {
        min-height: 36px;
        font-size: 0.76rem !important;
        padding: 6px 6px !important;
    }
}

/* ==========================================================================
   21. CARTES COMPACTES & GRISAGE (Occuper.php)
   ========================================================================== */
.wl-inv-grid.wl-occupy-grid .wl-inv-card {
    flex: 0 0 236px;
    padding: 8px 10px;
    gap: 6px;
}
.wl-inv-grid.wl-occupy-grid .wl-inv-slot {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}
.wl-inv-grid.wl-occupy-grid .wl-inv-slot img {
    max-width: 38px;
    max-height: 38px;
}
.wl-inv-grid.wl-occupy-grid .wl-prod-name {
    font-size: 0.82rem;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: normal;
}
.wl-inv-grid.wl-occupy-grid .wl-detail-btn {
    padding: 3px 6px !important;
    font-size: 0.68rem !important;
}
.wl-inv-card.is-unavailable {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    opacity: 0.66;
}
.wl-inv-card.is-unavailable:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
}
.wl-inv-card.is-unavailable .wl-inv-slot img {
    filter: grayscale(85%);
    opacity: 0.68;
}
.wl-occupy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 1px 0;
}
.wl-occupy-pills .wl-badge {
    font-size: 0.69rem;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.wl-occupy-pills .wl-badge img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
}
.wl-occupy-foot-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    padding-top: 2px;
    border-top: 1px dashed #e2e8f0;
}
.wl-inv-grid.wl-occupy-grid .wl-action-card-btn {
    height: 32px;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
}
@media (max-width: 640px) {
    .wl-inv-grid.wl-occupy-grid .wl-inv-card {
        flex: 0 0 186px;
        padding: 7px;
        gap: 5px;
    }
    .wl-inv-grid.wl-occupy-grid .wl-inv-slot {
        width: 42px;
        height: 42px;
    }
    .wl-inv-grid.wl-occupy-grid .wl-inv-slot img {
        max-width: 34px;
        max-height: 34px;
    }
    .wl-inv-grid.wl-occupy-grid .wl-prod-name {
        font-size: 0.77rem;
    }
    .wl-occupy-pills .wl-badge {
        font-size: 0.64rem;
        padding: 1px 4px;
    }
    .wl-inv-grid.wl-occupy-grid .wl-action-card-btn {
        min-height: 36px;
        height: auto;
        padding: 6px 8px !important;
        font-size: 0.76rem !important;
    }
}

/* ==========================================================================
   22. GRILLE VERTICALE MULTI-PRODUITS IMAGE EN AVANT (ventev1, Achat, Achatv2, Achatv3)
   ========================================================================== */
.wl-inv-grid.wl-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 9px;
    padding: 10px;
    overflow: visible;
    scroll-snap-type: none;
    align-items: stretch;
}
.wl-inv-grid.wl-grid-wrap.wl-sell-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
}
.wl-inv-grid.wl-grid-wrap .wl-inv-card {
    flex: none;
    width: auto;
    max-width: none;
    scroll-snap-align: none;
    border-radius: 12px;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-card-top {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 7px 6px 7px;
    gap: 4px;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-head-left {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-slot {
    width: 74px;
    height: 74px;
    padding: 6px;
    border-radius: 14px;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-slot img.wl-prod-thumb {
    width: 56px;
    height: 56px;
    max-height: 58px !important;
}
.wl-inv-grid.wl-grid-wrap .wl-detail-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 5px !important;
    min-width: 24px;
    height: 24px;
    border-radius: 999px !important;
    justify-content: center;
}
.wl-inv-grid.wl-grid-wrap .wl-detail-btn span {
    display: none;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-title-wrap {
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 3px;
}
.wl-inv-grid.wl-grid-wrap .wl-prod-name {
    font-size: 0.84rem;
    line-height: 1.15;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-meta-row {
    justify-content: center;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-form {
    padding: 7px 8px;
    gap: 5px;
}
.wl-inv-grid.wl-grid-wrap .wl-stat-mini-grid {
    gap: 4px;
}
.wl-inv-grid.wl-grid-wrap .wl-stat-kpi {
    padding: 3px 5px;
    border-radius: 7px;
}
.wl-inv-grid.wl-grid-wrap .wl-stat-kpi-lbl {
    font-size: 0.58rem;
}
.wl-inv-grid.wl-grid-wrap .wl-stat-kpi-val {
    font-size: 0.74rem;
}
.wl-inv-grid.wl-grid-wrap .wl-shop-effect-pill {
    font-size: 0.7rem;
    padding: 3px 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: normal;
}
.wl-inv-grid.wl-grid-wrap .wl-shop-effect-pill img {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}
.wl-inv-grid.wl-grid-wrap .wl-shop-card-action {
    margin-top: auto;
    padding-top: 2px;
}
.wl-inv-grid.wl-grid-wrap .wl-inv-sell-btn {
    height: 32px;
    font-size: 0.79rem !important;
    margin-top: auto;
}
@media (max-width: 640px) {
    .wl-inv-grid.wl-grid-wrap,
    .wl-inv-grid.wl-grid-wrap.wl-sell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 7px;
    }
    .wl-inv-grid.wl-grid-wrap .wl-inv-card-top {
        padding: 7px 5px 5px 5px;
    }
    .wl-inv-grid.wl-grid-wrap .wl-inv-slot {
        width: 60px;
        height: 60px;
        padding: 5px;
        border-radius: 12px;
    }
    .wl-inv-grid.wl-grid-wrap .wl-inv-slot img.wl-prod-thumb {
        width: 44px;
        height: 44px;
        max-height: 46px !important;
    }
    .wl-inv-grid.wl-grid-wrap .wl-prod-name {
        font-size: 0.77rem;
    }
    .wl-inv-grid.wl-grid-wrap .wl-inv-form {
        padding: 6px;
        gap: 4px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-sell-grid .wl-inv-fields-2 {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .wl-inv-grid.wl-grid-wrap .wl-inv-card .wl-qty-group,
    .wl-inv-grid.wl-grid-wrap .wl-inv-price-wrap,
    .wl-inv-grid.wl-grid-wrap .wl-inv-select {
        height: 34px;
    }
    .wl-inv-grid.wl-grid-wrap .wl-inv-card button.wl-qty-btn {
        width: 30px;
        min-width: 30px;
        font-size: 0.92rem !important;
    }
    .wl-inv-grid.wl-grid-wrap .wl-shop-card-action .wl-qty-group {
        width: 86px;
        height: 34px;
    }
    .wl-inv-grid.wl-grid-wrap .wl-shop-card-action .wl-buy-submit {
        min-height: 34px;
        height: auto;
        padding: 5px 8px !important;
        font-size: 0.76rem !important;
    }
    .wl-inv-grid.wl-grid-wrap button.wl-inv-chip-btn {
        font-size: 0.64rem !important;
        padding: 2px 5px !important;
    }
}

/* ==========================================================================
   23. CASES D'INVENTAIRE COMPACTES + POPUP D'ACTION (ventev1, Achat, Achatv2, Achatv3)
   ========================================================================== */
.wl-slot-gesture-hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 6px;
    padding: 7px;
}
.wl-compact-card {
    cursor: pointer;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    padding: 5px 3px 4px 3px;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    overflow: visible;
    transition: transform 0.12s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card:hover {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card:active {
    transform: scale(0.95);
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card.is-mine-slot {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card.is-quick-busy {
    opacity: 0.72;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-inv-slot {
    position: relative;
    width: 46px;
    height: 46px;
    padding: 3px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.11);
    overflow: visible;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-inv-slot img.wl-prod-thumb {
    width: 36px;
    height: 36px;
    max-height: 36px !important;
    object-fit: contain;
    pointer-events: none;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-inv-qty-pill {
    bottom: -4px;
    right: -4px;
    font-size: 0.58rem;
    padding: 0px 4px;
    border: 1.5px solid #ffffff;
    line-height: 1.25;
    white-space: nowrap;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-slot-price-chip {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #0f172a;
    color: #fde047;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 0px 4px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
    white-space: nowrap;
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-slot-full-tag {
    display: none;
    position: absolute;
    top: -4px;
    right: -5px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1.2;
    padding: 0px 4px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(185, 28, 28, 0.4);
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card.is-no-space,
.wl-mk-page.is-bag-saturated .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card:not(.is-mine-slot) {
    border-color: #fca5a5;
    background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card.is-no-space .wl-slot-full-tag,
.wl-mk-page.is-bag-saturated .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card:not(.is-mine-slot) .wl-slot-full-tag {
    display: inline-block;
}
.wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-prod-name {
    font-size: 0.66rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.12;
    text-align: center;
    width: 100%;
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
/* --- Emplacements visuels d'inventaire (vides / satures / verrouilles) --- */
.wl-bag-grid-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    padding: 5px 3px 4px 3px;
    border-radius: 9px;
    text-decoration: none !important;
    user-select: none;
    transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease;
}
a.wl-bag-grid-slot:hover {
    transform: translateY(-1px);
}
.wl-bag-grid-slot .wl-bag-slot-box {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wl-bag-grid-slot .wl-bag-slot-pill {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 0 4px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    white-space: nowrap;
}
.wl-bag-grid-slot .wl-bag-slot-lbl {
    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    width: 100%;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-bag-grid-slot.is-free {
    background: rgba(240, 253, 244, 0.72);
    border: 1.5px dashed #6ee7b7;
    color: #047857 !important;
}
.wl-bag-grid-slot.is-free .wl-bag-slot-box {
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px dashed #34d399;
    color: #059669;
}
.wl-bag-grid-slot.is-free .wl-bag-slot-pill {
    background: #059669;
    color: #ffffff;
}
.wl-bag-grid-slot.is-empty-cell {
    background: rgba(241, 245, 249, 0.65);
    border: 1.5px dashed #cbd5e1;
    color: #94a3b8;
    opacity: 0.75;
}
.wl-bag-grid-slot.is-empty-cell .wl-bag-slot-box {
    background: inset 0 2px 4px rgba(15, 23, 42, 0.05);
    border: 1.5px dashed #cbd5e1;
}
.wl-bag-empty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}
.wl-bag-grid-slot.is-warn {
    background: #fffbeb;
    border: 1.5px dashed #f59e0b;
    color: #b45309 !important;
}
.wl-bag-grid-slot.is-warn .wl-bag-slot-box {
    background: #fef3c7;
    border: 1.5px dashed #f59e0b;
    color: #d97706;
}
.wl-bag-grid-slot.is-warn .wl-bag-slot-pill {
    background: #d97706;
    color: #ffffff;
}
.wl-bag-grid-slot.is-lack {
    background: repeating-linear-gradient(135deg, #fff1f2 0px, #fff1f2 6px, #ffe4e6 6px, #ffe4e6 12px);
    border: 1.5px solid #ef4444;
    color: #b91c1c !important;
    animation: wlBagPulse 1.6s ease-in-out infinite;
}
.wl-bag-grid-slot.is-lack .wl-bag-slot-box {
    background: #fee2e2;
    border: 1.5px solid #f87171;
    color: #dc2626;
}
.wl-bag-grid-slot.is-lack .wl-bag-slot-pill {
    background: #dc2626;
    color: #ffffff;
}
.wl-bag-grid-slot.is-locked-upg {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px dashed #f59e0b;
    color: #fde68a !important;
}
.wl-bag-grid-slot.is-locked-upg .wl-bag-slot-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px dashed rgba(251, 191, 36, 0.55);
    color: #fbbf24;
}
.wl-bag-grid-slot.is-locked-upg .wl-bag-slot-pill {
    background: #d97706;
    color: #ffffff;
    border-color: #0f172a;
}
.wl-bag-grid-slot.is-locked-upg.is-castle-upg {
    border-color: #38bdf8;
    color: #bae6fd !important;
}
.wl-bag-grid-slot.is-locked-upg.is-castle-upg .wl-bag-slot-box {
    border-color: rgba(56, 189, 248, 0.55);
    color: #38bdf8;
}
.wl-bag-grid-slot.is-locked-upg.is-castle-upg .wl-bag-slot-pill {
    background: #0284c7;
}
/* --- Panneau visuel Surcharge d'Inventaire sur pages d'achat --- */
.wl-bag-overflow-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a0a10 0%, #450a0a 100%);
    border: 1.5px solid #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.22);
}
.wl-bag-overflow-vis {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(252, 165, 165, 0.35);
}
.wl-over-slot {
    width: 14px;
    height: 18px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wl-over-slot.is-packed {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    border: 1px solid #fca5a5;
}
.wl-over-slot.is-burst {
    width: auto;
    padding: 0 6px;
    background: #dc2626;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    animation: wlBagPulse 1.15s ease-in-out infinite;
}
.wl-bag-overflow-txt {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wl-bag-overflow-txt b {
    font-size: 0.88rem;
    color: #fecaca;
}
.wl-bag-overflow-txt span {
    font-size: 0.76rem;
    color: #fee2e2;
    opacity: 0.92;
}
.wl-bag-overflow-acts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.wl-slot-delta-pop {
    position: absolute;
    top: 2px;
    right: 4px;
    z-index: 6;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 999px;
    color: #ffffff;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    animation: wlSlotDeltaAnim 0.85s ease-out forwards;
}
.wl-slot-delta-pop.is-sell {
    background: #0284c7;
}
.wl-slot-delta-pop.is-buy {
    background: #16a34a;
}
@keyframes wlSlotDeltaAnim {
    0% { opacity: 1; transform: translateY(4px) scale(0.85); }
    35% { opacity: 1; transform: translateY(-6px) scale(1.06); }
    100% { opacity: 0; transform: translateY(-18px) scale(0.95); }
}
.wl-quick-act-toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 14px);
    z-index: 9998;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    border: 1.5px solid #38bdf8;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.wl-quick-act-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.wl-modal-action-box {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: 11px;
    padding: 8px 9px;
    margin-bottom: 7px;
}
.wl-modal-action-box .wl-inv-form {
    padding: 0;
    gap: 6px;
}
.wl-modal-action-box .wl-inv-field {
    min-width: 0;
    gap: 2px;
}
.wl-modal-action-box .wl-inv-field label {
    font-size: 0.62rem;
}
.wl-modal-action-box .wl-qty-group,
.wl-modal-action-box .wl-inv-price-wrap {
    width: 100%;
    height: 31px;
}
.wl-modal-action-box .wl-qty-group button.wl-qty-btn {
    width: 28px !important;
    min-width: 28px !important;
    min-height: 29px !important;
    height: 100%;
    padding: 0 !important;
}
.wl-modal-action-box .wl-qty-group input.wl-qty-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    border: none !important;
    border-left: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 0 2px !important;
}
.wl-modal-action-box .wl-qty-presets,
.wl-modal-action-box .wl-inv-price-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    margin-top: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.wl-modal-action-box button.wl-inv-chip-btn {
    min-height: 22px !important;
    height: 22px;
    padding: 0 6px !important;
    font-size: 0.66rem !important;
    border-radius: 6px !important;
    flex: 1 1 auto;
    justify-content: center;
}
.wl-modal-action-box .wl-inv-sell-btn {
    min-height: 34px !important;
    height: 34px;
    font-size: 0.82rem !important;
    border-radius: 9px !important;
}
/* Selecteur moderne segmente de Destination */
.wl-dest-seg {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid #bfdbfe;
}
button.wl-dest-pill {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 0;
    min-width: 0;
    min-height: 27px !important;
    height: 27px;
    padding: 0 6px !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #1e3a8a !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: none !important;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
button.wl-dest-pill.is-active {
    background: linear-gradient(135deg, #005bba 0%, #003f87 100%) !important;
    color: #ffffff !important;
    border-color: #003f87 !important;
    box-shadow: 0 2px 6px rgba(0, 63, 135, 0.25) !important;
}
.wl-dest-player-panel {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 9px;
    padding: 6px;
}
.wl-dest-search-row {
    display: flex;
    width: 100%;
}
input.wl-dest-player-input {
    width: 100%;
    height: 29px !important;
    padding: 3px 9px !important;
    font-size: 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #f8fafc;
    box-sizing: border-box;
}
input.wl-dest-player-input:focus {
    border-color: #005bba !important;
    background: #ffffff;
    outline: none;
}
input.wl-dest-player-input.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2;
}
.wl-dest-chips-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 1px;
}
.wl-dest-chips-rail::-webkit-scrollbar {
    display: none;
}
button.wl-dest-pchip {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    min-height: 24px !important;
    height: 24px;
    padding: 0 8px !important;
    border-radius: 999px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 0.69rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none !important;
    touch-action: manipulation;
}
button.wl-dest-pchip em {
    font-style: normal;
    font-size: 0.61rem;
    color: #64748b;
    font-weight: 800;
}
button.wl-dest-pchip.is-online {
    border-color: #86efac !important;
    background: #f0fdf4 !important;
}
button.wl-dest-pchip .wl-dest-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}
button.wl-dest-pchip.is-active {
    background: #005bba !important;
    border-color: #003f87 !important;
    color: #ffffff !important;
}
button.wl-dest-pchip.is-active em {
    color: #fde047;
}
button.wl-dest-pchip.is-active .wl-dest-dot {
    background: #4ade80;
}
.wl-dest-chips-empty {
    font-size: 0.68rem;
    color: #64748b;
}
.wl-dest-err-hint {
    font-size: 0.68rem;
    font-weight: 700;
    color: #dc2626;
}
.wl-modal-action-box .wl-inline-buy-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.wl-modal-action-box .wl-inline-buy-form .wl-qty-group {
    width: 108px;
    height: 33px;
}
.wl-modal-action-box .wl-inline-buy-form .wl-buy-submit {
    flex: 1 1 130px;
    min-height: 33px !important;
    height: 33px;
    font-size: 0.84rem !important;
    justify-content: center;
}
.wl-modal-action-box .wl-inline-buy-form .wl-qty-presets {
    width: 100%;
}
@media (max-width: 640px) {
    .wl-slot-gesture-hint {
        font-size: 0.62rem;
        padding: 2px 6px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 5px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card,
    .wl-bag-grid-slot {
        padding: 4px 2px 3px 2px;
        gap: 2px;
        border-radius: 8px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-inv-slot,
    .wl-bag-grid-slot .wl-bag-slot-box {
        width: 40px;
        height: 40px;
        padding: 3px;
        border-radius: 9px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-inv-slot img.wl-prod-thumb {
        width: 31px;
        height: 31px;
        max-height: 31px !important;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-inv-qty-pill,
    .wl-bag-grid-slot .wl-bag-slot-pill {
        font-size: 0.55rem;
        padding: 0px 3.5px;
        bottom: -3px;
        right: -3px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-slot-price-chip {
        font-size: 0.52rem;
        padding: 0px 3.5px;
        top: -3px;
        left: -3px;
        max-width: 44px;
    }
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid .wl-slot-card .wl-prod-name,
    .wl-bag-grid-slot .wl-bag-slot-lbl {
        font-size: 0.59rem;
        line-height: 1.1;
    }
}
@media (max-width: 355px) {
    .wl-inv-grid.wl-grid-wrap.wl-compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================================================
   24. MINI BARRE RETOUR GUERRIER (Occuper, Sport, Ecole, Craft - type Combat)
   ========================================================================== */
.wl-warrior-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: linear-gradient(135deg, #004691 0%, #005bba 100%);
    color: #ffffff;
    border: 1.5px solid #ffb533;
    border-radius: 8px;
    padding: 4px 9px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    box-shadow: 0 2px 7px rgba(0, 45, 100, 0.14);
    flex-wrap: nowrap;
    min-width: 0;
}
.wl-warrior-mini-top a.wl-mini-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 800;
    font-size: 0.74rem;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.14s ease;
}
.wl-warrior-mini-top a.wl-mini-back:hover {
    background: rgba(255, 255, 255, 0.28);
}
.wl-warrior-mini-top .wl-mini-info {
    min-width: 0;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e0f2fe;
    font-weight: 700;
    font-size: 0.77rem;
}
.wl-warrior-mini-top .wl-mini-info b {
    color: #ffffff;
}
.wl-warrior-mini-top .wl-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 800;
    font-size: 0.71rem;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.wl-warrior-mini-top a.wl-mini-pill:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   25. POPUP DE CONFIRMATION ECHANGE + BOUTONS QUANTITE / PRIX PRESAISIS
   ========================================================================== */
.wl-qty-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}
.wl-modal-unit-price-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.82rem;
    color: #334155;
    box-sizing: border-box;
}
.wl-modal-unit-price-bar b {
    color: #0f172a;
    font-size: 0.9rem;
}
.wl-inv-chip-btn.is-active {
    background: #005bba !important;
    border-color: #005bba !important;
    color: #ffffff !important;
}
.wl-modal-live-total {
    padding: 7px 11px;
    font-size: 0.88rem;
    font-weight: 700;
}
.wl-res-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(2px);
    z-index: 99996;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.wl-res-modal-backdrop.is-open {
    display: flex;
}
.wl-res-modal-dialog {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.36);
    border: 1px solid #cbd5e1;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    animation: wlResPopIn 0.16s ease-out;
}
@keyframes wlResPopIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.wl-res-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}
.wl-res-modal-head.is-error {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}
.wl-res-modal-title {
    font-size: 1.02rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
}
.wl-res-modal-close {
    background: rgba(255, 255, 255, 0.22);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.wl-res-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}
.wl-res-modal-body {
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.wl-res-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}
.wl-res-hero img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}
.wl-res-summary-list {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.wl-res-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 11px;
    font-size: 0.85rem;
    border-top: 1px solid #f1f5f9;
}
.wl-res-summary-row:first-child {
    border-top: none;
}
.wl-res-summary-lbl {
    color: #64748b;
    font-weight: 600;
}
.wl-res-summary-val {
    color: #0f172a;
    font-weight: 800;
    text-align: right;
}
.wl-res-modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 16px 15px 16px;
}

/* ==========================================================================
   20. POPUPS INTERNES AUTO-FERMANTES (Gains objets, argent, energie, quetes)
   ========================================================================== */
.wl-gain-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99998;
    width: min(390px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
@media (max-width: 640px) {
    .wl-gain-stack {
        top: 10px;
        right: 50%;
        transform: translateX(50%);
        width: calc(100vw - 20px);
        max-width: 400px;
    }
}
.wl-gain-card {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 15px 15px 14px;
    border-radius: 17px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid rgba(147, 197, 253, 0.9);
    border-left: 5px solid #0284c7;
    box-shadow:
        0 18px 40px -8px rgba(15, 23, 42, 0.30),
        0 6px 14px rgba(2, 132, 199, 0.16),
        inset 0 1px 0 #ffffff;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    text-align: left;
    animation: wlGainPopIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: opacity 0.28s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.wl-gain-card::before {
    content: "";
    position: absolute;
    top: -34px;
    right: -30px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}
.wl-gain-card.is-closing {
    opacity: 0;
    transform: translateX(24px) scale(0.95);
    pointer-events: none;
}
.wl-gain-card.is-clickable {
    cursor: pointer;
}
.wl-gain-card.is-clickable:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 46px -8px rgba(15, 23, 42, 0.32),
        0 8px 18px rgba(2, 132, 199, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}
.wl-gain-card.is-clickable:active {
    transform: translateY(0);
}
.wl-gain-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0369a1;
    background: rgba(224, 242, 254, 0.85);
    border: 1px solid rgba(125, 211, 252, 0.7);
    letter-spacing: 0.01em;
    transition: background 0.16s ease, transform 0.16s ease;
}
.wl-gain-link-arrow {
    display: inline-block;
    transition: transform 0.18s ease;
}
.wl-gain-card.is-clickable:hover .wl-gain-link-hint {
    background: rgba(186, 230, 253, 0.95);
}
.wl-gain-card.is-clickable:hover .wl-gain-link-arrow {
    transform: translateX(3px);
}
.wl-gain-card.is-item {
    border-color: #7dd3fc;
    border-left-color: #0284c7;
    background: linear-gradient(145deg, #ffffff 0%, #eaf6ff 100%);
}
.wl-gain-card.is-item::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
}
.wl-gain-card.is-money {
    border-color: #fcd34d;
    border-left-color: #d97706;
    background: linear-gradient(145deg, #ffffff 0%, #fef7db 100%);
    box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.28), 0 6px 16px rgba(245, 158, 11, 0.22), inset 0 1px 0 #ffffff;
}
.wl-gain-card.is-money::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 70%);
}
.wl-gain-card.is-money .wl-gain-link-hint {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}
.wl-gain-card.is-level {
    border-color: #c4b5fd;
    border-left-color: #7c3aed;
    background: linear-gradient(145deg, #ffffff 0%, #f3efff 100%);
    box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.28), 0 6px 16px rgba(124, 58, 237, 0.22), inset 0 1px 0 #ffffff;
}
.wl-gain-card.is-level::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 70%);
}
.wl-gain-card.is-level .wl-gain-link-hint {
    color: #5b21b6;
    background: #ede9fe;
    border-color: #c4b5fd;
}
.wl-gain-card.is-energy {
    border-color: #67e8f9;
    border-left-color: #0891b2;
    background: linear-gradient(145deg, #ffffff 0%, #e6fcff 100%);
}
.wl-gain-card.is-energy::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, rgba(6, 182, 212, 0) 70%);
}
.wl-gain-card.is-quest,
.wl-gain-card.is-win {
    border-color: #6ee7b7;
    border-left-color: #059669;
    background: linear-gradient(145deg, #ffffff 0%, #e8fdf3 100%);
    box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.28), 0 6px 16px rgba(16, 185, 129, 0.22), inset 0 1px 0 #ffffff;
}
.wl-gain-card.is-quest::before,
.wl-gain-card.is-win::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
}
.wl-gain-card.is-quest .wl-gain-link-hint,
.wl-gain-card.is-win .wl-gain-link-hint {
    color: #065f46;
    background: #d1fae5;
    border-color: #6ee7b7;
}
.wl-gain-card.is-market {
    border-color: #99f6e4;
    border-left-color: #0d9488;
    background: linear-gradient(145deg, #ffffff 0%, #e6fcf9 100%);
}
.wl-gain-card.is-market::before {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.20) 0%, rgba(20, 184, 166, 0) 70%);
}
.wl-gain-card.is-market .wl-gain-link-hint {
    color: #115e59;
    background: #ccfbf1;
    border-color: #5eead4;
}
.wl-gain-card.is-warn {
    border-color: #fca5a5;
    border-left-color: #dc2626;
    background: linear-gradient(145deg, #ffffff 0%, #fef0f0 100%);
}
.wl-gain-card.is-warn::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0) 70%);
}
.wl-gain-card.is-warn .wl-gain-link-hint {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}
.wl-gain-card.is-info {
    border-color: #cbd5e1;
    border-left-color: #475569;
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}
.wl-gain-card.is-info::before {
    background: radial-gradient(circle, rgba(100, 116, 139, 0.16) 0%, rgba(100, 116, 139, 0) 70%);
}
.wl-gain-icon {
    position: relative;
    overflow: hidden;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: radial-gradient(circle at 35% 30%, #ffffff 35%, #e2e8f0 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.42);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    line-height: 1;
    flex-shrink: 0;
    padding: 4px;
    box-sizing: border-box;
    animation: wlGainIconPop 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.wl-gain-icon::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 55%;
    height: 180%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(24deg);
    animation: wlGainSheen 2.4s ease-in-out 0.35s 1;
    pointer-events: none;
}
.wl-gain-card.is-item .wl-gain-icon {
    background: radial-gradient(circle at 35% 30%, #ffffff 40%, #bae6fd 100%);
    border-color: rgba(56, 189, 248, 0.55);
}
.wl-gain-card.is-money .wl-gain-icon {
    background: radial-gradient(circle at 35% 30%, #ffffff 40%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.55);
}
.wl-gain-card.is-quest .wl-gain-icon,
.wl-gain-card.is-win .wl-gain-icon {
    background: radial-gradient(circle at 35% 30%, #ffffff 40%, #a7f3d0 100%);
    border-color: rgba(16, 185, 129, 0.55);
}
.wl-gain-card.is-level .wl-gain-icon {
    background: radial-gradient(circle at 35% 30%, #ffffff 40%, #ddd6fe 100%);
    border-color: rgba(139, 92, 246, 0.55);
}
.wl-gain-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.18));
    position: relative;
    z-index: 1;
}
.wl-gain-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.wl-gain-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}
.wl-gain-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.wl-gain-kicker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0369a1;
}
.wl-gain-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}
.wl-gain-card.is-money .wl-gain-kicker { color: #b45309; }
.wl-gain-card.is-level .wl-gain-kicker { color: #6d28d9; }
.wl-gain-card.is-energy .wl-gain-kicker { color: #0e7490; }
.wl-gain-card.is-quest .wl-gain-kicker,
.wl-gain-card.is-win .wl-gain-kicker { color: #047857; }
.wl-gain-card.is-market .wl-gain-kicker { color: #0f766e; }
.wl-gain-card.is-warn .wl-gain-kicker { color: #b91c1c; }
.wl-gain-card.is-info .wl-gain-kicker { color: #475569; }
.wl-gain-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.10);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-gain-card.is-money .wl-gain-badge { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #78350f; border-color: #fcd34d; }
.wl-gain-card.is-level .wl-gain-badge { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #4c1d95; border-color: #c4b5fd; }
.wl-gain-card.is-energy .wl-gain-badge { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); color: #164e63; border-color: #67e8f9; }
.wl-gain-card.is-quest .wl-gain-badge,
.wl-gain-card.is-win .wl-gain-badge { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #064e3b; border-color: #6ee7b7; }
.wl-gain-card.is-market .wl-gain-badge { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); color: #134e4a; border-color: #5eead4; }
.wl-gain-card.is-warn .wl-gain-badge { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #7f1d1d; border-color: #fca5a5; }
.wl-gain-card.is-info .wl-gain-badge { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #334155; border-color: #cbd5e1; }
button.wl-gain-close,
.wl-gain-close {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(148, 163, 184, 0.18) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #475569 !important;
    box-shadow: none !important;
    width: 24px;
    height: 24px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
button.wl-gain-close:hover,
.wl-gain-close:hover {
    background: rgba(100, 116, 139, 0.30) !important;
    color: #0f172a !important;
    transform: scale(1.06) !important;
}
.wl-gain-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}
.wl-gain-msg {
    font-size: 0.79rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.38;
    margin-top: 2px;
    word-break: break-word;
}
.wl-gain-bar-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(148, 163, 184, 0.22);
}
.wl-gain-bar-fill {
    height: 100%;
    width: 100%;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    transform-origin: left center;
}
.wl-gain-card.is-money .wl-gain-bar-fill { background: linear-gradient(90deg, #d97706, #fbbf24); }
.wl-gain-card.is-level .wl-gain-bar-fill { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.wl-gain-card.is-energy .wl-gain-bar-fill { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.wl-gain-card.is-quest .wl-gain-bar-fill,
.wl-gain-card.is-win .wl-gain-bar-fill { background: linear-gradient(90deg, #059669, #34d399); }
.wl-gain-card.is-market .wl-gain-bar-fill { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.wl-gain-card.is-warn .wl-gain-bar-fill { background: linear-gradient(90deg, #dc2626, #f87171); }
.wl-gain-card.is-info .wl-gain-bar-fill { background: linear-gradient(90deg, #475569, #94a3b8); }
@keyframes wlGainPopIn {
    0% { opacity: 0; transform: translateY(-16px) scale(0.93); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wlGainIconPop {
    0% { transform: scale(0.76) rotate(-6deg); }
    65% { transform: scale(1.06) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes wlGainSheen {
    0% { left: -75%; }
    100% { left: 145%; }
}


/* ==========================================================================
   PORTAIL D'ACCUEIL IMMERSIF "ENVIE DE JOUER" (index.php - 2026)
   ========================================================================== */
body.wl-landing-body {
    background-color: #051538;
    background-image:
        radial-gradient(circle at 20% 12%, rgba(245, 158, 11, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.18) 0%, transparent 45%),
        linear-gradient(180deg, rgba(4, 17, 46, 0.72) 0%, rgba(7, 26, 68, 0.68) 48%, rgba(3, 12, 34, 0.88) 100%),
        url("../image/Skin1/Interface/bg_army_cartoon.jpg");
    background-size: cover;
    background-position: center top;
}

.wl-lp-wrap {
    max-width: 1240px;
    padding-top: 14px;
}

.wl-lp-topbar {
    padding: 10px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(7, 26, 66, 0.94) 0%, rgba(11, 39, 94, 0.90) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
}

.wl-lp-nav .wl-lp-nav-login {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #e0f2fe !important;
}

.wl-lp-nav .wl-lp-nav-login:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    border-color: #38bdf8 !important;
}

/* --- HERO SPLIT --- */
.wl-lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(330px, 0.92fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.wl-lp-hero-stage {
    position: relative;
    border-radius: 20px;
    border: 2px solid rgba(251, 191, 36, 0.58);
    background: linear-gradient(145deg, rgba(8, 30, 76, 0.95) 0%, rgba(5, 18, 48, 0.96) 65%, rgba(12, 42, 96, 0.94) 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wl-lp-hero-bg-art {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(6, 22, 58, 0.58) 0%, rgba(5, 18, 48, 0.88) 46%, rgba(5, 18, 48, 0.96) 100%),
        url("../image/Skin1/menu/accueil.jpg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.42;
    pointer-events: none;
}

.wl-lp-hero-inner {
    position: relative;
    z-index: 1;
    padding: 22px 26px 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    box-sizing: border-box;
}

.wl-lp-live-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wl-lp-live-pill,
.wl-lp-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.32);
    backdrop-filter: blur(6px);
}

.wl-lp-live-pill {
    background: rgba(6, 78, 59, 0.68);
    border-color: rgba(52, 211, 153, 0.55);
    color: #ecfdf5;
}

.wl-lp-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.75);
    animation: wlLpPulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes wlLpPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.75); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.wl-lp-hero-title {
    margin: 0;
    font-size: clamp(1.62rem, 2.65vw, 2.32rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.wl-lp-hero-highlight {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 48%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.28));
}

.wl-lp-hero-lead {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.5;
    color: #dbeafe;
    max-width: 620px;
}

.wl-lp-hero-lead strong {
    color: #fde68a;
}

/* Éventail de 4 cartes de Worms dans le Hero */
.wl-lp-squad-fan {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 2px 0 4px 0;
}

button.wl-lp-fan-card {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 14px !important;
    border: 2px solid rgba(251, 191, 36, 0.65) !important;
    background: #0f172a !important;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1 / 1;
    display: block;
}

button.wl-lp-fan-card.is-c1 { transform: rotate(-2.2deg); }
button.wl-lp-fan-card.is-c2 { transform: rotate(-0.7deg) translateY(-3px); }
button.wl-lp-fan-card.is-c3 { transform: rotate(0.8deg) translateY(-3px); border-color: #fbbf24 !important; }
button.wl-lp-fan-card.is-c4 { transform: rotate(2.2deg); border-color: #fb923c !important; }

button.wl-lp-fan-card:hover,
button.wl-lp-fan-card:focus-visible {
    transform: translateY(-7px) scale(1.04) rotate(0deg) !important;
    border-color: #fef08a !important;
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.38) !important;
    z-index: 2;
}

button.wl-lp-fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wl-lp-fan-tag {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(8, 22, 54, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.2px;
    backdrop-filter: blur(4px);
}

.wl-lp-fan-tag.is-gold {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.94), rgba(120, 53, 15, 0.94));
    border-color: #fde68a;
    color: #fef9c3;
}

.wl-lp-fan-tag.is-fire {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.94), rgba(124, 45, 18, 0.94));
    border-color: #fdba74;
    color: #ffedd5;
}

/* Zone CTA principale */
.wl-lp-cta-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

a.wl-lp-play-cta,
a.wl-lp-play-cta:link,
a.wl-lp-play-cta:visited {
    position: relative;
    flex: 1 1 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 13px 22px;
    border-radius: 15px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 55%, #059669 100%);
    border: 2px solid #86efac;
    box-shadow: 0 5px 0 #065f46, 0 14px 30px rgba(16, 185, 129, 0.42);
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center;
    overflow: hidden;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

a.wl-lp-play-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-22deg);
    animation: wlLpCtaSheen 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wlLpCtaSheen {
    0%, 58% { left: -80%; }
    100% { left: 145%; }
}

a.wl-lp-play-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 7px 0 #065f46, 0 18px 34px rgba(16, 185, 129, 0.54);
}

a.wl-lp-play-cta:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #065f46, 0 8px 16px rgba(16, 185, 129, 0.35);
}

.wl-lp-play-cta-main {
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.32);
}

.wl-lp-play-cta-sub {
    font-size: 0.77rem;
    font-weight: 700;
    color: #dcfce7;
    background: rgba(6, 78, 59, 0.45);
    padding: 2px 10px;
    border-radius: 999px;
}

.wl-lp-cta-side-btns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

a.wl-lp-ghost-btn,
a.wl-lp-ghost-btn:link,
a.wl-lp-ghost-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(251, 191, 36, 0.48);
    color: #fef3c7 !important;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.16s ease;
    flex: 1;
}

a.wl-lp-ghost-btn:hover {
    background: rgba(251, 191, 36, 0.22);
    border-color: #fbbf24;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.wl-lp-mobile-login-jump {
    display: none !important;
}

.wl-lp-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.77rem;
    font-weight: 700;
    color: #cbd5e1;
}

/* --- CONSOLE DE COMMANDEMENT (LOGIN) --- */
.wl-lp-login-card {
    margin-bottom: 0 !important;
    border-radius: 20px !important;
    border: 2px solid rgba(251, 191, 36, 0.62) !important;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45) !important;
}

.wl-lp-login-header {
    background: linear-gradient(135deg, #0b2d6b 0%, #004ea8 100%) !important;
    padding: 14px 18px !important;
}

.wl-lp-login-body {
    padding: 16px 18px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wl-lp-server-select {
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid #93c5fd;
    border-radius: 10px;
    background: #eff6ff;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
}

.wl-lp-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.81rem;
}

.wl-lp-remember-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.wl-lp-remember-lbl input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #005bba;
    cursor: pointer;
}

a.wl-lp-forgot-link {
    color: #005bba !important;
    font-weight: 700;
    text-decoration: none;
}

a.wl-lp-forgot-link:hover {
    text-decoration: underline;
}

.wl-lp-login-submit {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0, 91, 186, 0.32) !important;
}

.wl-lp-newplayer-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 0.82rem;
    color: #065f46;
    font-weight: 700;
}

.wl-lp-newplayer-strip a {
    color: #047857 !important;
    font-weight: 900;
    text-decoration: none !important;
}

.wl-lp-newplayer-strip a:hover {
    text-decoration: underline !important;
}

/* --- SECTIONS VITRINE --- */
.wl-lp-section {
    margin-bottom: 22px;
    background: linear-gradient(155deg, rgba(8, 28, 70, 0.92) 0%, rgba(5, 18, 46, 0.95) 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.wl-lp-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.wl-lp-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fbbf24;
    margin-bottom: 3px;
}

.wl-lp-sec-title {
    margin: 0;
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    font-weight: 900;
    color: #ffffff;
}

.wl-lp-sec-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.42);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
}

/* --- SÉLECTEUR DE 8 CLASSES --- */
.wl-lp-class-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

button.wl-lp-class-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    border: 2px solid rgba(148, 163, 184, 0.28) !important;
    color: #cbd5e1 !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.16s ease;
}

button.wl-lp-class-tab img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

button.wl-lp-class-tab span {
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

button.wl-lp-class-tab:hover {
    border-color: rgba(251, 191, 36, 0.65) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

button.wl-lp-class-tab.is-active {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.26) 0%, rgba(180, 83, 9, 0.34) 100%) !important;
    border-color: #fbbf24 !important;
    color: #fef08a !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28) !important;
    transform: translateY(-2px);
}

/* Spotlight Classe sélectionnée */
.wl-lp-spotlight {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    background: rgba(15, 23, 42, 0.68);
    border: 1.5px solid rgba(251, 191, 36, 0.36);
    border-radius: 16px;
    padding: 16px 18px;
}

.wl-lp-spot-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2.5px solid #fbbf24;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    aspect-ratio: 1 / 1;
    background: #020617;
}

.wl-lp-spot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wl-lp-spot-tier {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.wl-lp-spot-tier.is-starter { background: rgba(5, 150, 105, 0.92); border-color: #6ee7b7; }
.wl-lp-spot-tier.is-agile   { background: rgba(79, 70, 229, 0.92); border-color: #a5b4fc; }
.wl-lp-spot-tier.is-assault { background: rgba(217, 119, 6, 0.92); border-color: #fcd34d; }
.wl-lp-spot-tier.is-royal   { background: linear-gradient(135deg, #b45309, #78350f); border-color: #fde68a; color: #fef9c3; }
.wl-lp-spot-tier.is-mythic  { background: linear-gradient(135deg, #dc2626, #9a3412); border-color: #fdba74; }
.wl-lp-spot-tier.is-cryo    { background: linear-gradient(135deg, #0284c7, #1e3a8a); border-color: #7dd3fc; }

.wl-lp-spot-info {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
}

.wl-lp-spot-top h3 {
    margin: 0 0 7px 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
}

.wl-lp-spot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wl-lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: #e2e8f0;
}

.wl-lp-chip small {
    font-weight: 600;
    opacity: 0.88;
}

.wl-lp-chip.is-pole {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.55);
    color: #dbeafe;
}

.wl-lp-chip.is-gold {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(251, 191, 36, 0.55);
    color: #fef08a;
}

.wl-lp-spot-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.52;
    color: #cbd5e1;
}

.wl-lp-stat-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wl-lp-stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #e2e8f0;
}

.wl-lp-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.85);
    overflow: hidden;
}

.wl-lp-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-lp-bar-fill.is-atk { background: linear-gradient(90deg, #f97316, #ef4444); }
.wl-lp-bar-fill.is-tac { background: linear-gradient(90deg, #6366f1, #38bdf8); }
.wl-lp-bar-fill.is-spd { background: linear-gradient(90deg, #10b981, #34d399); }

.wl-lp-spot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.wl-lp-spot-perk {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fde68a;
}

a.wl-lp-spot-cta,
a.wl-lp-spot-cta:link,
a.wl-lp-spot-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1.5px solid #fde68a;
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.34);
    transition: transform 0.15s ease, filter 0.15s ease;
}

a.wl-lp-spot-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

/* --- 4 PILIERS DE GAMEPLAY --- */
.wl-lp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wl-lp-pillar-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1.5px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wl-lp-pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.wl-lp-pillar-media {
    position: relative;
    height: 142px;
    overflow: hidden;
    background: #020617;
}

.wl-lp-pillar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.wl-lp-pillar-card:hover .wl-lp-pillar-media img {
    transform: scale(1.06);
}

.wl-lp-pillar-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(8, 24, 60, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.55);
    color: #fef08a;
    font-size: 0.74rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.wl-lp-pillar-body {
    padding: 14px 15px 16px 15px;
    flex: 1;
}

.wl-lp-pillar-body h3 {
    margin: 0 0 6px 0;
    font-size: 0.98rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.28;
}

.wl-lp-pillar-body p {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.48;
    color: #cbd5e1;
}

.wl-lp-pillar-body strong {
    color: #fde68a;
}

/* --- BAS DE PAGE : VIDÉO + PALMARÈS --- */
.wl-lp-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.wl-lp-panel {
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wl-lp-panel-head {
    background: linear-gradient(135deg, #0b2d6b 0%, #004ea8 100%);
    color: #ffffff;
    padding: 13px 18px;
    font-size: 1rem;
    font-weight: 800;
    border-bottom: 2.5px solid #ffb533;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wl-lp-panel-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.wl-lp-video-frame {
    border-radius: 13px;
    overflow: hidden;
    border: 2px solid #1e293b;
    background: #020617;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.wl-lp-video-caption {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wl-lp-video-caption h3 {
    margin: 0 0 4px 0;
    font-size: 1.06rem;
    font-weight: 900;
    color: #0f172a;
}

.wl-lp-video-caption p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #475569;
}

.wl-lp-video-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Palmarès Podium */
a.wl-lp-top100-pill {
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 181, 51, 0.22);
    border: 1px solid #fbbf24;
    color: #fef9c3 !important;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none !important;
}

a.wl-lp-top100-pill:hover {
    background: #f59e0b;
    color: #ffffff !important;
}

.wl-lp-hof-body {
    gap: 6px;
}

.wl-lp-hof-sub {
    font-size: 0.78rem;
    font-weight: 900;
    color: #003f87;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.wl-lp-podium-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wl-lp-podium-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.wl-lp-podium-row.is-r1 {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.wl-lp-podium-row.is-r2 {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.wl-lp-podium-row.is-r3 {
    background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.wl-lp-rank-medal {
    width: 26px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 900;
    color: #475569;
    flex-shrink: 0;
}

.wl-lp-rank-num {
    width: 24px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #475569;
    flex-shrink: 0;
}

.wl-lp-podium-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.wl-lp-podium-name {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-lp-mini-flag {
    height: 13px;
    width: auto;
    border-radius: 2px;
    flex-shrink: 0;
}

.wl-lp-podium-score {
    font-size: 0.82rem;
    font-weight: 900;
    color: #004ea8;
    white-space: nowrap;
}

.wl-lp-podium-score small {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
}

.wl-lp-nation-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    flex-shrink: 0;
}

.wl-lp-nation-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wl-lp-nation-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wl-lp-nation-pts {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
}

.wl-lp-nation-bar {
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.wl-lp-nation-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #005bba, #f59e0b);
}

a.wl-lp-hof-more {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #004ea8 !important;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

a.wl-lp-hof-more:hover {
    background: #dbeafe;
}

/* --- BANNIÈRE FINALE CTA --- */
.wl-lp-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(11, 45, 107, 0.96) 0%, rgba(6, 23, 58, 0.98) 100%);
    border: 2px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.wl-lp-final-copy h2 {
    margin: 0 0 4px 0;
    font-size: clamp(1.18rem, 1.9vw, 1.48rem);
    font-weight: 900;
    color: #ffffff;
}

.wl-lp-final-copy p {
    margin: 0;
    font-size: 0.9rem;
    color: #dbeafe;
}

.wl-lp-final-copy strong {
    color: #fde68a;
}

a.wl-lp-play-cta.is-compact {
    flex: 0 1 auto;
    min-width: 280px;
}

.wl-lp-footer {
    margin-top: 22px;
}

.wl-lp-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.wl-lp-footer-links a {
    color: #cbd5e1 !important;
    font-weight: 700;
    text-decoration: none;
}

.wl-lp-footer-links a:hover {
    color: #fbbf24 !important;
    text-decoration: underline;
}

/* --- RESPONSIVE TABLETTE & MOBILE (<= 980px & <= 640px) --- */
@media (max-width: 980px) {
    .wl-lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    /* Sur le portail de jeu, le visiteur découvre d'abord la scène héroïque + CTA Jouer,
       puis la Console de Connexion juste en dessous (avec bouton d'accès rapide) */
    body.wl-landing-body .wl-lp-login-card {
        order: 0 !important;
    }
    .wl-lp-mobile-login-jump {
        display: inline-flex !important;
    }
    .wl-lp-cta-side-btns {
        flex-direction: row;
        width: 100%;
    }
    .wl-lp-class-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .wl-lp-spotlight {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 14px;
    }
    .wl-lp-pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wl-lp-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wl-lp-hero-inner {
        padding: 15px 14px 14px 14px;
        gap: 11px;
    }
    .wl-lp-live-pill,
    .wl-lp-stat-chip {
        font-size: 0.71rem;
        padding: 4px 9px;
    }
    .wl-lp-hero-title {
        font-size: 1.44rem;
    }
    .wl-lp-hero-lead {
        font-size: 0.86rem;
        line-height: 1.42;
    }
    .wl-lp-squad-fan {
        gap: 7px;
    }
    button.wl-lp-fan-card.is-c1,
    button.wl-lp-fan-card.is-c2,
    button.wl-lp-fan-card.is-c3,
    button.wl-lp-fan-card.is-c4 {
        transform: none;
    }
    .wl-lp-fan-tag {
        left: 3px;
        right: 3px;
        bottom: 3px;
        padding: 2px 3px;
        font-size: 0.61rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    a.wl-lp-play-cta,
    a.wl-lp-play-cta:link,
    a.wl-lp-play-cta:visited {
        flex: 1 1 100%;
        padding: 12px 12px;
    }
    .wl-lp-play-cta-main {
        font-size: 0.98rem;
    }
    .wl-lp-play-cta-sub {
        font-size: 0.66rem;
        padding: 2px 8px;
        white-space: nowrap;
    }
    a.wl-lp-ghost-btn,
    a.wl-lp-ghost-btn:link,
    a.wl-lp-ghost-btn:visited {
        font-size: 0.78rem;
        padding: 9px 10px;
    }
    .wl-lp-trust-bar {
        font-size: 0.71rem;
        gap: 5px 10px;
    }
    .wl-lp-section {
        padding: 14px 12px;
        border-radius: 16px;
        margin-bottom: 14px;
    }
    .wl-lp-class-tabs {
        gap: 6px;
    }
    button.wl-lp-class-tab {
        padding: 4px !important;
        border-radius: 10px !important;
    }
    button.wl-lp-class-tab span {
        font-size: 0.67rem;
    }
    .wl-lp-spotlight {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .wl-lp-spot-visual {
        display: flex;
        justify-content: center;
    }
    .wl-lp-spot-frame {
        width: 138px;
        height: 138px;
    }
    .wl-lp-spot-top h3 {
        font-size: 1.15rem;
        text-align: center;
    }
    .wl-lp-spot-badges {
        justify-content: center;
    }
    .wl-lp-stat-bars {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .wl-lp-spot-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    a.wl-lp-spot-cta,
    a.wl-lp-spot-cta:link,
    a.wl-lp-spot-cta:visited {
        justify-content: center;
    }
    .wl-lp-pillars-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .wl-lp-pillar-card {
        flex-direction: row;
        align-items: stretch;
    }
    .wl-lp-pillar-media {
        width: 112px;
        height: auto;
        min-height: 106px;
        flex-shrink: 0;
    }
    .wl-lp-pillar-badge {
        left: 5px;
        right: 5px;
        bottom: 5px;
        padding: 2px 5px;
        font-size: 0.62rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .wl-lp-pillar-body {
        padding: 10px 12px;
    }
    .wl-lp-pillar-body h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    .wl-lp-pillar-body p {
        font-size: 0.77rem;
        line-height: 1.38;
    }
    .wl-lp-final-cta {
        padding: 16px 14px;
        text-align: center;
        justify-content: center;
    }
    .wl-lp-final-actions,
    a.wl-lp-play-cta.is-compact {
        width: 100%;
        min-width: 0;
    }
}
