/* Styles pour la fonctionnalité de mise en avant des compétences */

/* Mode sélection actif */
.competences-section.selection-mode {
    background-color: rgba(76, 175, 80, 0.05);
    border: 2px dashed #4caf50;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.competences-section.selection-mode::before {
    content: "🎯 Mode sélection actif - Cliquez sur les compétences à mettre en avant";
    display: block;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style pour les compétences en mode sélection */
.comp.selectable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

.comp.selectable:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #4caf50;
}

/* Style pour les compétences mises en avant */
.comp.highlighted {
    background-color: rgba(0, 253, 8, 0.199) !important;
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #4caf50;
}

/* Style pour l'icône d'étoile */
.competence-star-icon {
    color: #4caf50;
    margin-right: 8px;
    font-size: 0.9rem;
    display: none;
}

.comp.highlighted .competence-star-icon {
    display: inline-block;
}

/* Indicateur de sélection */
.selection-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.comp.highlighted .selection-indicator {
    display: flex;
}

/* Instructions de sélection */
.competence-highlight-instructions {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: none;
}

.competence-highlight-instructions p {
    margin: 0 0 15px 0;
    color: #1976d2;
    font-weight: 500;
}

.competence-highlight-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.competence-highlight-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.competence-cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.competence-cancel-btn:hover {
    background: #e0e0e0;
}

.competence-save-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.competence-save-btn:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
    transform: translateY(-1px);
}

/* Bouton de mise en avant */
.competence-highlight-toggle-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.competence-highlight-toggle-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Message de confirmation */
.competence-highlight-confirmation {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .competence-highlight-actions {
        flex-direction: column;
    }
    
    .competence-highlight-actions button {
        width: 100%;
    }
    
    .competences-section.selection-mode::before {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
