.message-erreur {
    color: #b00020;
    font-weight: bold;
    margin-bottom: 15px;
}

/* =========================================================
   CRÉATION DE PLUSIEURS CONCEPTS
   ========================================================= */

.concept-row {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
}


.concept-name {
    width: 220px;
}


.concept-image {
    width: 300px;
}


.concept-row-error {
    color: #b00020;
    font-weight: bold;
}


#addConceptRow,
.remove-concept-row {
    min-width: 35px;
    min-height: 35px;

    font-size: 20px;

    cursor: pointer;
}

/* =========================================================
   APERÇU DES IMAGES DANS LA LISTE DES CONCEPTS
   ========================================================= */

/* =========================================================
   APERÇU DES IMAGES DANS LA LISTE DES CONCEPTS
   ========================================================= */

.concept-image-preview {
    width: 80px;
    height: 80px;

    /*
     * Toutes les images remplissent exactement
     * la zone de 100 x 100 pixels.
     *
     * Si l'image n'est pas carrée, une petite partie
     * peut être coupée afin de conserver ses proportions.
     */
    object-fit: cover;

    border: 1px solid #ccc;

    display: block;
}

/* =========================================================
   FILTRE PAR THÈMES - VOCABULARY.PHP
   ========================================================= */

.theme-filter {
    display: flex;
    flex-direction: column;

    gap: 1px;

    margin-top: 10px;
    margin-bottom: 15px;
}


.theme-filter label {
    white-space: nowrap;
    cursor: pointer;
}


.theme-filter input[type="checkbox"] {
    margin-right: 5px;
}

/* =========================================================
   IMPORT CSV DU VOCABULAIRE
   ========================================================= */

.import-warning {
    margin-top: 8px;
    padding: 8px;

    border: 1px solid #d6a700;
    background-color: #fff3a6;

    font-size: 14px;
}


.import-warning div {
    margin-top: 5px;
}


.import-row input[type="text"] {
    min-width: 140px;
}


.import-row td {
    vertical-align: top;
}

.remove-import-row {
    min-width: 35px;
    min-height: 35px;

    font-size: 20px;
    cursor: pointer;
}

/* =========================================================
   IMPORT DES CONCEPTS
   ========================================================= */

.concept-import-row td {
    vertical-align: top;
}


.concept-import-name {
    min-width: 180px;
}


.concept-import-image {
    min-width: 280px;
}


.concept-import-preview {
    width: 100px;
    height: 100px;

    object-fit: contain;

    margin-top: 8px;

    border: 1px solid #ccc;

    background-color: white;
}


.concept-image-candidate {
    margin-top: 10px;
    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom: 1px solid #ddd;
}

/* =========================================================
   GESTION DES UTILISATEURS
   ========================================================= */

.user-selectors {
    margin-top: 15px;
    margin-bottom: 25px;
}


.user-selectors select {
    min-width: 250px;
}


.user-vocabulary-stats {
    margin-top: 15px;
    margin-bottom: 25px;
}


.user-theme-block {
    margin-top: 10px;
    margin-bottom: 10px;

    padding: 10px;

    border: 1px solid #cccccc;
}


.user-theme-header {
    display: flex;

    align-items: center;

    gap: 10px;
}


.theme-toggle-button {
    min-width: 40px;

    cursor: pointer;
}


.user-theme-words,
.manage-theme-words {
    margin-top: 15px;
}


.knowledge-level-form {
    display: flex;

    align-items: center;

    gap: 10px;
}


.knowledge-level-bar {
    font-family: monospace;

    font-size: 18px;

    white-space: nowrap;
}


.sortable-vocabulary-table th button {
    cursor: pointer;
}

/* =========================================================
   PARTIES REPLIABLES DE L'ADMINISTRATION
   ========================================================= */

.administration-details {
    margin-top: 15px;
    margin-bottom: 15px;
}


/*
 * L'en-tête d'une balise details est cliquable.
 */

.administration-summary {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    cursor: pointer;

    font-size: 18px;
    font-weight: bold;

    border: 1px solid #cccccc;

    background-color: #f3f3f3;
}


/*
 * Titre principal de la partie de suivi.
 */

.administration-summary-title {
    font-size: 22px;
}


/*
 * Nombre de concepts affiché à droite du titre.
 */

.administration-summary-count {
    padding: 2px 8px;

    font-size: 15px;

    border-radius: 10px;

    background-color: #dddddd;
}


/*
 * Décale légèrement les deux sous-parties par rapport
 * à la partie principale.
 */

details .missing-image-section {
    margin-left: 20px;
    margin-right: 20px;
}


/*
 * Espace le contenu visible de son en-tête.
 */

.missing-image-section > p,
.missing-image-section > ul,
.missing-image-section > nav {
    margin-left: 15px;
    margin-right: 15px;
}

/* =========================================================
   IMAGE ACTUELLE D'UN CONCEPT
   ========================================================= */

.concept-current-image {
    display: block;

    max-width: 400px;
    max-height: 300px;

    margin: 15px 0;

    object-fit: contain;

    border: 1px solid #cccccc;
}


/* =========================================================
   RÉSULTATS DE LA RECHERCHE AUTOMATIQUE
   ========================================================= */

.automatic-image-list {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 20px;
}


.automatic-image-result {
    width: 220px;

    padding: 12px;

    text-align: center;

    border: 1px solid #cccccc;
}


.automatic-image-result img {
    display: block;

    width: 200px;
    height: 150px;

    margin: 0 auto 10px;

    object-fit: contain;
}


.automatic-image-result p {
    overflow-wrap: anywhere;
}


.automatic-image-result button {
    cursor: pointer;
}

/* =========================================================
   ACCUEIL DES UTILISATEURS CONNECTÉS
   ========================================================= */

.user-home {
    width: min(760px, calc(100% - 32px));

    margin: 0 auto;
    padding: 35px 0 60px;
}


.user-home-card {
    margin-top: 20px;
    padding: 24px;

    border: 1px solid #cccccc;
    border-radius: 12px;
    background-color: #ffffff;
}


.user-home-card h2 {
    margin-top: 0;
}


.user-home-review-count {
    font-size: 20px;
}


.user-home-review-count strong {
    font-size: 28px;
}


.user-home-button {
    display: inline-block;

    padding: 10px 16px;

    color: #ffffff;
    border-radius: 8px;
    background-color: #1f6b4f;

    font-weight: bold;
    text-decoration: none;
}


.user-home-button:hover,
.user-home-button:focus {
    background-color: #15513b;
}


.user-home-chat-locked {
    padding: 12px 14px;

    color: #7a4b00;
    border: 1px solid #d6a700;
    border-radius: 8px;
    background-color: #fff3a6;
}

/* =========================================================
   UTILISATEUR CONNECTÉ ET DÉCONNEXION
   À ajouter à la fin de /css/style.css
   ========================================================= */

.user-home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.user-home-header h1 {
    margin-top: 4px;
}


.user-home-connected-user {
    margin: 0;

    color: #555555;
}


.user-home-logout {
    display: inline-block;

    padding: 9px 14px;

    color: #333333;
    border: 1px solid #aaaaaa;
    border-radius: 8px;
    background-color: #ffffff;

    font-weight: bold;
    text-decoration: none;
}


.user-home-logout:hover,
.user-home-logout:focus {
    border-color: #777777;
    background-color: #f1f1f1;
}


@media (max-width: 600px) {
    .user-home-header {
        align-items: stretch;
        flex-direction: column-reverse;
    }


    .user-home-logout {
        align-self: flex-end;
    }
}
