/* RESET */
body, h1, h2, h3, p, ul, li, table {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    transition: background 0.5s ease, color 0.5s ease;
}

/* HEADER */
header {
    text-align: center;
    padding: 20px 10px;
    position: relative;
}

/* Logo commun à tous les écrans */
.logo {
    max-height: 300px;
    width: auto;
    display: block;
    margin: 20px auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Version mobile : réduire la hauteur et ajouter un peu d'espace en haut */
@media (max-width: 768px) {
    .logo {
        max-height: 180px;       /* réduire la hauteur sur mobile */
        margin-top: 40px;        /* pousser légèrement vers le bas */
    }

    /* Optionnel : ajuster le bouton thème si besoin */
    #themeToggle {
        top: 10px;               /* descendre légèrement pour pas empiéter */
        right: 10px;
    }
}
/* BOUTON THEME */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10264D;
    color: #F0CB61;
    transition: background 0.5s ease, color 0.5s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    padding: 0;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* TABS */
.day-tabs, .round-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.day-tab, .round-tab {
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid #10264D;
    font-weight: bold;
    background: white;
    color: #10264D;
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.day-tab.active, .round-tab.active {
    background: #10264D;
    color: #F0CB61;
}

/* TABLE */
.table-wrapper {
    width: 90%;
    margin: 20px auto;
    overflow-x: auto;
    transition: opacity 0.35s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
    transition: background 0.5s ease, color 0.5s ease;
}

th, td {
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Alternance lignes */
.theme-blueclean table tbody tr:nth-child(odd) {
    background: #D9E4F4;
}
.theme-blueclean table tbody tr:nth-child(even) {
    background: #F4F6F9;
}

.theme-darkgold table tbody tr:nth-child(odd) {
    background: #142544;
}
.theme-darkgold table tbody tr:nth-child(even) {
    background: #1C2F54;
}

/* Entête tableau */
.theme-blueclean table thead tr {
    background: #F0CB61;
    color: #10264D;
    font-weight: bold;
}
.theme-darkgold table thead tr {
    background: #C6A042;
    color: #0D1A33;
}

/* THEMES */
.theme-darkgold {
    background: #0D1A32;
    color: #F0CB61;
}

.theme-darkgold .day-tab,
.theme-darkgold .round-tab {
    background: #142544;
    color: #F0CB61;
    border-color: #F0CB61;
}

.theme-darkgold .day-tab.active,
.theme-darkgold .round-tab.active {
    background: #F0CB61;
    color: #142544;
}

.theme-blueclean {
    background: #f4f7fb;
    color: #10264D;
}

.theme-blueclean .day-tab,
.theme-blueclean .round-tab {
    background: white;
    color: #10264D;
    border-color: #10264D;
}

.theme-blueclean .day-tab.active,
.theme-blueclean .round-tab.active {
    background: #10264D;
    color: #F0CB61;
}

@keyframes rotateTheme {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.theme-toggle.rotating {
    animation: rotateTheme 0.6s ease-in-out;
}