/* ==========================
   global.css
   ========================== */

:root {
    --color-link: #008CBA;
    --color-link-hover: #008CBA;
    --border-color: #444;
    --th-bg: #333;
    --table-bg: #222;
    --footer-color: #aaa;
    --container-radius: 8px;
    --color-text: #CCCCCC;
    --color-bg: #121212;
    --color-container: #1e1e26;
    --color-cta: #bef264;
    --color-info: #3498db;
    --color-btn-main: #005f7f;
    --color-btn-hover: #008CBA;
    --color-danger: #ff4d4d;
    --color-submenu: #005f7f;
    --color-submenu-hover: #008CBA;
    --color-down: #f56565;
    --color-up: #48bb78;
    --color-neutral: #888;
    --border-radius: 4px;
    --padding-base: 12px;
    --gap-base: 12px;
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Satoshi', system-ui, -apple-system, sans-serif;
    --card-shadow: 0 8px 24px rgba(0,0,0,0.3);
    --color-swing: #ffca28;
    --color-scalping: #af52de;
    --color-elite: #f0b90b;
}

html, body {
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: var(--padding-base);
    line-height: 1.5;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

/* ===== CONTAINER ===== */
.container {
    margin: 0 auto;
    background: var(--color-container);
    padding: var(--padding-base);
    border-radius: var(--container-radius);
    max-width: 1200px;
}

.static-info-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--color-neutral);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: not-allowed;
}

.static-info-box i {
    color: var(--color-cta);
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .static-info-box {
        font-size: 0.8rem; 
        padding: 8px;      
        gap: 5px;
    }
}

/* === TABS === */
.tab-content { display: none; }
.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* La valeur exacte de ton .auth-form */
    width: 100%;
}
.tabs-nav { display: flex; gap: 10px; margin-bottom: -1px; }
.tab-link { 
    background: #1a1a1a; border: 1px solid #333; color: #888; 
    padding: 10px 20px; cursor: pointer; border-radius: 8px 8px 0 0;
}
.tab-link.active { 
    background: #222; border-color: var(--neon-color); color: #fff; 
    border-bottom: 2px solid #222; 
}

/* === BUTTONS === */
button, .btn {
    font-weight: bold;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-btn-main);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-btn-hover);
}

.btn-secondary {
    color: var(--color-neutral);              
    background: transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #444;  
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--color-neutral);      
    color: #fff;             
    background: rgba(255, 255, 255, 0.05); 
}

.btn-danger {
    color: var(--color-danger);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--color-danger);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: var(--color-danger);
    color: #fff;
}

.btn-cta {
    background: var(--color-cta);
    color: #000;
}
.btn-cta:hover {
    filter: brightness(1.1);
}

.btn-cta-small {
    background: var(--color-cta);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-cta-small:hover {
    color: #000;
    background: var(--color-cta);
    box-shadow: 0 0 10px var(--color-cta);
    text-decoration: none;
}

.btn-submenu {
    background: var(--color-submenu);
    color: #fff;
}
.btn-submenu:hover {
    background: var(--color-submenu-hover);
}

/* ===== TABLES ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table,
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--table-bg);
    margin-top: 0;
    border-radius: var(--container-radius);
    overflow: hidden;
    border: none;
}

th {
    padding: 10px;
    text-align: left;
    background: var(--th-bg);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    color: var(--color-neutral);
    border: none;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

tr:hover {
    background: rgba(255,255,255,0.02);
}

td {
    padding: 10px;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 14px 10px;
    white-space: nowrap;
}

td a {
    text-decoration: none;
    color: var(--color-link);
}

td a:hover {
    text-decoration: underline;
    color: var(--color-link-hover);
}

.modern-table {
    width: 100%;
    border-collapse: collapse; 
    font-size: 0.85rem;
    color: var(--color-text); 
    background: var(--table-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
}

.modern-table th {
    padding: 12px 10px;
    background: var(--th-bg); 
    color: var(--color-neutral); 
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
    padding-right: 25px;
    transition: all 0.2s ease;
}

.modern-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02); 
}

.modern-table th::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0dc";
    position: absolute;
    right: 8px;
    opacity: 0.2;
    font-size: 0.7rem;
}

.modern-table th.asc::after {
    content: "\f0de";
    opacity: 1;
    color: var(--color-cta);
}

.modern-table th.desc::after {
    content: "\f0dd";
    opacity: 1;
    color: var(--color-cta);
}

.modern-table th.asc, 
.modern-table th.desc {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* === TILES / CARDS === */
.card {
    background: var(--color-container);
    border-radius: var(--border-radius);
    padding: var(--padding-base);
    margin-bottom: var(--gap-base);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}
.card h3 {
    margin-top: 0;
    color: var(--color-cta);
}
.card p {
    margin: 0.5rem 0;
}

.card .static-info-box {
    transition: background 0.2s;
    border: 1px solid var(--border-color);
}

.card .static-info-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.card input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--color-cta);
}

/* --- Expert --- */
.card-signal {
    border-left: 4px solid var(--color-cta);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-signal .score-badge {
    background: rgba(0, 255, 0, 0.1);
    color: var(--color-cta);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    align-self: flex-start;
}

/* --- Premium --- */
.card-locked {
    position: relative;
    overflow: hidden;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.card-locked::after {
    content: "🔒 S'ABONNER";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-locked:hover::after {
    opacity: 1;
}

/* --- Mini-Watchlist --- */
.card-mini-wl {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.card-mini-wl .ticker {
    font-weight: 800;
    color: #fff;
}

/* --- Compact-Cryptolist --- */
.crypto-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.card-mini-cr-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-mini-cr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--color-container);
    border-radius: var(--border-radius);
    border-left: 4px solid #444;
    transition: transform 0.1s ease, background 0.2s ease;
}

.card-mini-cr:hover {
    background: #2a2a32;
    transform: scale(1.02);
}

.border-up { border-left-color: var(--color-up) !important; }
.border-down { border-left-color: var(--color-down) !important; }

.card-mini-cr .ticker {
    font-weight: bold;
    font-size: 0.9rem;
    color: #FFF;
}

.card-mini-cr .price {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.card-mini-cr .pct {
    font-size: 0.75rem;
    font-weight: bold;
}

/* === FORM === */
form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-base);
    background: var(--color-container);
    padding: var(--padding-base);
    border-radius: var(--border-radius);
}

form label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

form input, form select, form textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #444;
    background: #222;
    color: var(--color-text);
    width: 100%;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--color-cta);
}

/* === MESSAGE  === */
.msg_error {
    color: var(--color-down);
    background: rgba(245, 101, 101, 0.1);
    padding: 10px;
    border-radius: var(--border-radius);
}

.msg_success {
    color: var(--color-up);
    background: rgba(72, 187, 120, 0.1);
    padding: 10px;
    border-radius: var(--border-radius);
}

/* === GRID / RESPONSIVE LAYOUT === */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-base);
}
.grid .col {
    flex: 1 1 calc(33.333% - var(--gap-base));
    min-width: 250px;
}

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
    .grid .col {
        flex: 1 1 calc(50% - var(--gap-base));
    }
}

@media (max-width: 480px) {
    .grid .col {
        flex: 1 1 100%;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 2rem 1rem;
    color: var(--footer-color);
    font-size: 0.875rem;
    text-align: center;
}

.footer-logo {
    display: block;
    margin: 0 auto 1rem;
    width: 48px;
    height: auto;
}

.site-footer .footer-copy {
    margin-bottom: 0.5rem;
}

.site-footer .footer-link a {
    color: var(--footer-color);
    text-decoration: none;
    margin: 0 0.5rem;
    line-height: 1.5;
    gap: 0.4rem;
}

.site-footer .footer-link a:hover {
    color: #fff;
}

.site-footer .footer-disclaimer {
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.5;
    color: var(--footer-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    html, body {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .site-footer .footer-link a {
        color: var(--footer-color) !important;
        margin: 0 0.5rem;
    }

    .site-footer .footer-link a:hover {
        color: #fff !important;
    }

    .table-responsive table {
        min-width: 300px;
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--color-container);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--color-cta); /* Rappel de ton vert */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    gap: 15px;
}

.cookie-text {
    font-size: 0.85rem;
    color: var(--color-text);
    max-width: 70%;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column; 
        align-items: stretch;  
        bottom: 10px;
        left: 10px;
        right: 10px;
        text-align: center;
    }

    .cookie-text {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .cookie-btns {
        flex-direction: column; 
        width: 100%;
    }

    .cookie-btns button {
        width: 100%; 
        padding: 12px;
    }
}

/* Overlay */
.popup-overlay {
    display: none; /* Changé en 'flex' par le JS */
    position: fixed;
    z-index: 20000;
    left: 0; 
    top: 0;
    width: 100vw; 
    height: 100vh;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    
    /* Centrage parfait */
    align-items: center; 
    justify-content: center;
    
    /* Sécurité pour mobile */
    box-sizing: border-box;
}

/* Modal popup */
.popup-content {
    background-color: var(--color-container);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-cta);
    max-width: 500px;
    width: 85%;
    margin: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    max-height: 85vh; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}   

.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#popupTitle { font-size: 1.2rem; color: var(--color-cta); margin-top: 0; }

.popup-content h2 {
    color: var(--color-cta);
    font-size: 1.2rem;
    margin-top: 0rem;
    text-align: center;
}

.popup-content h3 {
    color: var(--color-cta);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
    letter-spacing: 1px;
}

.popup-content p {
    color: var(--color-text);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left; 
}

.popup-content h3:first-of-type {
    margin-top: 0.5rem;
}

.popup-content::-webkit-scrollbar {
    width: 5px;
}
.popup-content::-webkit-scrollbar-thumb {
    background: var(--color-cta);
    border-radius: 10px;
}

/* ===== MENU ===== */
.menu-selector {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 0rem;
}

.menu-tab {
    background: none;
    border: none;
    color: var(--color-neutral);
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: 0.3s;
}

.menu-tab.active {
    color: var(--color-cta);
    border-bottom: 2px solid var(--color-cta) !important;
}

.menu-tab span {
    display: inline;
    margin-right: 5px;
}

@media (max-width: 600px) {
    .menu-tab {
        font-size: 0.8rem; 
        padding: 5px;
    }

    .menu-tab span {
        display: block;
        margin-right: 0;
        margin-bottom: 2px;
    }
}

/* ===== OTHERS ===== */

.no-wrap { white-space: nowrap; }
.wrap-cell { white-space: normal; word-break: break-word; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-muted { color: var(--color-neutral); }

.text-success { color: var(--color-up); }
.text-up { color: var(--color-up); }   
.text-down { color: var(--color-down); }  
.text-neutral { color: var(--color-neutral); } 

.up { color: var(--color-up); }   
.down { color: var(--color-down); }  
.neutral { color: var(--color-neutral); } 

.small { font-size: 0.8rem; }
.small-1 { font-size: 0.6rem !important; }
.small-2 { font-size: 0.7rem !important; }
.small-3 { font-size: 0.8rem !important; }

.font-mono { font-family: 'Courier New', monospace; }

.text-h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-cta);
}

.text-h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-cta);
}

.text-h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-cta);
}

.tf-btn.active {
    background: var(--color-cta);
    color: #000;
    border-color: var(--color-cta);
}

.asset-link {
    color: var(--color-link);
    text-decoration: none;
    font-weight: bold;
}

.asset-link:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.sub-link {
    color: var(--color-cta);
    text-decoration: underline;
}

.trend-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-up { 
    background: rgba(72, 187, 120, 0.1); 
    color: var(--color-up); 
    border-color: rgba(72, 187, 120, 0.2); 
}

.badge-down { 
    background: rgba(245, 101, 101, 0.1); 
    color: var(--color-down); 
    border-color: rgba(245, 101, 101, 0.2); 
}

.badge-neutral { 
    background: rgba(255, 255, 255, 0.05); 
    color: var(--color-neutral); 
    border-color: var(--border-color); 
}

.hl-cell { cursor: pointer; transition: all 0.2s; position: relative; min-width: 80px; }
.hl-cell:hover { filter: brightness(1.2); }

.hl-near-high { 
    background: rgba(220, 38, 38, 0.2) !important; 
    box-shadow: inset 0 0 10px rgba(220, 38, 38, 0.2);
    color: var(--color-danger);
    font-weight: bold;
}

.hl-near-low { 
    background: rgba(16, 185, 129, 0.2) !important; 
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
    color: var(--color-cta);
    font-weight: bold;
}

.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }

.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }

.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

.ml-4 { margin-left: 1.5rem; }
.mr-4 { margin-right: 1.5rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }

.mx-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.mx-container > .card {
    width: 100%;
    max-width: 600px; 
    height: fit-content;
}

.in-zone {
    background: rgba(231, 76, 60, .18);
}

.near-zone {
    background: rgba(46, 204, 113, .15); 
}        

.zone-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zone-badge.in {
    color: var(--color-danger);
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.6);
    animation: blink-red 1s infinite;
}

.zone-badge.near {
    color: var(--color-cta);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.5);
    animation: blink-green 1s infinite;
}

svg {
    display: block;
}

@keyframes blink-red {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes blink-green {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- Timeframe Selector --- */
.tf-selector {
    display: flex;
    gap: 5px;
    margin: 0;         
}

.tf-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--color-neutral);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.tf-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tf-btn.active {
    background: var(--color-cta);
    color: #000;
    border-color: var(--color-cta);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-right:10px;
}

/* Tech Spinner */
.loader {
    border: 3px solid #333;
    border-top: 3px solid var(--color-cta);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FILTERS ===== */
.bar-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.bar-filters_compact {
    margin: 0;              
    display: flex;
    align-items: center;    
    width:200px;
}

.bar-filters .filter-item {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.bar-filters input[type="text"],
.bar-filters select {
    height: 38px;
    padding: 0 1rem !important;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: var(--color-text);
    transition: all 0.3s ease;
    width: 100%;
}

.bar-filters select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
    padding-right: 2.5rem !important; 
}

.bar-filters input:focus,
.bar-filters select:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
}

.bar-filters .btn-secondary {
    height: 38px;
    padding: 0 20px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .bar-filters {
        flex-direction: column;
        gap: 8px;
    }

    .filter-row {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .filter-row .filter-item {
        flex: 1;
    }

    .filter-row .btn-secondary {
        width: 50px;
        padding: 0;
    }
}

@media (max-width: 600px) {

    .bar-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .bar-filters .filter-item {
        max-width: 100%;
    }

    /* ligne 2 OK */
    .filter-row {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .filter-row .filter-item {
        flex: 1;
    }

    .filter-row .btn-secondary {
        width: 50px;
        padding: 0;
    }
}

@media (min-width: 601px) {

    .filter-row {
        display: contents;
    }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 35px;
    height: 35px;
    padding: 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
}

.pagination .dots {
    color: #555;
    padding: 0 5px;
    font-weight: bold;
    user-select: none;
}

/* ===== BADGE ===== */
.badge-tag {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-tag.success {
    background: rgba(0, 255, 0, 0.1);
    color: var(--color-cta); 
    border-color: rgba(0, 255, 0, 0.2);
}

.badge-tag.critic {
    background: rgba(255, 77, 77, 0.1);
    color: var(--color-down);
    border-color: rgba(245, 101, 101, 0.2);
}

.badge-tag.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--color-submenu);
    border-color: rgba(243, 156, 18, 0.2);
}

.badge-tag.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--color-info);
    border-color: rgba(52, 152, 219, 0.2);
}

/* ===== LOGS PANEL ===== */
#log-panel {
    position: fixed; 
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse; 
}

.log-entry {
    background: #0A0A0A;
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.80rem;
    border: 1px solid #1A2333;
    border-left: 3px solid #4eaaf1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);    
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.log-entry.show {
    opacity: 1;
    transform: translateX(0);
}

.log-entry.INFO    { border-left: 3px solid #4eaaf1; color: #bfdbfe; } 
.log-entry.SUCCESS { border-left: 3px solid #22c55e; color: #bbf7d0; }
.log-entry.WARNING { border-left: 3px solid #f59e0b; color: #fde68a; }
.log-entry.CRITIC  { 
    border-left: 3px solid #ef4444; 
    color: #fca5a5; 
    background: rgba(220, 38, 38, 0.2); 
    animation: shake 0.4s ease-in-out; 
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.log-ts {
    opacity: 0.3;
    font-size: 0.7rem;
    margin-right: 8px;
    font-weight: normal;
}

/* ===== MAINTENANCE ===== */
.maintenance-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFF;
}

.maintenance-details {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #AAA;
}

/* ===== LOCKED ===== */
.premium-split-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
}

.feature-info-col {
    flex: 1;
    min-width: 350px;
    max-width: 700px;
}

.lock-action-col {
    flex: 0 0 400px; 
    min-width: 320px;
}

.feature-box-card {
    background: rgba(30, 34, 45, 0.5);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 10px;
}

.cta-lock-wrapper {
    background: rgba(23, 25, 35, 0.95);
    border: 1px solid #2d3748;
    border-top: 3px solid #f1c40f;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

@media (max-width: 992px) {
    .premium-split-layout {
        flex-direction: column;
        align-items: center;
    }
    .lock-action-col, .feature-info-col {
        width: 100%;
        max-width: 100%;
    }
}

.btn-cta-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f1c40f 0%, #d4ac0d 100%);
    color: #000 !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.btn-cta-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.6);
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.small-info {
    font-size: 0.8rem;
    opacity: 0.6;
}

.view-switcher { background: rgba(20, 22, 26, 0.8); border-radius: 8px; padding: 4px; display: inline-flex; border: 1px solid #333; }
.view-btn { padding: 6px 16px; border-radius: 6px; cursor: pointer; color: #888; transition: 0.3s; font-weight: 600; font-size: 0.8rem; }
.view-btn.active { background: #4eaaf1; color: #fff; box-shadow: 0 0 10px rgba(78, 170, 241, 0.4); }

@media (max-width: 600px) {
    .view-switcher {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .view-btn {
        width: 100%;
        text-align: center;
    }
}

.pulse-green {
    background-color: var(--color-cta);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 8px rgba(0, 255, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0,255,0,0.4),
                    0 0 10px rgba(0,255,0,0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(0,255,0,0.8),
                    0 0 25px rgba(0,255,0,0.4);
    }
}

.promo-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px; /* Ajuste selon la largeur de ta colonne ACI-left */
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    /* On supprime aspect-ratio pour laisser l'image décider de la hauteur */
    height: auto; 
}

.promo-image {
    width: 100%;
    height: auto; /* L'image garde ses proportions réelles */
    display: block;
    opacity: 0.8;
    animation: backgroundPulse 8s ease-in-out infinite;
}

.promo-scanner-overlay {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 20px; /* Un peu plus épais pour un petit format */
    background: linear-gradient(180deg, rgba(37, 213, 255, 0) 0%, rgba(37, 213, 255, 0.6) 50%, rgba(37, 213, 255, 0) 100%);
    box-shadow: 0 0 20px rgba(37, 213, 255, 0.8);
    opacity: 0;
    pointer-events: none;
    animation: scanLine 4s ease-in-out infinite; /* Un peu plus rapide car la surface est plus petite */
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 0.95; filter: brightness(1.1); }
}

@keyframes scanLine {
    0%   { top: -10px; opacity: 0.1; }
    5%   { opacity: 0.8; }
    20%  { top: 40%; opacity: 0.3; }
    80%  { top: 85%; opacity: 0.8; }
    100% { top: 110%; opacity: 0; }
}