/* =========================================================
   --- BASE ---
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   --- HEADER --- FIXE
   ========================================================= */

header,
.site-header,
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #dbe3ee;
    padding: 16px 20px 10px 20px;
}

.logo-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-zone h1 {
    margin: 0 0 4px 0;
    font-size: 24px;
}

.logo-zone p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   --- MENU ---
   ========================================================= */

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.topnav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #294a7a;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.topnav a:hover {
    color: #3d6fd6;
    background: #eef4ff;
    text-decoration: none;
}

.topnav a.active {
    color: #1f3f6d;
    background: #e9f1ff;
    text-decoration: none;
    font-weight: 600;
}

.nav-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* =========================================================
   --- CONTENU ---
   ========================================================= */

.site-content {
    flex: 1;
    padding: 20px;
}

.page-block {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
}

h2 {
    margin-top: 0;
}


/* =========================================================
   --- TABLEAUX ---
   ========================================================= */

.tableau {
    width: 100%;
    border-collapse: collapse;
}

.tableau th,
.tableau td {
    border-bottom: 1px solid #e5e7eb;
    padding: 2px 2px;
    text-align: left;
    font-size: 14px;
}

.tableau th {
    background: #f8fafc;
    font-weight: bold;
}

.cell-compact {
    vertical-align: top;
}

.mini-line {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
}

.position-pending-list {
    margin-top: 8px;
}

.tableau-marche-large {
    min-width: 100px;
}

/* =========================================================
   --- ALERTES / MESSAGES ---
   ========================================================= */
.row-highlight-temp td {
    outline: 2px solid #f59e0b;
    background: rgba(245, 158, 11, 0.18) !important;
}

.alert-symbol-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.alert-symbol-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.alert-mini-btn {
    border: 0;
    background: #374151;
    color: #fff;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.2;
    transition: 0.15s ease;
}

.alert-mini-btn:hover {
    background: #4b5563;
}

.alert-mini-btn-danger {
    background: #7f1d1d;
}

.alert-mini-btn-danger:hover {
    background: #991b1b;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-warning {
    background: #fff7db;
    border-color: #f3d37a;
    color: #7a5a00;
}

.alert-success {
    background: #eafaf0;
    border-color: #9ad6ab;
    color: #176534;
}

.alert-error {
    background: #fdecec;
    border-color: #efb1b1;
    color: #9b1c1c;
}


/* =========================================================
   --- FORMULAIRES ---
   ========================================================= */

.form-bloc {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 16px;
    max-width: 800px;
}

.form-ligne {
    margin-bottom: 18px;
}

.form-ligne label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
}

.form-ligne input,
.form-ligne select,
.form-ligne textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.form-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #1a43ba;
    text-decoration: none;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #575d68;
}

/* =========================================================
   --- INFOS CLIENT CONNECTE ---
   ========================================================= */

.header-client-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 14px;
}

.header-client-email,
.header-client-balance,
.header-client-plan {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1f2937;
    border: 1px solid #dbe3ee;
}

/* =========================================================
   --- FOOTER ---
   ========================================================= */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #dbe3ee;
    padding: 14px 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 12px;
}


/* =========================================================
   --- TABLEAU MARCHE / TRI / COULEURS ---
   ========================================================= */

.th-sortable {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.th-sortable .th-label {
    vertical-align: middle;
}

.th-sortable,.th-sortable *,.fav-star {
    cursor: pointer !important;
}

.sort-icons {
    display: inline-flex;
    flex-direction: column;
    margin-left: 4px;
    line-height: 8px;
    vertical-align: middle;
}

.sort-up,
.sort-down {
    font-size: 9px;
    color: #94a3b8;
}

.th-sortable.sort-asc .sort-up,
.th-sortable.sort-desc .sort-down {
    color: #1d4ed8;
    font-weight: bold;
}

.cell-success {
    background: #eafaf0;
    color: #176534;
    font-weight: bold;
}

.cell-danger {
    background: #fdecec;
    color: #9b1c1c;
    font-weight: bold;
}

.cell-neutral {
    background: #f8fafc;
    color: #334155;
}

.cell-strong {
    background: #eef6ff;
    color: #1e40af;
    font-weight: bold;
}

.cell-weak {
    background: #f8fafc;
    color: #64748b;
}

.cell-fav {
    text-align: center;
}

.fav-star {
    font-size: 16px;
    color: #94a3b8;
}

.fav-star.is-fav {
    color: #f59e0b;
}

.cell-symbol {
    font-weight: bold;
}

/* =========================================================
   --- TABLE RESPONSIVE / LARGE ---
   ========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
}

.tableau-marche-large {
    min-width: 2400px;
    border-collapse: collapse;
    width: 100%;
}

.tableau-marche-large thead th {
    white-space: nowrap;
}

/* =========================================================
   --- GROUPES D'INDICATEURS ---
   ========================================================= */

.tr-group th {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 6px;
    border-bottom: 1px solid #dbe3ee;
}

.th-group {
    color: #1f2937;
}

.th-group-fav {
    background: #f8fafc;
}

.th-group-market {
    background: #eef6ff;
}

.th-group-trend {
    background: #ecfdf5;
}

.th-group-momentum {
    background: #fff7ed;
}

.th-group-force {
    background: #f5f3ff;
}

.th-group-macd {
    background: #fef2f2;
}

.th-group-bb {
    background: #f8fafc;
}

/* =========================================================
   --- EN-TETES TRI ---
   ========================================================= */

.th-sortable {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.th-sortable .th-label {
    vertical-align: middle;
}

.sort-icons {
    display: inline-flex;
    flex-direction: column;
    margin-left: 4px;
    line-height: 8px;
    vertical-align: middle;
}

.sort-up,
.sort-down {
    font-size: 9px;
    color: #94a3b8;
}

.th-sortable.sort-asc .sort-up,
.th-sortable.sort-desc .sort-down {
    color: #1d4ed8;
    font-weight: bold;
}

/* =========================================================
   --- CELLULES / COULEURS ---
   ========================================================= */

.cell-success {
    background: #eafaf0;
    color: #176534;
    font-weight: bold;
}

.cell-danger {
    background: #fdecec;
    color: #9b1c1c;
    font-weight: bold;
}

.cell-neutral {
    background: #f8fafc;
    color: #334155;
}

.cell-strong {
    background: #eef6ff;
    color: #1e40af;
    font-weight: bold;
}

.cell-weak {
    background: #f8fafc;
    color: #64748b;
}

.cell-fav {
    text-align: center;
    min-width: 50px;
}

.fav-star {
    font-size: 16px;
    color: #94a3b8;
}

.fav-star.is-fav {
    color: #f59e0b;
}

.cell-symbol {
    font-weight: bold;
}

.fav-star:hover,
.th-sortable:hover {
    opacity: 0.85;
}

.btn-order-open {
    padding: 6px 10px;
    font-size: 13px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-box {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 18px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}

.position-open .badge {
    background:#f59e0b;
    color:white;
    padding:2px 6px;
    border-radius:4px;
    font-size:11px;
}

.cell-action {
    min-width: 150px;
}

.position-open {
    margin-top: 8px;
    padding: 8px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.position-line {
    margin-bottom: 3px;
}

.badge-inline {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

.badge-warning {
    background: #f59e0b;
    color: #ffffff;
}

.position-actions {
    margin-top: 8px;
}

.btn-position-close {
    width: 100%;
    padding: 6px 10px;
    font-size: 12px;
}

.position-closed {
    background: #1e293b;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.position-actions-inline {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: livePulse 1.8s infinite;
}

.live-dot.is-stale {
    background: #94a3b8;
    box-shadow: none;
    animation: none;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.position-pending {
    margin-top: 8px;
    padding: 8px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.pending-item {
    margin-top: 4px;
    color: #cbd5e1;
}

.position-pending-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #f59e0b;
    font-weight: bold;
}

.position-row-open {
    box-shadow: inset 4px 0 0 rgba(0, 180, 90, 0.85);
}

.positions-toolbar {
    margin-bottom: 12px;
}

.positions-infinite-sentinel {
    padding: 18px 10px;
    text-align: center;
}

.positions-infinite-sentinel.is-loading {
    opacity: 0.7;
}

.positions-infinite-sentinel.is-finished {
    opacity: 0.85;
}

/* =========================================================
   --- RESPONSIVE ---
   ========================================================= */

@media (max-width: 1200px) {
    .tableau-marche-large {
        min-width: 2200px;
    }
}

/* =========================================================
   --- RESPONSIVE ---
   ========================================================= */

@media (max-width: 768px) {
	.table-responsive {
        border-radius: 8px;
    }

    .tableau-marche-large {
        min-width: 2000px;
    }

    .tr-group th {
        font-size: 12px;
        padding: 8px 4px;
    }

    .tableau th,
    .tableau td {
        font-size: 13px;
        padding: 8px 6px;
    }
	
    .nav-right {
        margin-left: 0;
        width: 100%;
    }

    .site-content {
        padding: 12px;
    }

    .page-block,
    .form-bloc {
        padding: 12px;
    }
	
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
	
    .tableau-marche-compact {
        min-width: 980px;
    }
	
    .strategy-detail-grid {
        grid-template-columns: 1fr;
    }
	
    .form-grid-3,
    .rule-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   --- TABLEAU INDEX COMPACT ---
   ========================================================= */

.page-block-compact {
    padding: 10px;
}

.table-responsive-compact {
    overflow-x: visible;
}

.tableau-marche-compact {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.tableau-marche-compact th,
.tableau-marche-compact td {
    vertical-align: top;
}

.tableau-marche-compact th:nth-child(1),
.tableau-marche-compact td:nth-child(1) { width: 4%; }

.tableau-marche-compact th:nth-child(2),
.tableau-marche-compact td:nth-child(2) { width: 12%; }

.tableau-marche-compact th:nth-child(3),
.tableau-marche-compact td:nth-child(3) { width: 16%; }

.tableau-marche-compact th:nth-child(4),
.tableau-marche-compact td:nth-child(4) { width: 18%; }

.tableau-marche-compact th:nth-child(5),
.tableau-marche-compact td:nth-child(5) { width: 14%; }

.tableau-marche-compact th:nth-child(6),
.tableau-marche-compact td:nth-child(6) { width: 14%; }

.tableau-marche-compact th:nth-child(7),
.tableau-marche-compact td:nth-child(7) { width: 22%; }

.cell-compact {
    font-size: 13px;
}

.compact-line {
    margin-bottom: 6px;
    padding: 4px 6px;
    border-radius: 6px;
}

.compact-line-main {
    font-weight: bold;
    font-size: 14px;
}

.compact-line-muted {
    color: #64748b;
    background: #f8fafc;
}

.pending-item .btn-pending-cancel {
    margin-top: 6px;
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.rules-placeholder {
    min-height: 220px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    background: #f8fafc;
    color: #475569;
}

.btn-warning {
    background: #d97706;
    color: #fff;
}

.btn-warning:hover {
    background: #b45309;
}

@media (max-width: 1200px) {
    .table-responsive-compact {
        overflow-x: auto;
    }

    .tableau-marche-compact {
        min-width: 1200px;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 6px;
}

.pricing-card-current {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.08);
}

.pricing-price {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0 12px 0;
}

.pricing-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8eefc;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: bold;
}

.pricing-list {
    margin: 0;
    padding-left: 18px;
}

.pricing-list li {
    margin-bottom: 8px;
}

.strategy-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.strategy-topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.strategy-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strategy-future-cell {
    min-width: 260px;
}

.mini-muted {
    color: #64748b;
    font-size: 11px;
}

.strategy-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    font-size: 14px;
}

.form-grid-2,
.form-grid-3,
.form-grid-4 {
    align-items: start;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 14px;
    margin-bottom: 8px;
}

#strategy-edit-main-panel,
#strategy-edit-rules-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-builder {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.rule-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 12px;
    align-items: center;
}

.rule-row select,
.rule-row input {
    width: 100%;
}

#strategy-edit-form .form-actions {
    margin-top: 22px;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.messages-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 18px 0;
}

.message-bubble {
    border-radius: 12px;
    padding: 12px 14px;
    max-width: 85%;
    border: 1px solid #dbe3ee;
}

.message-client {
    align-self: flex-end;
    background: #eef6ff;
}

.message-admin {
    align-self: flex-start;
    background: #f8fafc;
}

.menu-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.backtest-win-box {
    background: #eafaf0;
    border: 1px solid #9ad6ab;
    color: #176534;
}

.backtest-loss-box {
    background: #fdecec;
    border: 1px solid #efb1b1;
    color: #9b1c1c;
}

.backtest-neutral-box {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    color: #334155;
}

.indicators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.indicator-box {
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

.indicator-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .indicator-columns {
        grid-template-columns: 1fr;
    }
}

.rule-preset {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.positions-table td {
    vertical-align: top;
}

/* =========================================================
   --- STYLE CRYPTOOBOAT (SOFT GREY BLUE) ---
   ========================================================= */

body {
    background: #f3f6fb;
    color: #334155;
}

/* Titres plus modernes */

h1, h2, h3,
.hero-title,
.hero-visual-title,
.stat-value,
.brand-text h1 {
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
}

/* Bloc page plus doux */

.page-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}

/* Texte plus doux */

.page-block p {
    color: #475569;
    line-height: 1.6;
}

/* Cards plus modernes */

.pricing-card {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* Alert plus soft */

.alert {
    border-radius: 10px;
}

/* Boutons plus crypto */

.btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 10px;
    font-weight: 600;
}

.btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* Header plus moderne */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* Menu */

.topnav a {
    color: #334155;
}

.topnav a:hover,
.topnav a.active {
    background: #eef4ff;
    color: #1d4ed8;
}

/* Fun crypto accent */

.crypto-accent {
    color: #2563eb;
    font-weight: 600;
}

/* Hero title */

.hero-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.hero-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 18px;
}

/* =========================================================
   --- CRYPTOOBOAT LANDING / HERO / SOFT BLUE ---
   ========================================================= */

body {
    background: #f3f6fb;
    color: #334155;
}

h1, h2, h3 {
    color: #27406d;
    letter-spacing: 0.2px;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e3ebf5;
}

.page-block-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(39, 64, 109, 0.04);
}

.page-block p {
    color: #52627a;
    line-height: 1.7;
}

.hero-section {
    margin-bottom: 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    align-items: stretch;
}

.hero-content,
.hero-visual-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e3ebf5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(39, 64, 109, 0.05);
}

.hero-logo-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: #eef4ff;
    padding: 8px;
    border: 1px solid #dbe7fb;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #315ea8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    color: #22395f;
}

.hero-subtitle {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #5c6f89;
    line-height: 1.75;
}

.hero-subtitle-second {
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
}

.hero-visual-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
}

.hero-visual-badge {
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dfeafe;
    color: #315ea8;
    font-size: 12px;
    font-weight: bold;
}

.hero-visual-title {
    font-size: 22px;
    font-weight: 700;
    color: #22395f;
    margin-bottom: 10px;
}

.hero-visual-text {
    color: #5c6f89;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-mini-stat {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dde7f5;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.hero-mini-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #27406d;
    margin-bottom: 4px;
}

.hero-mini-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.stats-strip {
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(39, 64, 109, 0.04);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #22395f;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: #f8fbff;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    padding: 18px;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #27406d;
}

.feature-card p {
    margin-bottom: 0;
}

.plans-section {
    margin-bottom: 18px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #e3ebf5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(39, 64, 109, 0.04);
}

.plan-card-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border-color: #cfe0ff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.plan-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #315ea8;
    font-size: 12px;
    font-weight: bold;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #22395f;
    margin: 10px 0 14px 0;
}

.ad-block-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.ad-block-box {
    min-height: 90px;
    border: 1px dashed #bfd0ea;
    background: #f8fbff;
    color: #64748b;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.how-step-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(39, 64, 109, 0.04);
}

.how-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf4ff;
    color: #315ea8;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.btn {
    background: linear-gradient(135deg, #3d6fd6, #5b8def);
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(61, 111, 214, 0.16);
}

.btn:hover {
    background: linear-gradient(135deg, #315fc0, #4e7fe2);
}

.btn-secondary {
    background: #6d7f98;
}

.btn-secondary:hover {
    background: #5f718a;
}

.site-header-pro {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e3ebf5;
    padding: 18px 20px 12px 20px;
    box-shadow: 0 8px 24px rgba(39, 64, 109, 0.04);
}






.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.brand-link {
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

/* =========================================================
   --- BANDEAU MARQUE CRYPTOOBOAT
   ========================================================= */

.brand-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.brand-banner-link:hover {
    text-decoration: none;
}

.brand-banner {
    width: 100%;
    background:
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 38%, #e6f0ff 100%);
    border: 1px solid #dbe7fb;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    min-height: 150px;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.brand-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 28%, rgba(59, 130, 246, 0.16), transparent 22%),
        radial-gradient(circle at 90% 68%, rgba(29, 78, 216, 0.10), transparent 24%),
        linear-gradient(90deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.26) 100%);
    pointer-events: none;
}

.brand-banner-inner {
    width: 100%;
    max-width: 1024px;
    min-height: 150px;
    margin: 0 auto;
    padding: 18px 24px 18px 122px;
    position: relative;
    display: flex;
    align-items: center;
}

.brand-banner-logo-wrap {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.brand-banner-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 18px;
    background: #F7F4EF;
    border: 1px solid #dbe7fb;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08);
}

.brand-banner-text {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.brand-banner-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #dbe7fb;
    color: #315ea8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.brand-banner-text h1 {
    margin: 0 0 6px 0;
    font-size: 30px;
    line-height: 1.05;
    color: #22395f;
}

.brand-banner-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #5d6f87;
    max-width: 560px;
}

.brand-banner-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    min-width: 280px;
    height: 100%;
    pointer-events: none;
    opacity: 0.95;
}

/* bougies */

.candle {
    position: absolute;
    bottom: 28px;
    width: 10px;
    border-radius: 3px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.30);
}

.candle::before,
.candle::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(29, 78, 216, 0.55);
    border-radius: 2px;
}

.candle::before {
    top: -14px;
    height: 14px;
}

.candle::after {
    bottom: -12px;
    height: 12px;
}

.candle-1 { right: 210px; height: 34px; }
.candle-2 { right: 180px; height: 54px; bottom: 22px; }
.candle-3 { right: 148px; height: 42px; bottom: 30px; }
.candle-4 { right: 116px; height: 68px; bottom: 18px; }
.candle-5 { right: 84px; height: 52px; bottom: 40px; }

/* courbe marché */

.line-chart {
    position: absolute;
    right: 36px;
    top: 32px;
    width: 250px;
    height: 86px;
    border-bottom: 3px solid rgba(34, 197, 94, 0.0);
}

.line-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(
        0% 78%,
        12% 72%,
        22% 74%,
        34% 58%,
        45% 62%,
        56% 44%,
        68% 48%,
        78% 28%,
        89% 34%,
        100% 8%,
        100% 16%,
        89% 40%,
        78% 34%,
        68% 54%,
        56% 50%,
        45% 68%,
        34% 64%,
        22% 80%,
        12% 78%,
        0% 84%
    );
    background: linear-gradient(135deg, rgba(34,197,94,0.70), rgba(29,78,216,0.55));
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.18));
}

/* vagues / rappel voile */

.wave {
    position: absolute;
    border-radius: 999px;
    border: 2px solid rgba(49, 94, 168, 0.16);
    transform: rotate(-8deg);
}

.wave-1 {
    width: 210px;
    height: 52px;
    right: 44px;
    bottom: 14px;
}

.wave-2 {
    width: 150px;
    height: 34px;
    right: 118px;
    bottom: 2px;
    border-color: rgba(59, 130, 246, 0.18);
}

/* mobile */

@media (max-width: 900px) {
    .brand-banner-inner {
        padding: 18px 20px 18px 112px;
    }

    .brand-banner-text h1 {
        font-size: 26px;
    }

    .brand-banner-text p {
        font-size: 14px;
    }

    .brand-banner-visual {
        width: 36%;
        min-width: 220px;
        opacity: 0.75;
    }

    .line-chart {
        width: 190px;
        right: 24px;
    }
}

@media (max-width: 768px) {
    .brand-banner {
        min-height: 118px;
        border-radius: 14px;
    }

    .brand-banner-inner {
        min-height: 118px;
        padding: 14px 14px 14px 86px;
    }

    .brand-banner-logo-wrap {
        left: 12px;
    }

    .brand-banner-logo {
		width: 62px;
		height: 62px;
		border-radius: 14px;
		padding: 6px;
	}

    .brand-banner-kicker {
        font-size: 10px;
        margin-bottom: 6px;
        padding: 4px 8px;
    }

    .brand-banner-text h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .brand-banner-text p {
        font-size: 13px;
        line-height: 1.35;
    }

    .brand-banner-visual {
        display: none;
    }
}

.brand-text h1 {
    margin: 0 0 4px 0;
    font-size: 26px;
    color: #22395f;
    line-height: 1.1;
}

.brand-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.header-client-info-pro {
    gap: 8px;
    margin-bottom: 0;
}

.header-client-email,
.header-client-balance,
.header-client-plan {
    background: #f3f7ff;
    border: 1px solid #dce8fb;
    color: #334155;
}

.topnav-pro a {
    color: #294a7a;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.topnav-pro a:hover {
    background: #eef4ff;
    color: #3d6fd6;
    text-decoration: none;
}

.topnav-pro a.active {
    background: #e8f0ff;
    color: #234574;
    text-decoration: none;
    font-weight: 600;
}

.nav-pill {
    background: #ffffff;
    border: 1px solid #d9e4f5;
    border-radius: 999px !important;
    padding: 8px 14px !important;
}

.nav-pill:hover {
    background: #f8fbff;
}

.nav-pill-primary {
    background: linear-gradient(135deg, #3d6fd6, #5b8def) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(61, 111, 214, 0.16);
}

.nav-pill-primary:hover {
    background: linear-gradient(135deg, #315fc0, #4e7fe2) !important;
}

.site-footer-pro {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-top: 1px solid #e3ebf5;
    padding: 16px 20px;
}

.site-footer-pro .footer-inner {
    color: #64748b;
}

.site-footer-pro a {
    color: #4b6487;
}

@media (max-width: 900px) {
    .header-top {
        align-items: flex-start;
    }

    .nav-right-pro {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header-pro {
        padding: 14px 12px 12px 12px;
    }

    .brand-text h1 {
        font-size: 22px;
    }

    .brand-text p {
        font-size: 13px;
    }

    .topnav-pro {
        gap: 8px;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		padding-top: 0;
    }

    .topnav-pro a {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 14px;
		display: inline-flex;
		align-items: center;
		min-height: 38px;
		border-radius: 10px;
		color: #334155;
		font-weight: 500;
		transition: all 0.18s ease;
	}

    .nav-right-pro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;	
		margin-left: auto;
		align-items: center;
		gap: 8px;
		flex-wrap: wrap;
    }

    .nav-right-pro a {
        justify-content: center;
    }
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #d8e3f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    cursor: pointer;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 6px 16px rgba(39, 64, 109, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.menu-toggle:hover {
    background: #eef4ff;
    border-color: #bfd4f5;
    transform: translateY(-1px);
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #3a5f98;
    transition: background 0.18s ease;
}

.menu-toggle:hover span {
    background: #2f5fbe;
}

/* =========================================================
   --- MENU LINKS : STYLE FINAL
   ========================================================= */

.menu-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.menu-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 5px;
    border-radius: 10px;
    color: #294a7a;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.1px;
    text-decoration: none !important;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.menu-links a:hover {
    color: #3d6fd6;
    background: #eef4ff;
    text-decoration: none !important;
}

.menu-links a.active {
    color: #234574;
    background: #e8f0ff;
    text-decoration: none !important;
    font-weight: 600;
}

/* badge messages */
.menu-links a .menu-badge {
    margin-left: 6px;
}

/* version menu déroulant */
@media (max-width: 1600px) {
    .menu-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 10px;
    }

    .menu-links.is-open {
        display: flex;
    }

    .menu-links a {
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .stats-grid,
    .feature-grid,
    .plans-grid,
    .how-steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-mini-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content,
    .hero-visual-card,
    .page-block-soft,
    .stat-card,
    .feature-card,
    .plan-card,
    .how-step-card {
        padding: 16px;
    }

    .hero-logo-line {
        align-items: flex-start;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-mini-stats {
        grid-template-columns: 1fr;
    }
}

.strategy-symbols-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #f8fbff;
}

.strategy-checkbox-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
}

.strategy-checkbox-chip input {
    width: auto;
}

@media (max-width: 768px) {
    .strategy-symbols-checklist {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MODALES - VERSION PROPRE
   ===================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.modal-box {
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* header figé */
.modal-box .modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    padding: 18px 18px 12px 18px;
    border-bottom: 1px solid #dbe3ee;
    flex-shrink: 0;
}

/* contenu scrollable */
.modal-box .modal-body,
.modal-box form {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
    min-height: 0;
}

/* footer figé si présent */
.modal-box .modal-footer,
.modal-box .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #ffffff;
    border-top: 1px solid #dbe3ee;
    padding: 12px 18px 18px 18px;
    margin-top: 0;
    flex-shrink: 0;
}

/* évite les doubles marges moches */
.modal-box .form-actions .btn {
    margin-top: 0;
}

/* bouton fermeture */
.modal-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

/* mobile */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-box {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .modal-box .modal-header,
    .modal-box .modal-body,
    .modal-box form,
    .modal-box .modal-footer,
    .modal-box .form-actions {
        padding-left: 14px;
        padding-right: 14px;
    }
}


.header-main{
display:flex;
align-items:center;
justify-content:space-between;
width:100%;
}

.header-right{
display:flex;
align-items:center;
gap:15px;
}

.header-icon{
font-size:18px;
text-decoration:none;
padding:5px 8px;
}

.header-icon.logout{
color:#ff4d4d;
font-weight:bold;
}

.lang-dropdown{
position:relative;
}

.lang-btn{
background:none;
border:1px solid #ccc;
padding:4px 8px;
cursor:pointer;
}

.lang-dropdown-content{
display:none;
position:absolute;
right:0;
background:#fff;
border:1px solid #ccc;
z-index:1000;
}

.lang-dropdown:hover .lang-dropdown-content{
display:block;
}

.lang-dropdown-content a{
display:block;
padding:6px 12px;
text-decoration:none;
}

@media (max-width: 1600px) {
    .topnav-pro {
        position: relative;
        display: block;
    }

    .menu-toggle {
        display: inline-flex;
        margin-bottom: 2px;
    }

    .menu-links.is-open {
        display: flex;
    }

    .menu-links a {
        width: 100%;
    }
}

.reglage-page-wrap {
    width: 100%;
}

.reglage-page-wrap .form-bloc {
    width: 100%;
}

.reglage-page-wrap .page-block {
    width: 100%;
}

/* =========================================================
   --- CHECKBOX REGLAGES
   ========================================================= */

.checkbox-inline {
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    flex: 0 0 18px;
    display: block;
}

.checkbox-inline span {
    display: block;
    flex: 1 1 auto;
    line-height: 1.45;
    font-weight: 600;
}

.form-ligne .checkbox-inline + .mini-muted {
    margin-left: 28px;
}

/* =========================================================
   --- APPLICATION LIEE / APAIRAGE
   ========================================================= */

.app-linked-box {
    background: #eef6ff;
    border: 1px solid #bfd7ff;
    border-radius: 12px;
    padding: 14px 16px;
}

.app-linked-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.4;
}

.app-linked-line {
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
}

.app-pairing-expire {
    font-size: 18px;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.5;
}

.app-pairing-expire strong {
    font-size: 20px;
    font-weight: 800;
    color: #dc2626;
}

.balance-live-badge {
    margin-left: 6px;
    font-size: 13px;
    color: #facc15;
    opacity: 0.9;
}

.positions-back-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 999;
    display: none;

    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;

    background: #2563eb;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;

    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.positions-back-top.is-visible {
    display: block;
}
.position-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.position-actions-row form {
    margin: 0;
}

.position-row-partial td {
    background: #fff3cd !important;
}

.position-box.partial-open {
    border-left: 5px solid #f59e0b;
    background: #2a1d05;
}

.page-partenaires {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 18px 70px;
}

.partners-hero {
    text-align: center;
    margin-bottom: 35px;
}

.partners-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.partners-hero p {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.6;
}

.partner-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 30px;
    margin: 0 auto 30px;
    max-width: 760px;
}

.partner-badge {
    display: inline-block;
    font-size: 0.82rem;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(68, 204, 255, 0.12);
    border: 1px solid rgba(68, 204, 255, 0.35);
    margin-bottom: 14px;
}

.partner-card h2 {
    font-size: 1.8rem;
    margin: 0 0 12px;
}

.partner-card p,
.partners-more p {
    line-height: 1.6;
}

.partner-list {
    margin: 20px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.btn-partner,
.btn-home-partners {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: #25d0ff;
    color: #061018;
    font-weight: 700;
    text-decoration: none;
}

.btn-partner:hover,
.btn-home-partners:hover {
    opacity: 0.9;
}

.partner-note {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 16px;
}

.partners-more {
    max-width: 760px;
    margin: 0 auto;
    opacity: 0.85;
}

.home-partners {
    max-width: 900px;
    margin: 50px auto;
    padding: 28px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
}

.home-partners p {
    max-width: 650px;
    margin: 12px auto 22px;
    line-height: 1.6;
    opacity: 0.85;
} 
/* =========================================================
   --- PATCH FINAL S3B / AIDE HEADER
   ========================================================= */
	
.site-header-pro {
    position: sticky;
}
														   

.cryptooboat-help-box {
    position: absolute !important;
    right: 0 !important;
    top: 58px !important;
    z-index: 1200 !important;
    font-size: 13px;
}

.cryptooboat-help-tab {
    width: 42px !important;
    min-height: 92px !important;
    border-radius: 12px 0 0 12px !important;
    padding: 8px 5px !important;
    background: #173b70 !important;
    color: #ffffff !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: 0 8px 20px rgba(23, 59, 112, 0.24);
}

.cryptooboat-help-tab:hover,
.cryptooboat-help-tab.is-attention {
    background: #facc15 !important;
    color: #1f2937 !important;
    border-color: #f59e0b !important;
}

.cryptooboat-help-panel {
    position: absolute !important;
    right: 46px !important;
    top: 0 !important;
    width: 390px !important;
    max-width: calc(100vw - 70px) !important;
    background: #ffffff !important;
    border: 1px solid #b7c7de !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.20) !important;
    padding: 12px !important;
}

.cryptooboat-help-box.is-collapsed .cryptooboat-help-panel {
    display: none !important;
}

.s3b-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1.35;
}

.s3b-long-strong {
    background: #dcfce7;
    border: 1px solid #22c55e;
    color: #166534;
}

.s3b-long-medium {
    background: #fef3c7;
    border: 1px solid #facc15;
    color: #854d0e;
}

.s3b-long-weak,
.s3b-short-weak {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.s3b-short-strong {
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

.s3b-short-medium {
    background: #fff1df;
    border: 1px solid #f6b26b;
    color: #b45f06;
}

.s3b-signal-none {
    background: transparent;
    color: #64748b;
    border: 0;
    padding-left: 0;
}

.badge-warning,
.cell-s3b-medium {
    background: #fef3c7 !important;
    color: #854d0e !important;
}

.s3b-help-trigger,
.crypto-help-trigger {
    cursor: help;
}

.s3b-help-trigger:hover,
.crypto-help-trigger:hover {
    outline: 1px dashed #173b70;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cryptooboat-help-box {
        top: 50px !important;
        right: 0 !important;
    }

    .cryptooboat-help-tab {
        width: 38px !important;
        min-height: 78px !important;
    }

    .cryptooboat-help-panel {
        right: 42px !important;
        width: 310px !important;
        max-width: calc(100vw - 58px) !important;
    }
}

@media (max-width: 768px) {
    .site-footer,
    .footer-inner,
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-right {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .footer-bottom,
    .footer-copyright {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: block;
    }
}

.cryptooboat-help-content {
    white-space: pre-line;
}

