﻿/* =============================================================
   MARKET-DATA.CSS — Widget donnees marche (includes/market-data.php)
   Charge globalement via head.php
   ============================================================= */

.market-section-wrapper {
    background: #fff;
    padding: 15px 0 25px 0;
    border-bottom: 2px solid #f4f6f8;
    margin-bottom: 20px;
}
.market-ad-label {
    text-align: center;
    font-size: 9px;
    color: #bbb;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}
.market-ticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.market-tile {
    border-right: 1px solid #f0f0f0;
    padding-right: 10px;
}
.market-tile:last-child { border-right: none; }

.market-header { margin-bottom: 8px; }
.m-label { display: block; font-size: 10px; font-weight: 800; color: #0B132B; text-transform: uppercase; line-height: 1.1; }
.m-date { display: block; font-size: 9px; color: #aaa; margin-top: 3px; font-weight: 600; }

.market-content { margin-top: 10px; }
.m-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 11px; }
.r-name { font-weight: 700; color: #333; }
.r-val { font-weight: 800; font-family: 'Outfit', sans-serif; }

/* Global Trend Highlights */
.trend-up { color: #2ecc71; }
.trend-down { color: #f73f52; }
.trend-neutral { color: #666; }

.m-highlight .h-val { font-size: 15px; font-weight: 900; color: #f73f52; line-height: 1; }
.m-highlight .h-desc { font-size: 10px; font-weight: 700; color: #333; margin-top: 2px; }

@media (max-width: 991px) {
    .market-ticker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .market-tile:nth-child(3n) { border-right: none; }
}

@media (max-width: 600px) {
    .market-ticker-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }
    .market-tile {
        min-width: 160px;
        flex-shrink: 0;
        scroll-snap-align: start;
        border-right: 1px solid #eee;
        padding: 0 15px;
    }
}