/* Boutons */
.qmt-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin: 10px 5px;
}

.qmt-button:hover {
    background-color: #005177;
}

/* Popup global */
.qmt-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Boîte du formulaire */
.qmt-form-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    min-width: 300px;
    min-height: 200px;
    resize: both;
    overflow: auto;
    position: relative;
    cursor: move;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Bouton de fermeture */
.qmt-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
}

/* Étapes */
.qmt-form-step {
    text-align: left;
}

.qmt-step-indicator {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Wrapper de chaque question : label et champ */
.qmt-question {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

/* Forcer labels au-dessus des champs */
.qmt-form-step label {
    display: block;
    margin-bottom: 8px;
}

/* Champs textuels et compteurs uniformes, radio exclus */
.qmt-form-step input:not([type="radio"]),
.qmt-form-step textarea,
.qmt-form-step select,
.qmt-char-count,
.qmt-form-step textarea + span {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Marge entre champ ou compteur et la question suivante */
.qmt-char-count,
.qmt-form-step textarea + span {
    margin-top: 4px;
    margin-bottom: 30px;
    font-size: 12px;
    color: #666;
}

/* Arborescence des catégories & options radio */
.qmt-category-tree {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fefefe;
    display: flex;
    flex-direction: column;
}

.qmt-category-block {
    display: block;
    padding: 10px 15px;
    margin: 8px 0;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background 0.2s ease-in-out;
}

.qmt-category-block:hover {
    background-color: #eef6fb;
}

.qmt-category-name {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    /* pas de flex, texte dimension naturelle */
}

.qmt-category-radio {
    margin: 0;
    /* pas de flex-shrink pour conserver taille */
}

.qmt-subcategories {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

/* Navigation entre étapes */
.qmt-form-navigation {
    text-align: right;
    margin-top: 20px;
}

/* === Style pour le nom de l’auteur === */
.author-name {
  font-size: 19px;
  text-decoration: underline;
}
