/* Style de base pour le corps */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

/* Style pour le lien de navigation */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Style pour chaque œuvre */
.oeuvre {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.oeuvre:hover {
    transform: translateY(-5px);
}

/* Style pour les images */
.oeuvre img {
    max-height: 400px;
    width: auto;
    border-radius: 10px;
}

/* Style pour les titres */
.oeuvre h2 {
    margin-top: 0;
}

.oeuvre h3 {
    margin-top: 25px;
    margin-bottom: 25px;
    color: rgb(137, 137, 137);
    font-size: 1.2em;
}

/* Style pour les paragraphes */
.oeuvre p {
    margin: 10px 0;
}

/* Style pour les descriptions */
.oeuvre .description {
}

.oeuvre .justifie {
    text-align: justify;
}

/* Style pour les formulaires */
.oeuvre form {
    margin-top: 20px;
}

/* Bouton de mise à jour de la visibilité */
.oeuvre form input[type="submit"] {
    background-color: #83A697;
    color: #fff;
    border: none;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.oeuvre form input[type="submit"]:hover {
    background-color: #83A697;
}

/* Bouton de mise à jour de la visibilité */
.oeuvre button {
    background-color: #83A697;
    margin-top: 20px;
    color: #fff;
    border: none;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.oeuvre button:hover {
    background-color: #83A697;
}


.completion-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.completion-label {
    font-size: 14px;
    min-width: 35px;
    text-align: right;
    color: #333;
}

.completion-bar-container {
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    height: 18px;
    flex-grow: 1;
    border: 1px solid #ccc;
    max-width: 400px;
}

.completion-bar {
    height: 100%;
    transition: width 0.3s ease;
}

/* Style adaptatif pour les petits écrans */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .oeuvre {
        padding: 15px;
    }

    .oeuvre h2 {
        font-size: 1.2em;
    }

    .oeuvre p {
        font-size: 0.9em;
    }
}
