/* =========================================================================
   style2.css — feuille de style dédiée aux ÉVOLUTIONS DE FONCTIONNALITÉS
   (thème enfant).

   Objectif : ne plus jamais avoir à comparer le style.css d'un ancien site
   à celui de devsystem pour savoir ce qui a changé. Toute nouvelle
   fonctionnalité développée à partir de maintenant ajoute son CSS ICI,
   dans un bloc daté et commenté — jamais dans style.css.
   ========================================================================= */


/* -------------------------------------------------------------------------
   Catalogue d'équipements éditable (tableau de bord propriétaire)
   Ajouté le 2026-09-09, redessiné le 2026-09-11 (retour client Albert & Célestine :
   textes en anglais, boutons trop discrets, page trop haute).
   ------------------------------------------------------------------------- */

.catalog-feature-block {
    border: 1px solid #e3e3e8;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 6px;
    background: #fff;
}

.catalog-feature-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    -webkit-user-select: none;
    user-select: none;
    padding: 4px 0;
}

.catalog-feature-drag-handle {
    cursor: grab;
    color: #9a9aa2;
    font-size: 15px;
}

.catalog-feature-arrow {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.catalog-feature-arrow::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f107"; /* chevron-down */
}

.catalog-feature-block.is-open .catalog-feature-arrow {
    transform: rotate(180deg);
}

.catalog-feature-items {
    display: none;
    padding-top: 8px;
}

.catalog-feature-block.is-open .catalog-feature-items {
    display: block;
}

.catalog-feature-items::after {
    content: "";
    display: table;
    clear: both;
}

.catalog-feature-item {
    margin-bottom: 4px;
}

.catalog-feature-item p {
    margin-bottom: 0;
}

/* Rangée d'ajout d'équipement / catégorie, plus compacte et boutons redessinés */
.catalog-add-feature-row,
.catalog-add-category-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.catalog-add-category-row {
    margin: 12px 0;
}

.catalog-add-feature-row .form-control,
.catalog-add-category-row .form-control {
    max-width: 320px;
    margin-bottom: 0;
    height: 36px;
}

.catalog-add-feature-btn,
.catalog-add-category-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #333;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.catalog-add-feature-btn::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f067"; /* plus */
    font-size: 11px;
}

.catalog-add-feature-btn:hover,
.catalog-add-category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.catalog-add-category-btn {
    background-color: #45cd72;
}

.catalog-add-category-btn::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f07b"; /* folder-plus look-alike (dossier) */
    font-size: 11px;
}

/* Bloc de préférence d'affichage (déplié/replié), plus compact */
.catalog-display-pref-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
    padding: 10px 16px;
    background: #f7f7fa;
    border-radius: 8px;
}

.catalog-display-pref-label {
    font-weight: 500;
    color: #484848;
}

.catalog-display-pref-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.catalog-display-pref-option input[type="radio"] {
    margin: 0;
}

.ui-sortable-helper.catalog-feature-block {
    box-shadow: 0 4px 14px rgba(20, 20, 30, 0.15);
}
