/* ==========================================================================
   HISTORICAL TEASER - DESIGN BOURSE (TradingView / Bloomberg)
   ========================================================================== */

:root {
    --fin-bg: #131722;
    --fin-panel: #1e222d;
    --fin-border: #2a2e39;
    --fin-text-muted: #787b86;
    --fin-text: #d1d4dc;
    --fin-text-light: #ffffff;
    --fin-green: #089981;
    --fin-green-bg: rgba(8, 153, 129, 0.1);
    --fin-red: #f23645;
    --fin-blue: #2962ff;
    --fin-gold: #e2a03f;
    --fin-purple: #9c27b0;
}

.etea-ht-container {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fin-text);
}

.etea-widget {
    background-color: var(--fin-panel);
    border: 1px solid var(--fin-border);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

/* Header */
.etea-ht-header {
    text-align: center;
    margin-bottom: 30px;
}
.etea-ht-title {
    justify-content: center; /* Override du flex-start de la classe globale */
    margin-bottom: 10px;
}
.etea-ht-title::before { display: none; } /* Retire le carré bleu si centré */

.etea-ht-desc {
    color: var(--fin-text-muted);
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 4 KPIs */
.etea-ht-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.etea-ht-kpi {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.etea-border-green { border-top: 3px solid var(--fin-green); }
.etea-border-blue { border-top: 3px solid var(--fin-blue); }
.etea-border-purple { border-top: 3px solid var(--fin-purple); }
.etea-border-gold { border-top: 3px solid var(--fin-gold); }

.etea-ht-kpi .lbl {
    color: var(--fin-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}
.etea-ht-kpi .val {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
}
.etea-text-green { color: var(--fin-green); text-shadow: 0 0 10px rgba(8,153,129,0.3); }
.etea-text-white { color: var(--fin-text-light); }

.etea-ht-kpi .sub {
    color: var(--fin-text-muted);
    font-size: 11px;
    margin-top: 10px;
}

/* Zones Verrouillées */
.etea-ht-locked-area {
    position: relative;
    overflow: hidden;
}

.etea-ht-blur-content {
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.etea-ht-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(19, 23, 34, 0.85); /* rgba de var(--fin-bg) */
    z-index: 2;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.etea-ht-overlay .icon { font-size: 1.8em; margin-bottom: 5px; }
.etea-ht-overlay .text { font-size: 11px; font-weight: 700; color: var(--fin-gold); text-transform: uppercase; letter-spacing: 1px; }

/* Chart Grids */
.etea-ht-chart-grid-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.etea-ht-chart-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.etea-ht-p25 { padding: 25px; }
.etea-ht-p20 { padding: 20px; }
.etea-ht-center { text-align: center; }

/* Headers et Titres des widgets */
.etea-ht-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--fin-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.etea-ht-widget-header .title {
    margin: 0; font-size: 1.2em; color: var(--fin-text-light); text-transform: uppercase; font-weight: 600;
}
.etea-ht-widget-header .badge {
    background-color: var(--fin-bg); color: var(--fin-text-muted); border: 1px solid var(--fin-border);
    padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
}

.etea-ht-widget-title {
    margin: 0 0 20px 0; font-size: 1.1em; color: var(--fin-text-light); border-bottom: 1px solid var(--fin-border);
    padding-bottom: 15px; text-transform: uppercase; font-weight: 600;
}

.etea-ht-widget-title-small {
    margin: 0 0 15px 0; font-size: 1em; color: var(--fin-text-muted); border-bottom: 1px solid var(--fin-bg);
    padding-bottom: 10px; text-transform: uppercase; font-weight: 600;
}

/* Canvas Wrappers */
.etea-ht-canvas-wrap-large { height: 300px; width: 100%; }
.etea-ht-canvas-wrap-mid { height: 250px; width: 100%; }
.etea-ht-canvas-wrap-small { height: 180px; width: 100%; }

/* Overlay Internals */
.etea-ht-overlay .icon-large { font-size: 3em; margin-bottom: 15px; }
.etea-ht-overlay .title-lock { margin: 0 0 10px 0; color: var(--fin-text-light); font-size: 1.1em; font-weight: 600; }
.etea-ht-overlay .desc-lock { margin: 0 0 20px 0; color: var(--fin-text-muted); font-size: 13px; max-width: 400px; line-height: 1.5; }
.etea-ht-overlay .desc-lock-small { font-size: 12px; margin: 0; color: var(--fin-text-muted); padding: 0 20px; line-height: 1.4; }

/* Boutons / Liens */
.etea-ht-btn {
    display: inline-block;
    background-color: var(--fin-blue);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease;
}
.etea-ht-btn:hover { background-color: #1c4ed8; color: #ffffff; }

.etea-ht-link {
    color: var(--fin-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--fin-blue);
    transition: color 0.2s;
}
.etea-ht-link:hover { color: var(--fin-text-light); border-bottom-style: solid; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .etea-ht-chart-grid-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .etea-ht-chart-grid-bottom { grid-template-columns: 1fr; }
    .etea-ht-kpi .val { font-size: 2.2em; }
}