* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #00a0ee 0%, #0090d9 50%, #0080c4 100%);
    min-height: 100vh;
}

header {
    background-color: #ec1e75;
    color: white;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .header-content {
    position: relative;
}

header img {
    max-height: 100px;
    animation: fadeIn 1s ease-in;
}

h1 {
    margin: 5px 0 0 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in;
}

.qr-container {
    position: fixed;
    z-index: 1001;
    top: 50%;
    transform: translateY(-50%);
}

.qr-left {
    left: 20px;
}

.qr-right {
    right: 20px;
}

.qr-container img {
    display: block;
    width: 150px;
    height: 150px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    padding: 20px 40px 40px 40px;
    max-width: 90%;
    margin: 15px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.table-wrapper {
    overflow: visible;
    position: relative;
    padding-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 10px 0;
}

table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 4px 10px rgba(236, 30, 117, 0.3);
}

table th {
    background: linear-gradient(135deg, #ec1e75 0%, #d31766 100%);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 10px rgba(236, 30, 117, 0.3);
}

table th:first-child {
    border-radius: 15px 0 0 15px;
}

table th:last-child {
    border-radius: 0 15px 15px 0;
}

table tbody tr:first-child {
    margin-top: 10px;
}

table tbody tr {
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

table tbody tr.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    font-weight: bold;
}

table tbody tr.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    font-weight: bold;
}

table tbody tr.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
    font-weight: bold;
    color: white;
}

table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 1.3em;
    border: none;
}

table td:first-child {
    border-radius: 15px 0 0 15px;
    font-weight: bold;
    font-size: 1.5em;
}

table td:last-child {
    border-radius: 0 15px 15px 0;
}

table td b {
    color: #ec1e75;
    font-size: 1.1em;
}

.team-name {
    font-weight: bold;
    font-size: 1.5em !important;
    color: #333;
}

.position-badge {
    display: inline-block;
    min-width: 40px;
    padding: 5px;
    border-radius: 8px;
    background: #ec1e75;
    color: white;
    font-weight: bold;
}

.gold .position-badge {
    background: #ffa500;
    font-size: 1.2em;
}

.silver .position-badge {
    background: #888;
    font-size: 1.1em;
}

.bronze .position-badge {
    background: #8b4513;
    font-size: 1.05em;
}

footer {
    text-align: center;
    padding: 15px 0;
    font-size: 1em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive pour très grands écrans */
@media (min-width: 1920px) {
    h1 { font-size: 3em; }
    table th { font-size: 1.6em; }
    table td { font-size: 1.4em; }
    .team-name { font-size: 1.7em !important; }
    .qr-container img { width: 180px; height: 180px; }
}

