table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 18px;
    text-align: left;
}

html[data-theme="light"] table,
body:not([data-theme]) table {
    background-color: #ffffff;
}
html[data-theme="light"] table tbody,
body:not([data-theme]) table tbody {
    background-color: #ffffff;
}


th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

/* ======== ZÉBRAGE CLAIR ======== */
tbody tr:nth-child(odd) td  { background-color: #ffffff; }
tbody tr:nth-child(even) td { background-color: #f9f9f9; }

/* ======== ZÉBRAGE SOMBRE ======== */
html[data-theme="dark"] tbody tr:nth-child(odd) td  { background-color: #424242; }
html[data-theme="dark"] tbody tr:nth-child(even) td { background-color: #171d24; }

/* ======== HOVER ======== */
tbody tr:hover td { background-color: #f1f1f1; }
html[data-theme="dark"] tbody tr:hover td { background-color: #323232; }

#add_user{
    max-width: 120px;
}

#members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 90%;
    margin: 20px auto;
    width: 90%;
}

#controls-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-radius: 5px;
    font-size: large;
    padding: 10px 15px;
    border-color: #333;
}

button {
    display: block;
    margin-right: auto;
    height: 40px;
}

#search {
    flex: 1;
}

#branche {
    flex: 0 0 30% auto;
    border-radius: 5px;
    font-size: large;
    padding: 10px;
    border: 1px solid #333;
}

h1 {
    text-align: center;
}
/* --- FIX FINAL : light doit gagner --- */
html[data-theme="light"] table { background-color: #ffffff !important; }

html[data-theme="light"] tbody,
html[data-theme="light"] tbody tr { background-color: #ffffff !important; }

html[data-theme="light"] tbody tr:nth-child(odd) td  { background-color: #ffffff !important; }
html[data-theme="light"] tbody tr:nth-child(even) td { background-color: #f9f9f9 !important; }

html[data-theme="light"] th { background-color: #f4f4f4 !important; color: #333 !important; }

/* garder le hover en clair */
html[data-theme="light"] tbody tr:hover td { background-color: #f1f1f1 !important; }
