/* =============================== */
/*            PANEL TEXTE          */
/* =============================== */

.text-panel {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.text-panel .field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.text-panel label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.text-panel input[type="text"],
.text-panel textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.text-panel input[type="text"]:focus,
.text-panel textarea:focus {
    border-color: #0070ba;
    box-shadow: 0 0 4px rgba(0,112,186,0.4);
    outline: none;
}

/* Slider */
.text-panel input[type="range"] {
    width: 100%;
    cursor: pointer;
}

/* Boutons du panneau texte */
.text-panel button,
.text-style-buttons button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
    font-size: 14px;
}

.text-panel button:hover,
.text-style-buttons button:hover {
    background: #eaeaea;
}

/* Groupe de boutons (gras, italique, alignement, etc.) */
.text-style-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.text-style-buttons button.active {
    background: #0070ba;
    color: white;
    border-color: #005a96;
}
