/* ========== CONTENEUR PRINCIPAL ========== */
.cf-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; background: #000000; }

/* ========== FORMULAIRE ========== */
#cf-form { background: #2b2b2b; padding: 20px; border-radius: 8px; margin-bottom: 20px; }

/* ========== LABELS DES COLONNES ========== */
.cf-labels { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.cf-label-chan, .cf-label-func { flex: 1; font-size: 12px; font-weight: 700;
                                   color: #2271b1; text-transform: uppercase;
                                   letter-spacing: 0.5px; }
.cf-label-chan { margin-right: 0; }
.cf-labels::after { content: ''; width: 30px; }

/* ========== LABELS MANUFACTURER / FIXTURE NAME ========== */
.cf-label-chan, .cf-label-func, .cf-label-mfr, .cf-label-fixture {
    font-size: 12px;
    font-weight: 700;
    color: #2271b1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

/* ========== LIGNES DE RECHERCHE ========== */
.cf-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }

.cf-chan,
.cf-func,
#cf-mfr-select,
#cf-fixture-select {
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    padding: 8px 12px;
    background-color: #000000;
    color: #eee;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#cf-mfr-select,
#cf-fixture-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23888'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.cf-chan:hover,
.cf-func:hover,
#cf-mfr-select:hover,
#cf-fixture-select:hover {
    border-color: #777;
}

.cf-chan:focus,
.cf-func:focus,
#cf-mfr-select:focus,
#cf-fixture-select:focus {
    border-color: #4ea3ff;
    outline: none;
}

#cf-mfr-select option,
#cf-fixture-select option {
    background-color: #2b2b2b;
    color: #eee;
}

.cf-del { background: #e74c3c; color: #fff; border: none; border-radius: 6px;
          width: 30px; height: 30px; cursor: pointer; font-size: 18px; line-height: 1;
          flex-shrink: 0; }
.cf-del:hover { background: #c0392b; }

/* ========== BOUTON AJOUTER ========== */
#cf-add { margin: 10px 0; padding: 8px 16px; background: #2271b1; color: #fff;
          border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
#cf-add:hover { background: #135e96; }

/* ========== STATUT & RÉSULTATS ========== */
#cf-status { margin: 12px 0; font-size: 14px; color: #e74c3c; font-weight: 600; }
#cf-results { margin-top: 20px; }
.cf-none, .cf-more { color: #888; font-style: italic; margin-top: 10px; padding: 10px;
                     background: #202020; border-radius: 6px; }

/* ========== CARTES DE RÉSULTATS (style fixture.id) ========== */
.cf-card { background: #2b2b2b; color: #eee; border-radius: 8px;
           padding: 14px 18px; margin-bottom: 14px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

.cf-card-head { display: flex; flex-wrap: wrap; align-items: baseline;
                gap: 8px 16px; margin-bottom: 10px;
                border-bottom: 1px solid #444; padding-bottom: 8px; }

.cf-model { font-size: 18px; font-weight: 700; color: #fff; }
.cf-mfr   { color: #aaa; font-size: 14px; }
.cf-mode  { color: #aaa; font-size: 14px; margin-left: auto; }

.cf-dl    { color: #4ea3ff; text-decoration: none; font-weight: 600; font-size: 13px;
            padding: 4px 8px; border: 1px solid #4ea3ff; border-radius: 4px; }
.cf-dl:hover { background: rgba(78, 163, 255, 0.1); }

/* ========== GRILLE DES CANAUX ========== */
.cf-chan-list { list-style: none; padding: 0; margin: 0;
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 8px 20px; }

.cf-chan-list li { display: flex; gap: 6px; font-size: 13px; padding: 4px 0;
                   align-items: center; }

.cf-num  { color: #888; min-width: 22px; text-align: right; font-weight: 600; }
.cf-ico  { font-size: 16px; min-width: 20px; }
.cf-attr { color: #eee; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .cf-row { flex-direction: column; }
    .cf-chan, .cf-func, #cf-mfr-select, #cf-fixture-select { width: 100%; }
    .cf-labels { flex-direction: column; gap: 4px; }
    .cf-labels::after { content: none; }
    .cf-card-head { flex-direction: column; gap: 4px; }
    .cf-mode, .cf-dl { margin-left: 0; }
    .cf-chan-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
