/* ---------- STYLE GLOBAL ---------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

/* ---------- TITRES ---------- */
h1,
h2 {
    text-align: center;
}

h1 {
    text-transform: uppercase;
    font-weight: bold;
    margin: 20px auto;
    color: #222;
}

h1:hover {
    background-color: red;
    color: white;
    border-radius: 5px;
    transition: 0.3s;
}

h2 {
    color: teal;
    font-weight: bold;
    margin-top: 15px;
}

/* ---------- EN-TÊTE ---------- */
.entete {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background-color: #ddd;
    padding: 10px;
    border-radius: 10px;
}

.entete img {
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- CONTENEUR PRINCIPAL ---------- */
#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    border: 2px solid #000;
    background-color: #eee;
    border-radius: 10px;
}

#students,
#grades {
    flex: 1 1 48%;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#students label {
    font-weight: bold;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 8px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: 0.2s;
}

li:hover {
    background-color: #007bff;
    color: #fff;
}

li.selected {
    background-color: #0056b3;
    color: #fff;
    font-weight: bold;
}

/* ---------- BOUTONS ---------- */
button {
    cursor: pointer;
    margin-top: 8px;
}

.btn-actions {
    display: flex;
    gap: 10px;
    /* espace entre les boutons */
    justify-content: flex-end;
    /* les aligner à droite */
    margin-top: 5px;
}

.btn-actions button {
    flex: 1;
    /* largeur égale si besoin */
}




/* ---------- PIED DE PAGE ---------- */
footer {
    text-align: center;
    background-color: #757474;
    color: white;
    padding: 20px;
    border-top: 3px solid #000;
    margin-top: 50px;
}

footer .rxc a {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

.facebook_icon {
    background-image: url("brands/facebook.svg");
}

.instagram_icon {
    background-image: url("brands/instagram.svg");
}

.twiter_icon {
    background-image: url("brands/twitter.svg");
}

.linkedin_icon {
    background-image: url("brands/linkedin.svg");
}

.tiktok_icon {
    background-image: url("brands/tiktok.svg");
}

.whatsapp_icon {
    background-image: url("brands/whatsapp.svg");
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .entete {
        flex-direction: column;
        text-align: center;
    }

    #container {
        flex-direction: column;
    }

    #students,
    #grades {
        width: 100%;
    }

    footer {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 20px;
    }

    input,
    select,
    button {
        width: 100%;
        margin-bottom: 10px;
    }

    .entete img {
        width: 70px;
        height: 70px;
    }
}

/* Sur mobile, empile les boutons */
@media (max-width: 576px) {
    .btn-actions {
        flex-direction: column;
        gap: 5px;
    }
}