/* ============================================================
   TABLEAU DES MENEURS — v2 2026
   ============================================================ */

@font-face {
    font-family: 'Super';
    src: url('/static/fonts/SuperFont.ttf') format('truetype');
}

:root {
    --st-hubert:      #003CA6;
    --st-hubert-lt:   #4472D4;
    --chateauguay:    #009A44;
    --chateauguay-lt: #00CC66;
    --st-jean:        #E6000A;
    --st-jean-lt:     #FF4444;
    --longueuil:      #FF8300;
    --longueuil-lt:   #FFB347;

    --glass:          rgba(0, 15, 56, 0.82);
    --glass-border:   rgba(255, 255, 255, 0.13);
    --txt-shadow:     -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;

    --gold:    #FFD700;
    --silver:  #C8C8C8;
    --bronze:  #CD7F32;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Super', serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: url('/static/images/bgDamierBleu.png') center center / cover fixed;
    color: white;
}

body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 8px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 2px 4px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: clamp(70px, 10vh, 130px);
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.header-title {
    font-size: clamp(32px, 4.5vw, 72px);
    color: white;
    text-shadow: var(--txt-shadow);
    letter-spacing: 3px;
}

/* Store legend */
.store-legend {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.38);
    border: 2px solid var(--pill-color, white);
    font-size: clamp(10px, 1.1vw, 15px);
    letter-spacing: 1px;
    text-shadow: var(--txt-shadow);
    box-shadow: 0 0 14px var(--pill-color, white), inset 0 0 8px rgba(255,255,255,0.05);
    color: white;
    white-space: nowrap;
}

.legend-pill::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pill-color, white);
    box-shadow: 0 0 8px var(--pill-color, white);
    flex-shrink: 0;
}

/* ============================================================
   MAIN GRID
   ============================================================ */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.section-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
}

.section-title {
    text-align: center;
    font-size: clamp(16px, 2vw, 30px);
    color: white;
    text-shadow: var(--txt-shadow);
    letter-spacing: 4px;
    flex-shrink: 0;
}

/* ============================================================
   GLASS PANELS
   ============================================================ */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}



.podium-panel {
    flex: 1;
    min-height: 0;
    padding: 32px 12px 0;
    position: relative;
}

.table-panel {
    flex: 0 0 auto;
    padding: 6px 8px;
}

/* ============================================================
   PODIUM
   ============================================================ */
.podium-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 24px);
    width: 100%;
    height: 100%;
}

.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28%;
    max-width: 240px;
}

.medal-badge {
    display: none;
}

/* The bar */
.podium-bar {
    width: 100%;
    flex: 1;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    position: relative;
    overflow: hidden;
    min-height: 55px;
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: none;
    filter: drop-shadow(0px 6px 10px rgba(0,0,0,0.6));
}


/* Scan lines */
.podium-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
}

.podium-name {
    font-size: clamp(13px, 1.7vw, 26px);
    color: white;
    text-shadow: var(--txt-shadow);
    text-align: center;
    letter-spacing: 1px;
    z-index: 1;
    line-height: 1.1;
}

.podium-store {
    font-size: clamp(9px, 1vw, 14px);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: var(--txt-shadow);
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 10px;
    border-radius: 20px;
    z-index: 1;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
}


/* ============================================================
   RANKING TABLE
   ============================================================ */
.rank-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(9px, 1.05vw, 13px);
    color: white;
    text-shadow: var(--txt-shadow);
}

.rank-table thead th {
    background: #1c1c1c;
    color: white;
    text-align: center;
    padding: 2px 2px;
    font-size: clamp(10px, 1.15vw, 14px);
    border: 1px solid rgba(255,255,255,0.18);
    letter-spacing: 1px;
}

.rank-table tbody {
    display: block;
    width: 100%;
    overflow: hidden;
}

.rank-table thead,
.rank-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.rank-table tbody tr {
    opacity: 1;
}

.rank-table td {
    text-align: center;
    padding: 2px 3px;
    line-height: 1.5;
    border: 1px solid rgba(0,0,0,0.35);
    font-size: clamp(9px, 1.05vw, 13px);
    text-shadow: var(--txt-shadow);
}

th.rank-cell, td.rank-cell {
    width: 12%;
    min-width: 30px;
    font-weight: bold;
}

th.name-cell, td.name-cell {
    width: 34%;
    text-align: left;
    padding-left: 6px;
}

th.var-cell, td.var-cell {
    width: 10%;
    text-align: center;
}

th.spacer-cell, td.spacer-cell {
    width: 5px;
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Variation badges */
.var-badge {
    display: inline-block;
    font-size: clamp(7px, 0.75vw, 10px);
    font-weight: normal;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    vertical-align: middle;
    color: white;
    text-shadow: none;
}

/* ============================================================
   TIMESTAMP
   ============================================================ */
.timestamp {
    position: fixed;
    bottom: 4px;
    right: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}
