/* Styles pour le formulaire */
.mediatheque-page-content .error-message {
    color: red;
    border: 1px solid red;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 20px;
    display: none;
}

.mediatheque-page-content .error-message.visible {
    display: block;
}

.mediatheque-page-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.mediatheque-page-content .radio-group {
    display: flex;
    gap: 20px;
}

.mediatheque-page-content .radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.mediatheque-page-content .radio-group [type="radio"]:not(.switch)::before {
    background-color: #0056b3;
}

.mediatheque-page-content .form-actions {
    margin-top: 30px;
    text-align: right;
}

.mediatheque-page-content .btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.mediatheque-page-content .btn-primary {
    background-color: #0056b3;
    color: white;
}

.mediatheque-page-content .btn-secondary {
    background-color: grey;
    color: black;
}

.mediatheque-page-content .btn:hover {
    color: white;
    background-color: #003d82;
}

.mediatheque-page-content .mediatheque-notice {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.mediatheque-page-content .mediatheque-notice p {
    margin: 0 0 10px 0;
}

.mediatheque-page-content .mediatheque-btn {
    margin-top: 20px;
}

.mediatheque-page-content #file_name,
.mediatheque-page-content #file_name_display {
    display: block;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
    background-color: #fff;
}

.mediatheque-page-content #reset_file_upload,
.mediatheque-page-content .reset_file_upload_form {
    display: none;
}

.mediatheque-page-content #file_upload {
    display: none;
}

.adherent-media-visible {
    cursor: pointer;
}

.adherent-media-visible:hover {
    color: #0056b3;
}