/* =========================================================
   RSS TIMING - STYLE MODERN V2.1
   Safe modern overlay for RSS Timing
   Updated: 2026 - Optimized for UCI Para-cycling
   ========================================================= */

/* =========================
   GLOBAL & STRUCTURE
   ========================= */

body {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #222;
    line-height: 1.5;
}

table.principal {
    width: 100%;
    background: #f4f6f9;
    border-collapse: collapse;
}

/* =========================
   LINKS
   ========================= */

a {
    color: #005b8f;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #0088cc;
    text-decoration: underline;
}

/* =========================
   HEADER & FOOTER
   ========================= */

td.entete1 {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#entete img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: auto;
}

td.corps3b {
    background: transparent;
    padding: 20px;
}

td.pied {
    background: #003f5c;
    color: white;
    padding: 15px;
}

p.copyright {
    color: white;
    text-align: center;
    font-size: 12px;
    margin: 0;
}

/* =========================
   MODERN CARD & TABLES
   ========================= */

.rss-event-header {
    background: white;
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

table.rss-card-table {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

table.rss-card-table th {
    background: #005380;
    color: white;
    font-weight: 600;
    padding: 8px 5px; /* Réduit un peu le padding pour le double en-tête */
    text-transform: uppercase;
    font-size: 13px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* Style spécifique pour les icônes */
.rss-icon {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 5px;
}

table.rss-card-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

table.rss-card-table tr:last-child td {
    border-bottom: none;
}

table.rss-card-table tbody tr:hover {
    background: #f8fbff;
}

/* =========================
   MODERN BUTTONS (UCI COLORS)
   ========================= */

.rss-button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    margin: 2px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 11px;
    text-align: center;
    min-width: 90px;
    border: none;
}

.rss-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0.9;
    text-decoration: none;
}

/* Navigation & Utils */
.rss-button-back { background: #6c757d; margin-bottom: 15px; font-size: 13px; }
.rss-button-live { background: #d62828; }
.rss-button-video { background: #cc0000; }
.rss-button-pdf { background: #444; }

/* UCI Official Timing Colors */
.rss-button-itt-start { background: #005B96; }   /* Bleu - ITT Start List */
.rss-button-itt-res   { background: #E30613; }   /* Rouge - ITT Results */
.rss-button-analysis  { background: #000000; }   /* Noir - Analysis */
.rss-button-rr-start  { background: #FFD700; color: #000 !important; } /* Jaune - RR Start List */
.rss-button-rr-res    { background: #2E8B57; }   /* Vert - RR Results */

/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
    font-size: 28px;
    color: #005380;
    margin: 10px 0;
}

h2 { color: #005380; margin-top: 0; }

p { font-size: 14px; line-height: 1.6; }

/* =========================
   RESPONSIVE
   ========================= */

@media screen and (max-width: 768px) {
    td.corps3b { padding: 10px; }
    
    table.rss-card-table {
        border-radius: 0;
        margin: 10px 0;
    }

    .rss-button {
        padding: 6px 10px;
        min-width: 70px;
        font-size: 10px;
    }

    h1 { font-size: 20px; }
}